def create_ui(thread): thread = tc.treat_result(thread) if thread.result == QtGui.QMessageBox.ApplyRole: retry_startup(thread) else: if thread.isFailed(): env_mode.set_offline() window = ui_main_classes.Ui_Main(parent=None) else: env_mode.set_online() window = ui_main_classes.Ui_Main(parent=None) window.statusBar() window.show() if thread.result == QtGui.QMessageBox.ActionRole: window.open_config_dialog()
def create_ui(thread, hotkeys=None): thread = tc.treat_result(thread) if thread.result == QtGui.QMessageBox.ApplyRole: retry_startup(thread) else: if thread.isFailed(): env_mode.set_offline() main_tab = Ui_DockMain() else: env_mode.set_online() main_tab = Ui_DockMain(hotkeys=hotkeys) main_tab.show() main_tab.raise_() if thread.result == QtGui.QMessageBox.ActionRole: env_inst.ui_main.open_config_dialog()
def create_ui(thread, hotkeys=None): thread = tc.treat_result(thread) if thread.result == QtGui.QMessageBox.ApplyRole: retry_startup(thread) else: if thread.isFailed(): env_mode.set_offline() main_tab = Ui_DockMain() else: env_mode.set_online() main_tab = Ui_DockMain(hotkeys=hotkeys) env_inst.ui_maya_dock = main_tab if hotkeys: main_tab.handle_hotkeys() main_tab.show() main_tab.raise_() if thread.result == QtGui.QMessageBox.ActionRole: env_inst.ui_main.open_config_dialog()