Advertisement
xavicano

Untitled

Aug 20th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.23 KB | None | 0 0
  1. from guizero import App, PushButton, Box, TextBox, Text
  2.  
  3. app = App()
  4.  
  5. product_list=["Pizza","Sandwich", "Cake", "Coffe","Capucino","Beer", "Water","Omelette","Olives"]
  6. num_of_prdduct=[]
  7.  
  8. total_list="order List"
  9.  
  10. box = Box(app,layout="grid", width="fill", height="fill")
  11.  
  12. button1 = PushButton(box, width=20,text=product_list[0], grid=[0,0])
  13. button2 = PushButton(box, width=20,text=product_list[1], grid=[1,0])
  14. button3 = PushButton(box, width=20,text=product_list[2], grid=[2,0])
  15. button4 = PushButton(box, width=20,text= product_list[3],grid=[0,1])
  16. button5 = PushButton(box, width=20,text=product_list[4], grid=[1,1])
  17. button6 = PushButton(box, width=20,text=product_list[5], grid=[2,1])
  18. button7 = PushButton(box, width=20,text=product_list[6], grid=[0,2])
  19. button8 = PushButton(box, width=20,text=product_list[7], grid=[1,2])
  20. button9 = PushButton(box, width=20,text=product_list[8], grid=[2,2])
  21.  
  22. button0 = PushButton(box, width=20,text="Order", grid=[1,3])
  23. button0.bg="red"
  24.  
  25. table_num = TextBox(box, text="Table Number",grid=[2,3], width="fill")
  26. txt_bill = Text(box, text="Bill", align="center", grid=[0,3])
  27. txt_bill.bg="green"
  28.  
  29. txt_dob = TextBox(app, text=total_list, multiline=True, height="fill", width="fill",)
  30.  
  31. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement