Change by Mark Hammond to allow using IDLE extensions in PythonWin as

well: make three dialog routines instance variables.
This commit is contained in:
Guido van Rossum 1999-06-02 11:04:29 +00:00
parent a954ba1d6c
commit d395aeeaa4
1 changed files with 5 additions and 0 deletions

View File

@ -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))