Skip to content

Instantly share code, notes, and snippets.

@fabio-t
Last active April 14, 2018 19:46
Show Gist options
  • Save fabio-t/de75ac522f2a8c596e90abb3752c7b50 to your computer and use it in GitHub Desktop.
Save fabio-t/de75ac522f2a8c596e90abb3752c7b50 to your computer and use it in GitHub Desktop.
Python "GUIzero" test
from guizero import App, PushButton
def button1():
print("b1")
def button2():
print("b2")
def button3():
print("b3")
app = App(title="Hello world")
b1 = PushButton(app, command=button1, text="Button1")
b2 = PushButton(app, command=button2, text="Button2")
b3 = PushButton(app, command=button3, text="Button3")
app.display()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment