diff options
author | Daniel Francis <francis@sugarlabs.org> | 2012-07-24 23:56:26 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2012-07-24 23:56:26 (GMT) |
commit | 9b05fa1fa80a32f2099dd102b584e7212ce84fb3 (patch) | |
tree | cfcb35df0f40fef07bfc2f9cece5e553e37dfa19 | |
parent | 07c119c85d6a317c8dcb6c9982af3d72ba730a4a (diff) |
Animation shows frames quite well
-rw-r--r-- | activity.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activity.py b/activity.py index 6388ebd..1939415 100644 --- a/activity.py +++ b/activity.py @@ -192,7 +192,7 @@ class AnimateActivity(activity.Activity): return width, height def __canvas_expose_cb(self, canvas, event): - width, height = self._get_animation_size() + x, y, width, height = event.area if not self._animation: self._animation = animation.Animation(width, height) @@ -212,6 +212,9 @@ class AnimateActivity(activity.Activity): canvas.add(self._animation) + self._animation.set_size(width, + height) + def _current_frame_updated_cb(self, widget, index): if widget.frames_reverse: index = len(widget.frames) - 1 - index |