[Python-checkins] r65421 - in sandbox/trunk/ttk-gsoc/src/idlelib: EditorWindow.py PyShell.py

guilherme.polo python-checkins at python.org
Sat Aug 2 23:34:41 CEST 2008


Author: guilherme.polo
Date: Sat Aug  2 23:34:40 2008
New Revision: 65421

Log:
Moved set_theme to EditorWindow

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

Modified: sandbox/trunk/ttk-gsoc/src/idlelib/EditorWindow.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/idlelib/EditorWindow.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/idlelib/EditorWindow.py	Sat Aug  2 23:34:40 2008
@@ -315,6 +315,10 @@
     def set_close_hook(self, close_hook):
         self.close_hook = close_hook
 
+    def set_theme(self, ttkstyle):
+        # called from configDialog.py
+        ttkstyle.theme_use(idleConf.GetOption('main', 'Theme', 'displaytheme'))
+
     def ResetColorizer(self):
         "Update the colour theme"
         # Called from self.filename_change_hook and from configDialog.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 Aug  2 23:34:40 2008
@@ -899,10 +899,6 @@
     def get_warning_stream(self):
         return warning_stream
 
-    def set_theme(self, ttkstyle):
-        ttkstyle.theme_use(idleConf.GetOption('main', 'Theme',
-            'displaytheme'))
-
     def _toggle_debugger(self, event=None):
         if self.executing:
             tkMessageBox.showerror("Don't debug now",


More information about the Python-checkins mailing list