Advertisement
Mori007

mychoice

Feb 11th, 2021
1,098
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.16 KB | None | 0 0
  1. from guizero import App, Text, TextBox, Box, Combo
  2.  
  3. app = App('Mori App', width=600, height=500, layout='grid')
  4.  
  5. titleMessage = Text(app, text="FOOD DELIVERY ORDER MORI FASt & Furious", grid=[0,0])
  6. titleMessage.text_size = 12
  7. titleMessage.text_color = "red"
  8. titleMessage.font = "Comic Sans MS"
  9.  
  10. label_name = Text(app, text='Enter your name ', align="left", grid=[0,1])
  11. text_nama = TextBox(app, text='', width=20, grid=[1,1])
  12.  
  13. label_food = Text(app, text='Choose your food  ', align="left", grid=[0,2])
  14. cmb_food = Combo(app, options=["5$ - Fried chicken","6$ - Sausage","10$ - PrasmananRice","12$ - BasmatiRice"],selected="5$ - Fried chicken", grid=[1,2])
  15.  
  16. label_order = Text(app, text='How many food your order ', align="left", grid=[0,3])
  17. cmb_order = Combo(app, options=["1","2","3","4"],align="left",selected="1",grid=[1,3])
  18.  
  19. label_extra = Text(app, text='Choose your Extra ', align="left", grid=[0,4])
  20. cmb_extra = Combo(app, options=["1$ - Fries","2$ - Bun","3$ - Pasta"],selected="2$ - Bun",align="left",grid=[1,4])
  21.  
  22. label_cost = Text(app, text='Total Price ', grid=[0,5])
  23. txt_cost = TextBox(app, text='', width=10, align="left", grid=[1,5])
  24.  
  25. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement