def __init__(self, appString): self.app = Application(appString) self.settings = self.app.settings slot("%s-closeMainWindow" % appString, self.slot_tidy) self.cp = ControlPanel(self.settings) self.init()
def setup(): # Initialize graphical interface, note that the same settings # group as the control panel is used. global app, gui app = Application("cp") gui = GuiDbInit(intro, go) app.run()
def __init__(self, appString, user): self.app = Application(appString) self.settings = self.app.settings self.gui = GuiWidget(self.settings) #slot("%s-closeMainWindow" % appString, self.slot_tidy) self.app.init(self.gui) self.gui.init(user)
def __init__(self, appString, file=None): self.app = Application(appString) self.settings = self.app.settings slot("%s-closeMainWindow" % appString, self.slot_tidy) # Prepare the print handler self.pView = PrintView() self.init(file)
def __init__(self, appString): self.app = Application(appString) self.settings = self.app.settings self.gui = GuiWidget(self.settings, self.app.clipboard()) # Initialize the colour objects used by the editor coloursInit() self.app.init(self.gui) styleGroup = QtGui.QActionGroup(self.gui) styleGroup.addAction(self.gui.ui.action_styleN) styleGroup.addAction(self.gui.ui.action_styleS) styleGroup.addAction(self.gui.ui.action_styleSR) # Set up the editor gui self.edView = EditorView(self.gui) # Open a database and initialize the editor self.edView.slot_open(force=False)
def __init__(self, appString, filepath=None): self.app = Application(appString) self.settings = self.app.settings slot("%s-closeMainWindow" % appString, self.slot_tidy) self.sp = SyncPanel(self.settings) self.init(filepath)