Пример #1
0
def load_gui():
    global gui_config
    # create Qt application
    app = QApplication(sys.argv,True)
    gui_config = OpusGuiConfiguration()
    gui_config.app = app
    gui_config.load()
    gui_config.splash_screen.show()
    gui_config.splash_screen.raise_()
    gui_config.splash_screen.activateWindow()
    gui_config.splash_screen.showMessage('Loading and compiling Python Modules...')
    gui_config.splash_screen.show()
Пример #2
0
def load_gui():
    global gui_config
    # create Qt application
    app = QApplication(sys.argv, True)
    gui_config = OpusGuiConfiguration()
    gui_config.app = app
    gui_config.load()
    gui_config.splash_screen.show()
    gui_config.splash_screen.raise_()
    gui_config.splash_screen.activateWindow()
    gui_config.splash_screen.showMessage(
        'Loading and compiling Python Modules...')
    gui_config.splash_screen.show()
Пример #3
0
def load_gui():
    global gui_config
    if not gui_config is None:
        return
    
    # create Qt application
    app = QApplication(sys.argv,True)

    # Do this first, because loading the gui_config requires OPUS_HOME
    if not check_opus_home():
        sys.exit(1)

    # Urbansim Tools
    from opus_gui.main.controllers.opus_gui_configuration import OpusGuiConfiguration
    gui_config = OpusGuiConfiguration()
    gui_config.app = app
    
    gui_config.load()
    gui_config.splash_screen.show()
    gui_config.splash_screen.raise_()
    gui_config.splash_screen.activateWindow()
    gui_config.splash_screen.showMessage('Loading and compiling Python Modules...')
    gui_config.splash_screen.show()