add file
This commit is contained in:
parent
f26e85a1fa
commit
1eae3082c2
11
sugar/canvas/CanvasView.py
Normal file
11
sugar/canvas/CanvasView.py
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user