mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Change by Mark Hammond to allow using IDLE extensions in PythonWin as
well: make three dialog routines instance variables.
This commit is contained in:
parent
a954ba1d6c
commit
d395aeeaa4
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue