Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/animation.py
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguz@sugarlabs.org>2012-06-04 03:24:13 (GMT)
committer Agustin Zubiaga <aguz@sugarlabs.org>2012-06-04 03:24:13 (GMT)
commitbdf97c09246a0a516d246d80cde21d5cc7841f45 (patch)
tree6613ba92971b0056f38b81813030600acc96e16d /animation.py
parent0688745b73dc153e9239978006bdfb3532b16fd6 (diff)
Add move buttons
Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
Diffstat (limited to 'animation.py')
-rw-r--r--animation.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/animation.py b/animation.py
index 588dae4..1791533 100644
--- a/animation.py
+++ b/animation.py
@@ -67,6 +67,11 @@ class Animation(gtk.Image):
if pspec.name == 'mode':
return self._mode
+ def move(self, old_pos, new_pos):
+ _object = self.images[old_pos]
+ self.images.remove(old_pos)
+ self.images.insert(new_pos, _object)
+
def remove_current_frame(self):
del(self.images[self._current_image])
if len(self.images):