From 8f6baf62399edd81d6e1fa4a101690f200aeb89b Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 13 Sep 2006 16:26:54 +0200 Subject: [PATCH] Skeleton theme test --- shell/BuddyPopup.py | 10 ++++++++++ tests/test-theme.py | 21 +++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 shell/BuddyPopup.py create mode 100755 tests/test-theme.py diff --git a/shell/BuddyPopup.py b/shell/BuddyPopup.py new file mode 100644 index 00000000..fac2d27a --- /dev/null +++ b/shell/BuddyPopup.py @@ -0,0 +1,10 @@ +import gtk + +from sugar.canvas.CanvasBox import CanvasBox + +class BuddyPopup(gtk.Window): + def __init__(self, grid) + gtk.Window.__init__(self, gtk.WINDOW_POPUP) + + box = CanvasBox(grid) + diff --git a/tests/test-theme.py b/tests/test-theme.py new file mode 100755 index 00000000..e73f861c --- /dev/null +++ b/tests/test-theme.py @@ -0,0 +1,21 @@ +#!/usr/bin/python +import pygtk +pygtk.require('2.0') + +from sugar.session.UITestSession import UITestSession + +session = UITestSession() +session.start() + +import gtk +import goocanvas + +from sugar.canvas import IconColor +from sugar.canvas.IconItem import IconItem +from sugar.canvas.CanvasView import CanvasView + +window = gtk.Window() +window.connect("destroy", lambda w: gtk.main_quit()) +window.show() + +gtk.main()