summaryrefslogtreecommitdiff
path: root/pypers/bolzano/player/LabelWithImages.py
diff options
context:
space:
mode:
authormichele.simionato <devnull@localhost>2007-12-02 11:13:11 +0000
committermichele.simionato <devnull@localhost>2007-12-02 11:13:11 +0000
commit20ce686b0193d67ea56823a30551140f88b3aee1 (patch)
tree76015e7e4dc0b000bd857a2bdba6fb7976ac29a7 /pypers/bolzano/player/LabelWithImages.py
parentf08f40335ad7f0ac961f25dabaaed34c4d4bcc44 (diff)
downloadmicheles-20ce686b0193d67ea56823a30551140f88b3aee1.tar.gz
Commited all py papers into Google code
Diffstat (limited to 'pypers/bolzano/player/LabelWithImages.py')
-rwxr-xr-xpypers/bolzano/player/LabelWithImages.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/pypers/bolzano/player/LabelWithImages.py b/pypers/bolzano/player/LabelWithImages.py
new file mode 100755
index 0000000..a4c740a
--- /dev/null
+++ b/pypers/bolzano/player/LabelWithImages.py
@@ -0,0 +1,14 @@
+from Tkinter import *
+from itertools import cycle
+
+class LabelWithImages(Label):
+
+ def __init__(self, master, images, **kw):
+ Label.__init__(self, master, **kw)
+ self.images = cycle(images)
+
+ def start_animation(self):
+ self.config(image = self.images.next())
+ self.after(2000, self.start_animation)
+
+