Example #1
0
    def reload_cache(self):
        tc.get_all_projects_and_logins(True)
        for project in env_inst.projects.values():
            project.query_search_types(True)

        if env_mode.get_mode() == 'maya':
            self.restart_ui_main()
        else:
            self.close()
            gf.restart_app()
def startup():
    app = QSingleApplication(sys.argv)
    app.setApplicationName('TacticHandler_TacticApiClient')
    app.setStyle('plastique')

    main_standalone.setPaletteFromDct(main_standalone.palette)
    tc.get_all_projects_and_logins()

    main_window = ui_tactic_api_client_classes.Ui_TacticApiClient()

    app.singleStart(main_window)
    main_window.setHidden(True)

    sys.exit(app.exec_())
    def create_ui(self):

        self.mainwidget = QtGui.QWidget(self)
        self.mainwidget.setObjectName("mainwidget")
        self.setCentralWidget(self.mainwidget)

        tc.get_all_projects_and_logins()

        self.create_float_notify()

        self.create_debuglog_widget()
        self.create_script_editor_widget()

        # Spawning api listener server
        dl.log('Spawning api listener Server')
        print 'Spawning api listener Server'
        env_api.spawn_api_server(self)
Example #4
0
 def get_all_projects_and_logins_agent():
     return tc.get_all_projects_and_logins()