UI.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:RaspberryPiBarcodeScanner 作者: briandorey 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号