Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/graphics/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/graphics/common.py')
-rw-r--r--tests/graphics/common.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/graphics/common.py b/tests/graphics/common.py
index 2f00099..1a7bf47 100644
--- a/tests/graphics/common.py
+++ b/tests/graphics/common.py
@@ -19,10 +19,12 @@ import gtk
from sugar.graphics.toolbutton import ToolButton
+
class Test(gtk.VBox):
def __init__(self):
gtk.VBox.__init__(self)
+
class TestPalette(Test):
def __init__(self):
Test.__init__(self)
@@ -39,6 +41,7 @@ class TestPalette(Test):
def set_palette(self, palette):
self._invoker.set_palette(palette)
+
class TestRunner(object):
def run(self, test):
window = gtk.Window()
@@ -48,6 +51,7 @@ class TestRunner(object):
window.show()
+
def main(test):
runner = TestRunner()
runner.run(test)