def setup_widgets(self): format_str = get_price_format_str() self.discount_perc.set_data_format(format_str) self.update_widget_status()
def set_widget_formats(self): widgets = (self.markup, self.max_discount) for widget in widgets: widget.set_data_format(get_price_format_str())