From: Guido van Rossum Date: Wed, 2 Jun 1999 11:04:29 +0000 (+0000) Subject: Change by Mark Hammond to allow using IDLE extensions in PythonWin as X-Git-Tag: v1.6a1~1298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d395aeeaa4ab194e55aa5f8bb7b1693089709c95;p=thirdparty%2FPython%2Fcpython.git Change by Mark Hammond to allow using IDLE extensions in PythonWin as well: make three dialog routines instance variables. --- diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py index 42e7e45f4034..8bb8ad327225 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))