示例#1
0
    def __init__(self, preferences=None):

        #  Create parent
        QtGui.QMainWindow.__init__(self)

        #  Set preferences
        self.m_preferences = preferences

        #  Create the configuration pane
        self.m_configuration_pane = ConfigurationPane(preferences)

        #  Load Plugins
        self.Load_Plugins()

        #  Initialize the GUI
        self.Initialize_UI()

        #  Configure Window
        self.setWindowState(self.windowState() & ~Qt.WindowMinimized
                            | Qt.WindowActive)

        #  Show the GUI
        self.show()

        #  Bring the GUI to front
        self.raise_()
示例#2
0
    def __init__(self, preferences=None):

        #  Create parent
        super(MainWindow, self).__init__()

        #  Set preferences
        if not preferences == None:
            self.preferences = preferences

        #  Create the configuration pane
        self.configurationPane = ConfigurationPane()

        #  Load Plugins
        self.loadPlugins()

        #  Initialize the GUI
        self.initUI()

        #  Show the GUI
        self.show()