File: picture_button.py

package info (click to toggle)
python-guizero 1.1.1%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,676 kB
  • sloc: python: 6,286; makefile: 28; sh: 17
file content (11 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
from guizero import App, PushButton, info

app = App("A picture button")

picture_button = PushButton(app, command=info, args=["button", "you push the gif"], image="guizero.gif")

picture_button_png = PushButton(app, command=info, args=["button", "you push the png"], image="guizero.png")

picture_button_jpg = PushButton(app, command=info, args=["button", "you push the jpg"], image="guizero.jpg")

app.display()