Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-09-07 09:26:21 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-09-07 09:26:21 (GMT)
commit204661329b1bd69ce2dd4d440f6ce7e8bd8790af (patch)
treeb367422c207f1a26214dfa65792aae672e24d81b
parent553709c8698faac952012524f1b258fecad0d7e8 (diff)
parent5bad36b1e1f75536a06b1e7638171cf48f266e0c (diff)
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
-rw-r--r--tests/graphics/hipposcalability.py48
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/graphics/hipposcalability.py b/tests/graphics/hipposcalability.py
new file mode 100644
index 0000000..490d571
--- /dev/null
+++ b/tests/graphics/hipposcalability.py
@@ -0,0 +1,48 @@
+import hippo
+import gtk
+import gobject
+
+from sugar.graphics.icon import CanvasIcon
+from sugar.graphics.roundbox import CanvasRoundBox
+
+import common
+
+test = common.Test()
+
+canvas = hippo.Canvas()
+test.pack_start(canvas)
+canvas.show()
+
+scrollbars = hippo.CanvasScrollbars()
+canvas.set_root(scrollbars)
+
+box = hippo.CanvasBox(padding=10, spacing=10)
+scrollbars.set_root(box)
+
+def idle_cb():
+ global countdown
+
+ for i in range(0, 100):
+ entry = CanvasRoundBox(padding=10, spacing=10)
+
+ for j in range(0, 3):
+ icon = CanvasIcon(icon_name='go-left')
+ entry.append(icon)
+
+ for j in range(0, 2):
+ text = hippo.CanvasText(text='Text %s %s' % (countdown, j))
+ entry.append(text)
+
+ box.append(entry)
+
+ countdown -= 1
+
+ return countdown > 0
+
+countdown = 1000
+gobject.idle_add(idle_cb)
+
+test.show()
+
+if __name__ == "__main__":
+ common.main(test)