Esempio n. 1
0
def launch(argv, name, layout=None):
    # Initialize the default configuration files if none exist
    app = QtGui.QApplication(argv)
    app.setAttribute(QtCore.Qt.AA_DontShowIconsInMenus, False)
    loadTheme()

    win = MainWindow(name, layout)
    app.lastWindowClosed.connect(win.saveApplicationState)
    win.show()
    win.raise_()
    app.exec_()
Esempio n. 2
0
def launch(argv, name, layout=None):
    # Initialize the default configuration files if none exist
    app = QtGui.QApplication(argv)
    app.setAttribute(QtCore.Qt.AA_DontShowIconsInMenus, False)
    loadTheme()

    win = MainWindow(name, layout)
    app.lastWindowClosed.connect(win.saveApplicationState)
    win.show()
    win.raise_()
    app.exec_()
Esempio n. 3
0
def runFAF():
    # Load theme from settings (one of the first things to be done)
    util.loadTheme()

    # Create client singleton and connect
    import client

    faf_client = client.instance
    faf_client.setup()

    faf_client.doConnect()
    faf_client.doLogin()

    faf_client.show()

    # Main update loop
    QtGui.QApplication.exec_()
Esempio n. 4
0
def runFAF():
    # Load theme from settings (one of the first things to be done)
    util.loadTheme()
    
    # Create client singleton and connect
    import client
        
    faf_client = client.instance
    faf_client.setup()

    faf_client.doConnect()
    faf_client.doLogin()

    faf_client.show()

    # Main update loop
    QtGui.QApplication.exec_()
Esempio n. 5
0
def runFAF():
    #Load theme from settings (one of the first things to be done)
    util.loadTheme()    
    
    #create client singleton and connect
    import client
        
    faf_client = client.instance
    faf_client.setup()
         
    #Connect and login, then load and show the UI if everything worked
    if faf_client.doConnect():
        if faf_client.waitSession() :
            if faf_client.doLogin():    
                #Done setting things up, show the window to the user.
                faf_client.show()                    
                
                #Main update loop    
                QtGui.QApplication.exec_()
Esempio n. 6
0
def runFAF():
    #Load theme from settings (one of the first things to be done)
    util.loadTheme()

    #create client singleton and connect
    import client

    faf_client = client.instance
    faf_client.setup()

    #Connect and login, then load and show the UI if everything worked
    if faf_client.doConnect():
        if faf_client.waitSession():
            if faf_client.doLogin():
                #Done setting things up, show the window to the user.
                faf_client.show()

                #Main update loop
                QtGui.QApplication.exec_()