def __products_tab_clicked(self, from_barcode = False):
#
# Products tab click events
#
self.current_tab = "products"
# update the images in the tab bar to show the selected tab
self.ordersicon = ImageTk.PhotoImage(Image.open(self.system_path + "tabbar-orders.bmp"))
self.orders_button.config(image = self.ordersicon)
self.productsicon = ImageTk.PhotoImage(Image.open(self.system_path + "tabbar-products-selected.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 products
self.uicommon.clear_frame(self.content_scroll_frame)
if (not from_barcode):
self.products.products_list(self.content_scroll_frame)
return()
评论列表
文章目录