How can I store multiple different windows/dialogs in a single GtkBuilder file and then load these windows in different classes (each class corresponding to a different window)? For instance, currently I'm doing things like:
def __init__(self): self.builder = gtk.Builder() self.builder.add_from_file('gtkbuilder.xml') self.welcome_dialog = self.builder.get_object('welcome_dialog') self.builder.connect_signals(self) self.welcome_dialog.show() This does produce a functioniong piece of software, but it spits out all kinds of warnings like:
welcome_dialog.py:38: RuntimeWarning: missing handler 'on_contract_window_response' self.builder.connect_signals(self) for each of the signal handlers I have defined in Glade for all the other windows. I guess all I want to do is connect the signals for this single window/dialog and ignore everything else, but I'm not sure how to do that. Or maybe I am doing something horribly wrong and I should be splitting up each window into a different GtkBuilder file? Or connecting the signals for every possible window at the same (initial) time?