Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, PushButton, Box, TextBox, Text
- app = App()
- product_list=["Pizza","Sandwich", "Cake", "Coffe","Capucino","Beer", "Water","Omelette","Olives"]
- num_of_prdduct=[]
- total_list="order List"
- box = Box(app,layout="grid", width="fill", height="fill")
- button1 = PushButton(box, width=20,text=product_list[0], grid=[0,0])
- button2 = PushButton(box, width=20,text=product_list[1], grid=[1,0])
- button3 = PushButton(box, width=20,text=product_list[2], grid=[2,0])
- button4 = PushButton(box, width=20,text= product_list[3],grid=[0,1])
- button5 = PushButton(box, width=20,text=product_list[4], grid=[1,1])
- button6 = PushButton(box, width=20,text=product_list[5], grid=[2,1])
- button7 = PushButton(box, width=20,text=product_list[6], grid=[0,2])
- button8 = PushButton(box, width=20,text=product_list[7], grid=[1,2])
- button9 = PushButton(box, width=20,text=product_list[8], grid=[2,2])
- button0 = PushButton(box, width=20,text="Order", grid=[1,3])
- button0.bg="red"
- table_num = TextBox(box, text="Table Number",grid=[2,3], width="fill")
- txt_bill = Text(box, text="Bill", align="center", grid=[0,3])
- txt_bill.bg="green"
- txt_dob = TextBox(app, text=total_list, multiline=True, height="fill", width="fill",)
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement