sugar-toolkit-gtk3/sugar/canvas/CanvasView.py

10 lines
214 B
Python
Raw Normal View History

2006-09-08 22:52:06 +02:00
import gtk
import goocanvas
class CanvasView(goocanvas.CanvasView):
def __init__(self):
goocanvas.CanvasView.__init__(self)
self.set_bounds(0, 0, 1200, 900)
self.set_scale(gtk.gdk.screen_width() / 1200.0)