summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2001-08-11 07:46:26 (GMT)
committerSteven M. Gava <elguavas@python.net>2001-08-11 07:46:26 (GMT)
commitabdfc4147d1f1334bb4dbaf5d9dd66af1db175ad (patch)
tree74c5854facbcd280089124130599dc79af0cc524 /Lib/idlelib
parent5b3ac8f98f020e63ad88ed931a8b324b9e73bdb4 (diff)
downloadcpython-abdfc4147d1f1334bb4dbaf5d9dd66af1db175ad.zip
cpython-abdfc4147d1f1334bb4dbaf5d9dd66af1db175ad.tar.gz
cpython-abdfc4147d1f1334bb4dbaf5d9dd66af1db175ad.tar.bz2
support for help menu changes
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/EditorWindow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 1b85ef1..52aa399 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -120,6 +120,7 @@ class EditorWindow:
text.bind("<<center-insert>>", self.center_insert_event)
text.bind("<<help>>", self.help_dialog)
text.bind("<<good-advice>>", self.good_advice)
+ text.bind("<<view-readme>>", self.view_readme)
text.bind("<<python-docs>>", self.python_docs)
text.bind("<<about-idle>>", self.about_dialog)
text.bind("<<open-module>>", 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)