def show_item_tree(self): """show menu to order foods""" self.item_tree.delete(*self.item_tree.get_children()) item = Item() data = item.show_items() for i in data: self.item_tree.insert("", "end", text=i[0], value=(i[0], i[2], i[1], i[3]))
def show_item_tree(self): """display menu""" self.item_tree.delete(*self.item_tree.get_children()) item = Item() data = item.show_items() for i in data: self.item_tree.insert("", "end", text=i[0], value=(i[2], i[1], i[3])) self.item_tree.bind("<Double-1>", self.select_item)