Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 06/05/2022 fast food app with grid layout
- from guizero import App, Box, Text, TextBox, PushButton
- app = App(layout="grid", bg="orange")
- lbl_fname = Text(app, text="First name", grid=[0,0])
- txt_fname = TextBox(app, grid=[1,0])
- lbl_sname = Text(app, text="Surname", grid=[0,1])
- txt_sname = TextBox(app, grid=[1,1])
- lbl_dob = Text(app, text="Postcode", grid=[0,2])
- txt_dob = TextBox(app, grid=[1,2])
- button1 = PushButton(app, text="small fries", grid=[3,4], width="10")
- button2 = PushButton(app, text="medium fries", grid=[4,4], width="10")
- button3 = PushButton(app, text="large fries", grid=[5,4], width="10")
- button4 = PushButton(app, text="burger", grid=[3,5], width="10")
- button5 = PushButton(app, text="cheese burger", grid=[4,5], width="10")
- button6 = PushButton(app, text="whopper", grid=[5,5], width="10")
- button7 = PushButton(app, text="small drink", grid=[3,6], width="10")
- button8 = PushButton(app, text="regular drink", grid=[4,6], width="10")
- button9 = PushButton(app, text="supersize drink", grid=[5,6], width="10")
- button0 = PushButton(app, text="dessert", grid=[4,7], width="10")
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment