View Single Post
yerga's Avatar
Posts: 696 | Thanked: 1,012 times | Joined on Mar 2006 @ Asturies, Spain
#8
Originally Posted by lorelei View Post
Thanks for the heads-up about the upcoming depreciation of Glade! Does switching to gtk.Builder require additional package dependencies?
A bit vaguely:

Convert the glade file in a xml file understandable for gtk.builder (there is a script called gtk-builder-convert). At the moment Glade doesn't have support for the gtkbuilder files, but it's in its todo list.

And then in python code:
builder = gtk.Builder()
builder.add_from_file('the new xml file')
builder.get_object do the same thing as gladetree.get_widget

gtk.builder is available in the gtk module, so it's not necessary to install anything.
__________________
Daniel Martín Yerga
maemo.org profile
Twitter
 

The Following 2 Users Say Thank You to yerga For This Useful Post: