diff options
author | Steven M. Gava <elguavas@python.net> | 2002-03-02 07:16:21 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2002-03-02 07:16:21 (GMT) |
commit | b77d343bc846c2049a4cffb1dfd65eb49d1728b4 (patch) | |
tree | a51c275c42fbca32c9bf3d43d4dfe8c66c3abe86 /Lib/idlelib/EditorWindow.py | |
parent | 03b18834c33dff7b231a22e5da28c8a9f250d1d3 (diff) | |
download | cpython-b77d343bc846c2049a4cffb1dfd65eb49d1728b4.zip cpython-b77d343bc846c2049a4cffb1dfd65eb49d1728b4.tar.gz cpython-b77d343bc846c2049a4cffb1dfd65eb49d1728b4.tar.bz2 |
First work on making config changes dynamic,
dynamic theme changes
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 81d9470..8a2109d 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() |