--- a/demo_treeview.py Sat Jan 19 13:05:21 2013 +0100
+++ b/demo_treeview.py Sun Jan 20 00:49:19 2013 +0100
@@ -4,12 +4,12 @@
import locale
locale.setlocale(locale.LC_ALL, '')
-from tuikit import Application, TreeView, TreeModel, ScrollView, VerticalLayout
+from tuikit import Application, TreeView, TreeModel, ScrollView
class MyApplication(Application):
def __init__(self):
- Application.__init__(self, top_layout=VerticalLayout)
+ Application.__init__(self)
self.top.add_handler('keypress', self.on_top_keypress)
model = TreeModel()
@@ -27,7 +27,7 @@
scroll = ScrollView()
scroll.add(view)
- self.top.add(scroll, expand=True, fill=True)
+ self.top.add(scroll, halign='fill', valign='fill')
def on_top_keypress(self, ev):
if ev.keyname == 'escape':