예제 #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_()
예제 #2
0
파일: main.py 프로젝트: JohanAberg/plow
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_()
예제 #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_()
예제 #4
0
파일: __main__.py 프로젝트: MathieuB8/test2
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_()
예제 #5
0
파일: main.py 프로젝트: AThorley/lobby
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_()
예제 #6
0
파일: main.py 프로젝트: tenconamei/client
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_()