I've made an interface using Glade. I want to then create a subclass of gtk.Window - in Python - and pass in that file to it. Then I'd like to be able to play with the widgets that I added in Glade as I would if I'd created them using regular code.
Here is something I'd quite like to do:
class MainWindow (gtk.Window):
def __init__(self):
self.set_creator('gladefile.ui')
self.get_object('button1').set_label("Hello, World!")
Whilst I've made some things using GTK, I'm not hugely experienced, so cut me some slack please! So, is this possible and if so, any tips? :-)