def __init__(self, model): log.Logger.__init__(self, model) self.model = model self.builder = gtk.Builder() self.builder.add_from_file(data.path('ui', 'simulation.ui')) self.info('Loading main simulation window...') self.view = MainWindow(self, self.builder, self.model.driver) self.view.window.show_all() self.info('Done loading main simulation window...')
def show(self): self.builder.add_from_file(data.path("ui", "main.ui")) self.view = View(self, self.builder, self.model) self.view.window.show_all()