diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-22 10:28:59 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-07-22 10:28:59 (GMT) |
commit | fe69904b6c3adf4874893a6ff9154265d45b9b8f (patch) | |
tree | 99e419c38fb1eda1a13bb24b57d32402a6e5ce2c /examples | |
parent | a02313d85aa3dd2e53c4ee98a5e407460e292456 (diff) |
Add layout manager and a circle layout
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/scene/scene.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/scene/scene.py b/examples/scene/scene.py index 5468cd1..f404f6f 100755 --- a/examples/scene/scene.py +++ b/examples/scene/scene.py @@ -7,6 +7,7 @@ import gtk from sugar.scene.Stage import Stage from sugar.scene.Group import Group from sugar.scene.PixbufActor import PixbufActor +from sugar.scene.CircleLayout import CircleLayout def drawing_area_expose_cb(widget, event, stage): stage.render(widget.window) @@ -24,6 +25,9 @@ while i <= 5: icons_group.add(PixbufActor(pixbuf)) i += 1 +layout = CircleLayout(100) +icons_group.set_layout_manager(layout) + stage.add(icons_group) window = gtk.Window() |