diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-22 12:32:04 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-22 12:32:04 (GMT) |
commit | 1c35f8d92ca82525c82ede9b543fe603798ee817 (patch) | |
tree | 875d79998ba805e302c66d34a1b0681ee3375a16 /examples | |
parent | 1e3af85c4076fd03bc01592c615d3d2e291ef3a9 (diff) |
Small improvements
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/scene/scene.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/scene/scene.py b/examples/scene/scene.py index 733b2b4..7a6fcdb 100755 --- a/examples/scene/scene.py +++ b/examples/scene/scene.py @@ -15,7 +15,7 @@ def __drawing_area_expose_cb(widget, event, stage): stage.render(widget.window) def __next_frame_cb(timeline, frame_num, group): - angle = math.pi * 2 / timeline.get_n_frames() * frame_num + angle = math.pi * 2 * frame_num / timeline.get_n_frames() group.get_layout().set_angle(angle) group.do_layout() @@ -55,7 +55,7 @@ drawing_area.show() window.show() -timeline = Timeline(stage, 100) +timeline = Timeline(stage, 300) timeline.connect('next-frame', __next_frame_cb, icons_group) timeline.connect('completed', __completed_cb, icons_group) timeline.start() |