Write a canvas subclass in 1200x900 that adapts to screen.
Use it in the test.
This commit is contained in:
parent
7232f0e0ea
commit
f26e85a1fa
@ -1,6 +1,7 @@
|
||||
sugardir = $(pythondir)/sugar/canvas
|
||||
sugar_PYTHON = \
|
||||
__init__.py \
|
||||
CanvasView.py \
|
||||
Colors.py \
|
||||
GridLayout.py \
|
||||
GridModel.py \
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user