From b77d343bc846c2049a4cffb1dfd65eb49d1728b4 Mon Sep 17 00:00:00 2001 From: "Steven M. Gava" Date: Sat, 2 Mar 2002 07:16:21 +0000 Subject: First work on making config changes dynamic, dynamic theme changes --- Lib/idlelib/EditorWindow.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Lib/idlelib/EditorWindow.py') diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 81d9470357e..8a2109d3593 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -102,6 +102,9 @@ class EditorWindow: self.vars = flist.vars self.menubar = Menu(root) self.top = top = self.Toplevel(root, menu=self.menubar) + #self.top.instanceDict makes flist.inversedict avalable to + #configDialog.py so it can access all EditorWindow instaces + self.top.instanceDict=flist.inversedict self.vbar = vbar = Scrollbar(top, name='vbar') self.text_frame = text_frame = Frame(top) self.text = text = Text(text_frame, name='text', padx=5, wrap=None, @@ -467,6 +470,13 @@ class EditorWindow: self.per.removefilter(self.color) self.color = None self.per.insertfilter(self.undo) + + def ResetColorizer(self): + #this function is called from configDialog.py + #to update the colour theme if it is changed + if self.color: + self.color = self.ColorDelegator() + self.per.insertfilter(self.color) def saved_change_hook(self): short = self.short_title() -- cgit v1.2.3