def _on_decr_db_div(self, event): self.parent[Y_PER_DIV_KEY] = max( DB_DIV_MIN, common.get_clean_decr(self.parent[Y_PER_DIV_KEY])) ################################################## # subscriber handlers ################################################## def _update_layout(self, key): # Just ignore the key value we get # we only need to now that the visability or size of something has changed self.parent.Layout()
def _on_decr_dynamic_range(self, event): self.parent[DYNAMIC_RANGE_KEY] = max(MIN_DYNAMIC_RANGE, common.get_clean_decr(self.parent[DYNAMIC_RANGE_KEY]))
def _on_decr_db_div(self, event): self.parent[constants.Y_PER_DIV_KEY] = max(DB_DIV_MIN, common.get_clean_decr(self.parent[constants.Y_PER_DIV_KEY]))
def _on_decr_dynamic_range(self, event): self.parent[DYNAMIC_RANGE_KEY] = max( MIN_DYNAMIC_RANGE, common.get_clean_decr(self.parent[DYNAMIC_RANGE_KEY]))