def on_dlg_after_nr_notifications_value_changed(self, i_new_value: int): logging.debug( "on_dlg_after_nr_notifications_value_changed, i_new_value = " + str(i_new_value)) SettingsM.update_breathing_reminder_nr_per_dialog(i_new_value) self.overview_qlw.update_gui_time_overview() self.breathing_settings_updated_from_settings_signal.emit('settings')
def update_gui(self): self.updating_gui_bool = True settings = SettingsM.get() self.notification_interval_qsb.setValue( settings.breathing_reminder_interval_int) self.show_after_qsb.setValue( settings.breathing_reminder_nr_before_dialog_int) self.rest_interval_qsb.setValue(settings.rest_reminder_interval_int) self.rest_reminder_qsr.setMinimum(0) self.rest_reminder_qsr.setMaximum(settings.rest_reminder_interval_int) self.rest_reminder_qsr.setValue( mc.mc_global.rest_reminder_minutes_passed_int) self.updating_gui_bool = False
def on_time_before_rest_value_changed(self, i_new_value: int): logging.debug("on_time_before_rest_value_changed, i_new_value = " + str(i_new_value)) SettingsM.update_rest_reminder_interval(i_new_value) self.overview_qlw.update_gui_time_overview() self.rest_settings_updated_from_intro_signal.emit('intro')
def on_time_btw_notifications_value_changed(self, i_new_value: int): logging.debug("on_time_btw_notifications_value_changed, i_new_value = " + str(i_new_value)) SettingsM.update_breathing_reminder_interval(i_new_value) self.overview_qlw.update_gui_time_overview() self.breathing_settings_updated_from_intro_signal.emit('intro')