def _editor_factory(self): self.connection = self.connections[0] #ask user for system #info = self.edit_traits(view='get_connection_view') if 1: #if info.result and self.connection: editor = SystemMonitorEditor(processor=self.manager, conn_spec=self.connection, task=self) editor.start() self._open_editor(editor) #if editor: # do_later(editor.run_added_handler) return editor
def _editor_factory(self): self.connection = self.connections[0] #ask user for system #info = self.edit_traits(view='get_connection_view') if 1: #if info.result and self.connection: editor = SystemMonitorEditor(processor=self.manager, conn_spec=self.connection, task=self) editor.start() self._open_editor(editor) #if editor: # do_later(editor.run_added_handler) return editor
def _editor_factory(self): if globalv.system_monitor_debug: self.connection = self.connections[0] result = True else: # ask user for system info = self.edit_traits(view="get_connection_view") result = info.result if result and self.connection: editor = SystemMonitorEditor(processor=self.manager, conn_spec=self.connection, task=self) editor.start() self._open_editor(editor) return editor
def _editor_factory(self): if globalv.system_monitor_debug: self.connection = self.connections[0] result = True else: # ask user for system info = self.edit_traits(view='get_connection_view') result = info.result if result and self.connection: editor = SystemMonitorEditor(processor=self.manager, conn_spec=self.connection, task=self) editor.start() self._open_editor(editor) return editor