demo_treeview.py
changeset 42 0224ce40792f
parent 41 37b7dfc3eae6
child 45 43b2279b06e1
--- a/demo_treeview.py	Sat Dec 29 12:16:06 2012 +0100
+++ b/demo_treeview.py	Sun Dec 30 13:03:29 2012 +0100
@@ -4,7 +4,7 @@
 import locale
 locale.setlocale(locale.LC_ALL, '')
 
-from tuikit import *
+from tuikit import Application, TreeView, TreeModel, ScrollView, VerticalLayout
 
 
 class MyApplication(Application):
@@ -29,8 +29,7 @@
         scroll.add(view)
         self.top.add(scroll, expand=True, fill=True)
 
-        vert = VerticalLayout()
-        self.top.layout(vert)
+        self.top.layout = VerticalLayout()
 
     def on_top_keypress(self, ev):
         if ev.keyname == 'escape':