def __init__(self, parent, controller): tk.Frame.__init__(self, parent) image = PIL.Image.open("fflogo.png") image = image.resize((50, 50), PIL.Image.ANTIALIAS) photo = PIL.ImageTk.PhotoImage(image) panel = Label(self, image=photo) panel.image = photo panel.pack(pady=10) label = tk.Label(self, text="Indian Stall", font=('Arial', 10, 'bold')) #,font=LARGE_FONT label.pack(pady=10, padx=10) button2 = tk.Button(self, text="Indian Cuisine", width=50, height=1, pady=10, command=lambda: qf(f.stallName("Indian Cuisine"))) button2.pack() button3 = tk.Button(self, text="Indian Canteen 16", width=50, height=1, pady=10, command=lambda: qf(f.stallName("Indian 16"))) button3.pack() button4 = tk.Button(self, text="Indian Canteen 23", width=50, height=1, pady=10, command=lambda: qf(f.stallName("Indian 23"))) button4.pack() button0 = tk.Button(self, text="Other food stalls", width=50, height=1, pady=10, command=lambda: controller.show_frame(PageTwo)) button0.pack() label1 = tk.Label(self, text="") label1.pack() button1 = tk.Button(self, text="Back to Home Page", width=20, height=1, pady=10, bg='#ffdb4d', fg='white', command=lambda: controller.show_frame(StartPage)) button1.pack()
def __init__(self, parent, controller): tk.Frame.__init__(self, parent) image = PIL.Image.open("fflogo.png") image = image.resize((50, 50), PIL.Image.ANTIALIAS) photo = PIL.ImageTk.PhotoImage(image) panel = Label(self, image=photo) panel.image = photo panel.pack(pady=10) label = tk.Label(self, text="2. Search food by Stall Name.", font=('Arial', 10, 'bold')) #,font=LARGE_FONT label.pack(pady=10, padx=10) button1 = tk.Button(self, text="Chicken Rice", width=50, height=1, command=lambda: qf(f.stallName("Chicken Rice"))) button1.pack() button2 = tk.Button(self, text="Ayam Penyet", width=50, height=1, command=lambda: qf(f.stallName("Ayam Penyet"))) button2.pack() button3 = tk.Button(self, text="Mixed Veg Rice", width=50, height=1, command=lambda: qf(f.stallName("Mixed Veg Rice"))) button3.pack() button4 = tk.Button(self, text="Waffle", width=50, height=1, command=lambda: qf(f.stallName("Waffle 11"))) button4.pack() button5 = tk.Button(self, text="Golden Kitchen", width=50, height=1, command=lambda: qf(f.stallName("Golden Kitchen"))) button5.pack() button6 = tk.Button(self, text="Menya Takashi", width=50, height=1, command=lambda: qf(f.stallName("Menya Takashi"))) button6.pack() button7 = tk.Button(self, text="Ban Mian", width=50, height=1, command=lambda: qf(f.stallName("Ban Mian"))) button7.pack() button8 = tk.Button(self, text="Korean Stall", width=50, height=1, command=lambda: controller.show_frame(PageTwoA)) button8.pack() button9 = tk.Button(self, text="Mala Stall", width=50, height=1, command=lambda: controller.show_frame(PageTwoB)) button9.pack() button10 = tk.Button(self, text="Indian Stall", width=50, height=1, command=lambda: controller.show_frame(PageTwoC)) button10.pack() button11 = tk.Button(self, text="Japanese Stall", width=50, height=1, command=lambda: controller.show_frame(PageTwoD)) button11.pack() button12 = tk.Button(self, text="Ananda Kitchen", width=50, height=1, command=lambda: controller.show_frame(PageTwoD)) button12.pack() button13 = tk.Button( self, text="Pizza Hut", width=50, height=1, command=lambda: qf(f.stallName("Pizza Hut Express"))) button13.pack() button14 = tk.Button( self, text="Roasted Duck", width=50, height=1, command=lambda: qf(f.stallName("Cantonese Roasted Duck"))) button14.pack() button15 = tk.Button(self, text="Yong Tau Foo", width=50, height=1, command=lambda: qf(f.stallName("YTF"))) button15.pack() label1 = tk.Label(self, text="") label1.pack() button0 = tk.Button(self, text="Back to Home", width=20, height=1, bg='#ffdb4d', fg='white', command=lambda: controller.show_frame(StartPage)) button0.pack()