예제 #1
0
    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()
예제 #2
0
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()
예제 #3
0
    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)
예제 #4
0
    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)
예제 #5
0
    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)
예제 #6
0
 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)