demo_checkbox.py
changeset 42 0224ce40792f
parent 41 37b7dfc3eae6
child 45 43b2279b06e1
--- a/demo_checkbox.py	Sat Dec 29 12:16:06 2012 +0100
+++ b/demo_checkbox.py	Sun Dec 30 13:03:29 2012 +0100
@@ -12,8 +12,7 @@
         Application.__init__(self)
         self.top.connect('keypress', self.on_top_keypress)
 
-        vert = VerticalLayout(homogeneous=False)
-        self.top.layout(vert)
+        self.top.layout = VerticalLayout(homogeneous=False)
 
         combo = ComboBox(items=['abc', 'xyz'])
         self.top.add(combo)