From: Steven M. Gava Date: Sat, 11 Aug 2001 07:46:26 +0000 (+0000) Subject: support for help menu changes X-Git-Tag: v2.2a3~641 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abdfc4147d1f1334bb4dbaf5d9dd66af1db175ad;p=thirdparty%2FPython%2Fcpython.git support for help menu changes --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 1b85ef1ac49b..52aa39991639 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -120,6 +120,7 @@ class EditorWindow: text.bind("<>", self.center_insert_event) text.bind("<>", self.help_dialog) text.bind("<>", self.good_advice) + text.bind("<>", self.view_readme) text.bind("<>", self.python_docs) text.bind("<>", self.about_dialog) text.bind("<>", self.open_module) @@ -278,6 +279,10 @@ class EditorWindow: def good_advice(self, event=None): tkMessageBox.showinfo('Advice', "Don't Panic!", master=self.text) + def view_readme(self, event=None): + fn=os.path.join(os.path.abspath(os.path.dirname(__file__)),'README.txt') + textView.TextViewer(self.top,'IDLEfork - README',fn) + def help_dialog(self, event=None): fn=os.path.join(os.path.abspath(os.path.dirname(__file__)),'help.txt') textView.TextViewer(self.top,'Help',fn)