def __parts_tab_clicked(self, from_barcode = False):
#
# Parts tab click event
#
self.current_tab = "parts"
# 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.bmp"))
self.products_button.config(image = self.productsicon)
self.partsicon = ImageTk.PhotoImage(Image.open(self.system_path + "tabbar-parts-selected.bmp"))
self.parts_button.config(image = self.partsicon)
# clear any content from the content_scroll_frame and get a list of the parts
self.uicommon.clear_frame(self.content_scroll_frame)
if (not from_barcode):
self.parts.parts_list(self.content_scroll_frame)
return()
评论列表
文章目录