diff options
author | Guido van Rossum <guido@python.org> | 1999-06-02 11:04:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-06-02 11:04:29 (GMT) |
commit | d395aeeaa4ab194e55aa5f8bb7b1693089709c95 (patch) | |
tree | ebd8fca10d256c8177a16311842638163618fe41 /Tools | |
parent | a954ba1d6c9e38c9b4db183899f3d1562edb1b01 (diff) | |
download | cpython-d395aeeaa4ab194e55aa5f8bb7b1693089709c95.zip cpython-d395aeeaa4ab194e55aa5f8bb7b1693089709c95.tar.gz cpython-d395aeeaa4ab194e55aa5f8bb7b1693089709c95.tar.bz2 |
Change by Mark Hammond to allow using IDLE extensions in PythonWin as
well: make three dialog routines instance variables.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/idle/EditorWindow.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py index 42e7e45..8bb8ad3 100644 --- a/Tools/idle/EditorWindow.py +++ b/Tools/idle/EditorWindow.py @@ -174,6 +174,11 @@ class EditorWindow: self.wmenu_end = end WindowList.register_callback(self.postwindowsmenu) + # Some abstractions so IDLE extensions are cross-IDE + self.askyesno = tkMessageBox.askyesno + self.askinteger = tkSimpleDialog.askinteger + self.showerror = tkMessageBox.showerror + if self.extensions.has_key('AutoIndent'): self.extensions['AutoIndent'].set_indentation_params( self.ispythonsource(filename)) |