コード例 #1
0
def create_ui(error_tuple=None, hotkeys=None):

    if error_tuple:
        env_mode.set_offline()
        main_tab = Ui_DockMain(hotkeys=hotkeys)
        gf.error_handle(error_tuple)
    else:
        env_mode.set_online()
        main_tab = Ui_DockMain(hotkeys=hotkeys)

    main_tab.show()
    main_tab.raise_()
コード例 #2
0
def create_ui(ping_worker, hotkeys=None):

    if ping_worker.is_failed():
        env_mode.set_offline()
        main_tab = Ui_DockMain(hotkeys=hotkeys)
        gf.error_handle(ping_worker.get_error_tuple())
    else:
        env_mode.set_online()
        main_tab = Ui_DockMain(hotkeys=hotkeys)

    main_tab.show()
    main_tab.raise_()
コード例 #3
0
def create_ui(error_tuple=None):
    if error_tuple:
        env_mode.set_offline()
        if not env_inst.ui_main:
            window = ui_main_classes.Ui_Main(parent=None)
            window.statusBar()
            window.show()
        gf.error_handle(error_tuple)
    else:
        env_mode.set_online()
        offline_ui = None
        if env_inst.ui_main:
            offline_ui = env_inst.ui_main
        window = ui_main_classes.Ui_Main(parent=None)
        if offline_ui:
            offline_ui.close()
        window.statusBar()
        window.show()
コード例 #4
0
def create_ui(ping_worker):
    if ping_worker.is_failed():
        env_mode.set_offline()
        if not env_inst.ui_main:
            window = ui_main_classes.Ui_Main(parent=None)
            window.statusBar()
            window.show()
        gf.error_handle(ping_worker.get_error_tuple())
    else:
        env_mode.set_online()
        offline_ui = None
        if env_inst.ui_main:
            offline_ui = env_inst.ui_main
        window = ui_main_classes.Ui_Main(parent=None)
        if offline_ui:
            offline_ui.close()
        window.statusBar()
        window.show()