def UI(app_in=None, executor=None, **kwargs): """ :param app_in: A Qt Application instance, which you can pass to let the UI be attached to the given applications event process. :param executor: Instead of calling app.exec_ the UI will call this given function. It also passes the created app instance to this executor. """ return ui_caller(app_in, executor, MainDialog, **kwargs)
def UI(app_in=None, executor=None, **kwargs): """ :param environment: The :class:`~stalker.models.env.EnvironmentBase` can be None to let the UI to work in "environmentless" mode in which it only creates data in database and copies the resultant version file path to clipboard. :param app_in: A Qt Application instance, which you can pass to let the UI be attached to the given applications event process. :param executor: Instead of calling app.exec_ the UI will call this given function. It also passes the created app instance to this executor. """ return ui_caller(app_in, executor, VersionMover, **kwargs)
def UI(app_in=None, executor=None, **kwargs): """ :param environment: The :class:`~stalker.models.env.EnvironmentBase` can be None to let the UI to work in "environmentless" mode in which it only creates data in database and copies the resultant version file path to clipboard. :param mode: Runs the UI either in Read-Write (0) mode or in Read-Only (1) mode. :param app_in: A Qt Application instance, which you can pass to let the UI be attached to the given applications event process. :param executor: Instead of calling app.exec_ the UI will call this given function. It also passes the created app instance to this executor. """ from anima.ui.base import ui_caller return ui_caller(app_in, executor, ToolboxDialog, **kwargs)
def tasks_tree_view_changed(self): """runs when the tasks tree view changed """ # get the currently selected task task_id = None task_ids = self.tasks_tree_view.get_selected_task_ids() if task_ids: task_id = task_ids[-1] from stalker import Task task = Task.query.get(task_id) # update the task dashboard widget self.task_dashboard_widget.task = task def show_and_raise(self): """ """ self.show() self.raise_() def closeEvent(self, event): """The overridden close event """ self.write_settings() event.accept() if __name__ == "__main__": ui_caller(None, None, MainWindow)
def UI(environment=None, app_in=None, executor=None): """ """ return ui_caller(app_in, executor, MainDialog, environment=environment)
self.task_dashboard_widget = TaskDashboardWidget(parent=self) self.setCentralWidget(self.task_dashboard_widget) def tasks_tree_view_changed(self): """runs when the tasks tree view changed """ # get the currently selected task task_id = self.tasks_tree_view.get_task_id() from stalker import Task task = Task.query.get(task_id) # update the task dashboard widget self.task_dashboard_widget.task = task self.task_dashboard_widget.fill_ui() def show_and_raise(self): """ """ self.show() self.raise_() def closeEvent(self, event): """The overridden close event """ self.write_settings() event.accept() if __name__ == "__main__": ui_caller(None, None, MainWindow)