From 9139c07b48946c52bf9ae6d21a2e4df461e568e2 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 29 Nov 2006 22:07:38 +0000 Subject: [PATCH] remove the old python example --- examples/rects.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 examples/rects.py diff --git a/examples/rects.py b/examples/rects.py deleted file mode 100755 index e0b71cc..0000000 --- a/examples/rects.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/python - -import clutter - -def on_stage_add (group, element): - print 'Adding element:', element - -stage = clutter.stage_get_default() -stage.set_size(800,600) -stage.set_color(0x6d, 0x6d, 0x70, 0xff) -stage.connect('button-press-event', clutter.main_quit) -stage.connect('add', on_stage_add) - -print "stage color: ", stage.get_color() - -rect = None -for i in range(1, 10): - #rect = clutter.Rectangle(0x0000ff33) - rect = clutter.Rectangle() - rect.set_color(0x35, 0x99, 0x2a, 0x66) - rect.set_position((800 - (80 * i)) / 2, (600 - (60 * i)) / 2) - rect.set_size(80 * i,60 * i) - stage.add(rect) - rect.show() - -stage.connect('button-press-event', clutter.main_quit) - -stage.show() - -clutter.main() -- 2.7.4