Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from guizero import App, Text, ButtonGroup, Combo, PushButton, TextBox, CheckBox
- app = App(title="Hero-o-matic",height=600, width=400)
- def night_or_day_mode():
- if darkmode.value == 1:
- app.bg = "black"
- app.text_color = "white"
- else:
- app.bg = "white"
- app.text_color = "black"
- # Your GUI widgets go here
- darkmode = CheckBox (app, text ="night mode", command = night_or_day_mode)
- # Show the GUI on the screen, start listening to events.
- app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement