Last active
April 14, 2018 19:46
-
-
Save fabio-t/de75ac522f2a8c596e90abb3752c7b50 to your computer and use it in GitHub Desktop.
Python "GUIzero" test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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