def __init__(self, *args, **kw): super(SystemMonitorEditor, self).__init__(*args, **kw) color_bind_preference(self.console_display.model, 'bgcolor', 'pychron.sys_mon.bgcolor') color_bind_preference(self.console_display, 'default_color', 'pychron.sys_mon.textcolor') self.db_lock = Lock()
def console_bind_preferences(self, prefid): from pychron.core.ui.preference_binding import color_bind_preference, bind_preference color_bind_preference(self, 'console_bgcolor', '{}.bgcolor'.format(prefid)) color_bind_preference(self, 'console_default_color', '{}.textcolor'.format(prefid)) bind_preference(self, 'console_fontsize', '{}.fontsize'.format(prefid))
def bind_preferences(self): # notifications self._preference_binder('pychron.experiment', ('use_notifications', 'notifications_port', 'automated_runs_editable')) # force notifier setup if self.use_notifications: self.notifier.setup(self.notifications_port) # sys logger # bind_preference(self, 'use_syslogger', 'pychron.use_syslogger') # if self.use_syslogger: # self._use_syslogger_changed() color_bind_preference(self, 'bgcolor', 'pychron.experiment.bg_color') color_bind_preference(self, 'even_bgcolor', 'pychron.experiment.even_bg_color')
def bind_preferences(self): # notifications self._preference_binder('pychron.experiment', ('use_notifications', 'notifications_port', 'automated_runs_editable')) # force notifier setup if self.use_notifications: self.notifier.setup(self.notifications_port) # sys logger # bind_preference(self, 'use_syslogger', 'pychron.use_syslogger') # if self.use_syslogger: # self._use_syslogger_changed() color_bind_preference(self, 'bgcolor', 'pychron.experiment.bg_color') color_bind_preference(self, 'even_bgcolor', 'pychron.experiment.even_bg_color')
def bind_preferences(self): super(ExperimentExecutor, self).bind_preferences() prefid = 'pychron.database' bind_preference(self.massspec_importer.db, 'name', '{}.massspec_dbname'.format(prefid)) bind_preference(self.massspec_importer.db, 'host', '{}.massspec_host'.format(prefid)) bind_preference(self.massspec_importer.db, 'username', '{}.massspec_username'.format(prefid)) bind_preference(self.massspec_importer.db, 'password', '{}.massspec_password'.format(prefid)) prefid = 'pychron.experiment' #auto save bind_preference(self, 'use_auto_save', '{}.use_auto_save'.format(prefid)) bind_preference(self, 'auto_save_delay', '{}.auto_save_delay'.format(prefid)) #colors color_bind_preference(self, 'signal_color', '{}.signal_color'.format(prefid)) color_bind_preference(self, 'sniff_color', '{}.sniff_color'.format(prefid)) color_bind_preference(self, 'baseline_color', '{}.baseline_color'.format(prefid))
def bind_preferences(self): super(ExperimentExecutor, self).bind_preferences() prefid = 'pychron.database' bind_preference(self.massspec_importer.db, 'name', '{}.massspec_dbname'.format(prefid)) bind_preference(self.massspec_importer.db, 'host', '{}.massspec_host'.format(prefid)) bind_preference(self.massspec_importer.db, 'username', '{}.massspec_username'.format(prefid)) bind_preference(self.massspec_importer.db, 'password', '{}.massspec_password'.format(prefid)) prefid = 'pychron.experiment' #auto save bind_preference(self, 'use_auto_save', '{}.use_auto_save'.format(prefid)) bind_preference(self, 'auto_save_delay', '{}.auto_save_delay'.format(prefid)) #colors color_bind_preference(self, 'signal_color', '{}.signal_color'.format(prefid)) color_bind_preference(self, 'sniff_color', '{}.sniff_color'.format(prefid)) color_bind_preference(self, 'baseline_color', '{}.baseline_color'.format(prefid))
def console_bind_preferences(self, prefid): color_bind_preference(self, 'console_bgcolor', '{}.bgcolor'.format(prefid)) color_bind_preference(self, 'console_default_color', '{}.textcolor'.format(prefid)) bind_preference(self, 'console_fontsize', '{}.fontsize'.format(prefid))
def __init__(self, *args, **kw): super(SystemMonitorEditor, self).__init__(*args, **kw) color_bind_preference(self.console_display.model, 'bgcolor', 'pychron.sys_mon.bgcolor') color_bind_preference(self.console_display, 'default_color', 'pychron.sys_mon.textcolor')
def console_bind_preferences(self, prefid): from pychron.core.ui.preference_binding import color_bind_preference, bind_preference color_bind_preference(self, 'console_bgcolor', '{}.bgcolor'.format(prefid)) color_bind_preference(self, 'console_default_color', '{}.textcolor'.format(prefid)) bind_preference(self, 'console_fontsize', '{}.fontsize'.format(prefid))