Fix children counting

This commit is contained in:
Marco Pesenti Gritti
2006-10-10 01:14:24 +02:00
parent 7fa1b02a82
commit 279ebda451
2 changed files with 15 additions and 6 deletions
+9 -3
View File
@@ -40,9 +40,15 @@ canvas = hippo.Canvas()
root_box = hippo.CanvasBox(background_color=0xe2e2e2ff)
canvas.set_root(root_box)
box = SnowflakeBox()
snow_flake = _create_snowflake(box, 30)
root_box.append(box)
box1 = SnowflakeBox()
snow_flake = _create_snowflake(box1, 30)
root_box.append(box1, hippo.PACK_FIXED)
root_box.move(box1, 0, 0)
box2 = SnowflakeBox()
snow_flake = _create_snowflake(box2, 10)
root_box.append(box2, hippo.PACK_FIXED)
root_box.move(box2, 400, 0)
canvas.show()
window.add(canvas)