sugar-toolkit-gtk3/sugar/canvas/CanvasWindow.py
2006-09-07 19:03:40 +02:00

15 lines
277 B
Python

import gtk
import goocanvas
class CanvasWindow(gtk.Window):
def __init__(self, model):
gtk.Window.__init__(self)
self._view = goocanvas.CanvasView()
self._view.set_model(model.get())
self.add(self._view)
self._view.show()
def get_view(self):
return self._view