summaryrefslogtreecommitdiff
path: root/Tools/idle/EditorWindow.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-02 11:04:29 +0000
committerGuido van Rossum <guido@python.org>1999-06-02 11:04:29 +0000
commitd395aeeaa4ab194e55aa5f8bb7b1693089709c95 (patch)
treeebd8fca10d256c8177a16311842638163618fe41 /Tools/idle/EditorWindow.py
parenta954ba1d6c9e38c9b4db183899f3d1562edb1b01 (diff)
downloadcpython-git-d395aeeaa4ab194e55aa5f8bb7b1693089709c95.tar.gz
Change by Mark Hammond to allow using IDLE extensions in PythonWin as
well: make three dialog routines instance variables.
Diffstat (limited to 'Tools/idle/EditorWindow.py')
-rw-r--r--Tools/idle/EditorWindow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py
index 42e7e45f40..8bb8ad3272 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))