From bdf97c09246a0a516d246d80cde21d5cc7841f45 Mon Sep 17 00:00:00 2001 From: Agustin Zubiaga Date: Mon, 04 Jun 2012 03:24:13 +0000 Subject: Add move buttons Signed-off-by: Agustin Zubiaga --- (limited to 'animation.py') 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): -- cgit v0.9.1