demo_colors.py
changeset 52 50a1857557da
parent 46 2b43a7f38c34
child 60 fccca2a60492
--- a/demo_colors.py	Sat Jan 05 18:56:45 2013 +0100
+++ b/demo_colors.py	Sat Jan 05 23:00:41 2013 +0100
@@ -12,13 +12,20 @@
         Application.__init__(self)
         self.top.add_handler('keypress', self.on_top_keypress)
 
-        for attr in ['blink', 'bold', 'dim', 'standout', 'underline']:
+        for attr in ['blink', 'bold', 'standout', 'underline']:
             label = Label(attr)
             label.color = 'test-' + attr
             self.top.add(label)
 
         self.top.layout = VerticalLayout()
 
+    def applytheme(self):
+        Application.applytheme(self)
+        self.driver.setcolor('test-blink',              'cyan on blue, blink')
+        self.driver.setcolor('test-bold',               'cyan on blue, bold')
+        self.driver.setcolor('test-standout',           'cyan on blue, standout')
+        self.driver.setcolor('test-underline',          'cyan on blue, underline')
+
     def on_top_keypress(self, ev):
         if ev.keyname == 'escape':
             self.terminate()