Write a canvas subclass in 1200x900 that adapts to screen.

Use it in the test.
This commit is contained in:
Marco Pesenti Gritti 2006-09-08 22:49:49 +02:00
parent 7232f0e0ea
commit f26e85a1fa
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,7 @@
sugardir = $(pythondir)/sugar/canvas
sugar_PYTHON = \
__init__.py \
CanvasView.py \
Colors.py \
GridLayout.py \
GridModel.py \

View File

@ -9,15 +9,13 @@ import goocanvas
from sugar.canvas import IconColor
from sugar.canvas.IconItem import IconItem
from sugar.canvas.CanvasView import CanvasView
window = gtk.Window()
window.connect("destroy", lambda w: gtk.main_quit())
window.set_default_size(800, 600)
window.show()
canvas = goocanvas.CanvasView()
canvas.set_size_request(800, 600)
canvas.set_bounds(0, 0, 800, 600)
canvas = CanvasView()
canvas.show()
window.add(canvas)