0
4

1 に答える 1

0

If the WindowManager kills the window all widgets get deleted, so the window needs to be rebuild. This can be done like this:

def buildFooWindow(self):
    self.builder.add_objects_from_file( 'glade_file_path', ['foo_window'] )
    self.builder.connect_signals({'foo_window_cancel': self.fooWindowCancel})

So you have to call this function each time you want to show the window.

于 2012-04-15T10:55:50.013 に答える