sugar-toolkit-gtk3/sugar/canvas/CanvasView.py
Marco Pesenti Gritti 857b9cb659 Rewrite of the grid stuff. Simpler api and cleaner implementation.
Also follow the micro grids in pentagram design.
2006-09-13 13:50:00 +02:00

10 lines
214 B
Python

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)