From 1eae3082c2e4404f9fbd6d53d7927109db7b01e4 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 8 Sep 2006 22:52:06 +0200 Subject: [PATCH] add file --- sugar/canvas/CanvasView.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sugar/canvas/CanvasView.py diff --git a/sugar/canvas/CanvasView.py b/sugar/canvas/CanvasView.py new file mode 100644 index 00000000..04e0308e --- /dev/null +++ b/sugar/canvas/CanvasView.py @@ -0,0 +1,11 @@ +import gtk +import goocanvas + +class CanvasView(goocanvas.CanvasView): + def __init__(self): + goocanvas.CanvasView.__init__(self) + + self.set_size_request(gtk.gdk.screen_width(), + gtk.gdk.screen_height()) + self.set_bounds(0, 0, 1200, 900) + self.set_scale(gtk.gdk.screen_width() / 1200.0)