Building a GTK+ widget dynamically from code allows for easy access to the child widgets directly.
Now, how do I access to the child widgets when building a GTK+ Dialog (as example) from a .glade
file?
class ConfigDialog(object):
def __init__(self, glade_file, testing=False):
self.testing=testing
builder = gtk.Builder()
builder.add_from_file(glade_file)
self.dialog = builder.get_object("config_dialog")
self.dialog._testing=testing
self.dialog._builder=builder
I've tinkering a bit with .get_internal_child
without success.
Q: let's say I want to access the widget named "name_entry", how would I go about it?