File: animated_picture.py

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

anim = Picture(app, "guizero_flash.gif")
anim.width = 200
anim.height = 100

button = PushButton(app, command=info, args=["button", "you pushed the image"], image="guizero_flash.gif")
button.width = 200
button.height = 100

app.display()