def __orders_tab_clicked(self, from_barcode = False):
#
# Orders tab click event
#
self.current_tab = "orders"
# update the images in the tab bar to show the selected tab
self.ordersicon = ImageTk.PhotoImage(Image.open(self.system_path + "tabbar-orders-selected.bmp"))
self.orders_button.config(image = self.ordersicon)
self.productsicon = ImageTk.PhotoImage(Image.open(self.system_path + "tabbar-products.bmp"))
self.products_button.config(image = self.productsicon)
self.partsicon = ImageTk.PhotoImage(Image.open(self.system_path + "tabbar-parts.bmp"))
self.parts_button.config(image = self.partsicon)
# clear any content from the content_scroll_frame and get a list of the current orders
self.uicommon.clear_frame(self.content_scroll_frame)
if (not from_barcode):
self.orders.orders_list(self.content_scroll_frame)
return()
评论列表
文章目录