demo_colors.py
changeset 60 fccca2a60492
parent 52 50a1857557da
child 62 2f61931520c9
--- a/demo_colors.py	Tue Jan 08 23:59:55 2013 +0100
+++ b/demo_colors.py	Wed Jan 09 22:32:15 2013 +0100
@@ -4,7 +4,7 @@
 import locale
 locale.setlocale(locale.LC_ALL, '')
 
-from tuikit import Application, Label, VerticalLayout
+from tuikit import Application, Window, Label, VerticalLayout
 
 
 class MyApplication(Application):
@@ -12,6 +12,10 @@
         Application.__init__(self)
         self.top.add_handler('keypress', self.on_top_keypress)
 
+        win = Window()
+        self.top.add(win)
+        win.layout = VerticalLayout()
+
         for attr in ['blink', 'bold', 'standout', 'underline']:
             label = Label(attr)
             label.color = 'test-' + attr