Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/graphics')
-rw-r--r--sugar/graphics/Makefile.am1
-rw-r--r--sugar/graphics/window.py14
2 files changed, 15 insertions, 0 deletions
diff --git a/sugar/graphics/Makefile.am b/sugar/graphics/Makefile.am
index ea115fa..6a45b3c 100644
--- a/sugar/graphics/Makefile.am
+++ b/sugar/graphics/Makefile.am
@@ -22,4 +22,5 @@ sugar_PYTHON = \
timeline.py \
toolbar.py \
units.py \
+ window.py \
xocolor.py
diff --git a/sugar/graphics/window.py b/sugar/graphics/window.py
new file mode 100644
index 0000000..f3854e3
--- /dev/null
+++ b/sugar/graphics/window.py
@@ -0,0 +1,14 @@
+import hippo
+import gtk
+
+class Window(gtk.Window):
+ def __init__(self, window_type=gtk.WINDOW_TOPLEVEL):
+ gtk.Window.__init__(self, window_type)
+
+ self._canvas = hippo.Canvas()
+ self.add(self._canvas)
+ self._canvas.show()
+
+ def set_root(self, root):
+ self._canvas.set_root(root)
+