def createMainWindow(self): if self.gui: return self.gui = PitiviMainWindow(self) self.add_window(self.gui) # We might as well show it. self.gui.show()
def setUp(self): app = mock.MagicMock() self.mainwindow = PitiviMainWindow(app)
def _createGui(self): # Prevent the main window to go fullscreen because at least # the Metacity window manager will refuse to bring # the startup wizard window in front of the main window. return PitiviMainWindow(self, allow_full_screen=False)
def _createGui(self): """Returns a Gtk.Widget which represents the UI.""" return PitiviMainWindow(self)