2006-08-19 01:29:42 +02:00
|
|
|
import goocanvas
|
|
|
|
|
|
|
|
class Model(goocanvas.CanvasModelSimple):
|
2006-08-19 11:12:25 +02:00
|
|
|
def __init__(self, data_model):
|
2006-08-19 01:29:42 +02:00
|
|
|
goocanvas.CanvasModelSimple.__init__(self)
|
|
|
|
|
|
|
|
root = self.get_root_item()
|
|
|
|
|
2006-08-19 11:12:25 +02:00
|
|
|
item = goocanvas.Rect(width=1200, height=900,
|
|
|
|
fill_color="#4f4f4f")
|
|
|
|
root.add_child(item)
|
|
|
|
|
2006-08-19 01:29:42 +02:00
|
|
|
class MeshView(goocanvas.CanvasView):
|
2006-08-19 11:12:25 +02:00
|
|
|
def __init__(self, shell, data_model):
|
2006-08-19 01:29:42 +02:00
|
|
|
goocanvas.CanvasView.__init__(self)
|
|
|
|
self._shell = shell
|
|
|
|
|
|
|
|
self.connect("item_view_created", self.__item_view_created_cb)
|
|
|
|
|
2006-08-19 11:12:25 +02:00
|
|
|
canvas_model = Model(data_model)
|
2006-08-19 01:29:42 +02:00
|
|
|
self.set_model(canvas_model)
|
|
|
|
|
|
|
|
def __item_view_created_cb(self, view, item_view, item):
|
|
|
|
pass
|