Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/test-icons.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-icons.py')
-rwxr-xr-xtests/test-icons.py45
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/test-icons.py b/tests/test-icons.py
deleted file mode 100755
index f3b6037..0000000
--- a/tests/test-icons.py
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/python
-import pygtk
-pygtk.require('2.0')
-
-from sugar.session.UITestSession import UITestSession
-
-session = UITestSession()
-session.start()
-
-import sys
-import random
-
-import gtk
-import hippo
-
-from sugar.graphics import IconColor
-from sugar.graphics.CanvasIcon import CanvasIcon
-from sugar.graphics.CanvasView import CanvasView
-
-window = gtk.Window()
-window.connect("destroy", lambda w: gtk.main_quit())
-window.show()
-
-canvas = hippo.Canvas()
-canvas.show()
-window.add(canvas)
-
-box = hippo.CanvasBox(background_color=0x4f4f4fff)
-canvas.set_root(box)
-
-icon_names = [ 'stock-buddy', 'activity-groupchat', 'activity-web']
-
-k = 0
-while k < 1:
- i = 0
- while i < 10:
- color = IconColor.IconColor()
- icon_name_n = int(random.random() * len(icon_names))
- icon = CanvasIcon(icon_name=icon_names[icon_name_n],
- size=75, color=color)
- box.append(icon, 0)
- i += 1
- k += 1
-
-gtk.main()