[Python-checkins] r64005 - sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py

guilherme.polo python-checkins at python.org
Sat Jun 7 01:34:33 CEST 2008


Author: guilherme.polo
Date: Sat Jun  7 01:34:33 2008
New Revision: 64005

Log:
root style may not have the background set, noticed this under Windows.

Modified:
   sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py

Modified: sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py	Sat Jun  7 01:34:33 2008
@@ -1406,7 +1406,7 @@
 
         x = style.map('.')
         r = {'background': []}
-        for sspec in x['background']:
+        for sspec in x.get('background', []):
             if 'active' in sspec[:-1]:
                 r['background'].append(('!disabled', sspec[-1]))
                 break


More information about the Python-checkins mailing list