Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Skriv din kod här :-)
- from guizero import App, Text, TextBox, Box, PushButton
- # Boxes
- app = App(title='Contact information', width=400, height=500, bg='lightyellow')
- box= Box(app,layout='grid')
- box1=Text(box, text='Contact information', grid=[0,1, 1,1])
- box1.text_size=30
- box2=TextBox(box, grid=[1,2], align='left')
- box2_lbl=Text(box, grid=[0,2], text='Name')
- box3=TextBox(box, grid=[1,3], align='left')
- box3_lbl=Text(box, grid=[0,3], text='Surname')
- box4=TextBox(box, grid=[1,4], align='left')
- box4_lbl=Text(box, grid=[0,4], text='Phone')
- box5=TextBox(box, grid=[1,5], align='left')
- box5_lbl=Text(box, grid=[0,5], text='Email')
- box6=PushButton(box, text='Save', width='fill', grid=[0,7])
- box6.bg='lightgreen'
- box6.text_color='red'
- # End
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement