Ejemplo n.º 1
0
def restart():
    reload(ui_main_classes)
    ping_thread = tc.get_server_thread(dict(),
                                       tc.server_ping,
                                       lambda: create_ui(ping_thread),
                                       parent=env_inst.ui_super)
    ping_thread.start()
    return ping_thread
Ejemplo n.º 2
0
def startup():
    app = QtGui.QApplication(sys.argv)
    env_inst.ui_super = app
    app.setStyle("plastique")
    setPaletteFromDct(palette)

    ping_thread = tc.get_server_thread(dict(), tc.server_ping, lambda: create_ui(ping_thread), parent=app)
    ping_thread.start()
    sys.exit(app.exec_())
Ejemplo n.º 3
0
def startup():
    app = QtGui.QApplication(sys.argv)
    env_inst.ui_super = app
    app.setStyle("plastique")
    setPaletteFromDct(palette)

    ping_thread = tc.get_server_thread(dict(), tc.server_ping, lambda: create_ui(ping_thread), parent=app)
    ping_thread.start()
    sys.exit(app.exec_())
Ejemplo n.º 4
0
def startup(restart=False, hotkeys=None):
    if restart:
        close_all_instances()

    env_inst.ui_super = mf.get_maya_window()

    try:
        main_tab = mf.get_maya_dock_window()[0]
        main_tab.hotkeys_dict = hotkeys
        main_tab.handle_hotkeys()
        main_tab.show()
        main_tab.raise_()
    except:
        ping_thread = tc.get_server_thread(dict(), tc.server_ping, lambda: create_ui(ping_thread, hotkeys), parent=env_inst.ui_super)
        ping_thread.start()
Ejemplo n.º 5
0
def startup(restart=False, hotkeys=None):
    if restart:
        close_all_instances()

    env_inst.ui_super = mf.get_maya_window()

    try:
        main_tab = mf.get_maya_dock_window()[0]
        main_tab.hotkeys_dict = hotkeys
        main_tab.handle_hotkeys()
        main_tab.show()
        main_tab.raise_()
    except:
        ping_thread = tc.get_server_thread(
            dict(),
            tc.server_ping,
            lambda: create_ui(ping_thread, hotkeys),
            parent=env_inst.ui_super)
        ping_thread.start()
Ejemplo n.º 6
0
def restart():
    reload(ui_main_classes)
    ping_thread = tc.get_server_thread(dict(), tc.server_ping, lambda: create_ui(ping_thread), parent=env_inst.ui_super)
    ping_thread.start()
    return ping_thread