]> granicus.if.org Git - python/commitdiff
Change by Mark Hammond to allow using IDLE extensions in PythonWin as
authorGuido van Rossum <guido@python.org>
Wed, 2 Jun 1999 11:04:29 +0000 (11:04 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 2 Jun 1999 11:04:29 +0000 (11:04 +0000)
well: make three dialog routines instance variables.

Tools/idle/EditorWindow.py

index 42e7e45f4034d0cdf935ed6bf32f0f9913d35c47..8bb8ad327225859257028d008732dfac790e12ed 100644 (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))