def update_fields(self, item_num='---', min_price='---', descr='---', highest='---', winning=False): self.item_num_label_val['text'] = item_num self.min_price_label_val['text'] = '${}'.format(min_price) self.descr_label_val['text'] = helper.get_formatted_display_text(descr) self.highest_label_val['text'] = '${}'.format(highest) self.winning_label_val['text'] = 'Yes' if winning else 'No'
def set_response_text(self, response=''): self.response_msg_label['text'] = helper.get_formatted_display_text( response)
def set_new_item_panel_response(self, response): self.items_list_panel.new_item_panel.set_response_text(helper.get_formatted_display_text(response))
def set_new_offer_panel_response(self, response): self.new_offer_panel.set_response_text(helper.get_formatted_display_text(response))
def set_dereg_panel_response(self, response): self.dereg_panel.set_response_text(helper.get_formatted_display_text(response))
def set_reg_panel_response(self, response): if not self.registered: self.reg_panel.set_response_text(helper.get_formatted_display_text(response))
def update_fields(self, item_num='---', min_price='---', status='---', desc='---'): self.item_num_label_val['text'] = item_num self.min_price_label_val['text'] = '${}'.format(min_price) self.status_label_val['text'] = helper.get_formatted_display_text(status) self.desc_label_val['text'] = helper.get_formatted_display_text(desc)