Skip navigation.
Home

Glade

  1. Create the application directory as normal.
  2. Save the glade file as interface.glade inside it.
  3. Call rox.toplevel_ref() and _unref() manually.

A sample starting file might look like this:

#!/usr/bin/env python
import findrox; findrox.version(1, 9, 9)
import rox, os
import gtk.glade
 
gladefile = os.path.join(rox.app_dir, 'interface.glade')
wTree = gtk.glade.XML(gladefile, 'window1')
 
wTree.get_widget('window1').connect('destroy', rox.toplevel_unref)
 
rox.toplevel_ref()
rox.mainloop()

Perhaps someone who uses glade could extend this tutorial?

Syndicate content