mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
support for help menu changes
This commit is contained in:
parent
5b3ac8f98f
commit
abdfc4147d
1 changed files with 5 additions and 0 deletions
|
@ -120,6 +120,7 @@ class EditorWindow:
|
||||||
text.bind("<<center-insert>>", self.center_insert_event)
|
text.bind("<<center-insert>>", self.center_insert_event)
|
||||||
text.bind("<<help>>", self.help_dialog)
|
text.bind("<<help>>", self.help_dialog)
|
||||||
text.bind("<<good-advice>>", self.good_advice)
|
text.bind("<<good-advice>>", self.good_advice)
|
||||||
|
text.bind("<<view-readme>>", self.view_readme)
|
||||||
text.bind("<<python-docs>>", self.python_docs)
|
text.bind("<<python-docs>>", self.python_docs)
|
||||||
text.bind("<<about-idle>>", self.about_dialog)
|
text.bind("<<about-idle>>", self.about_dialog)
|
||||||
text.bind("<<open-module>>", self.open_module)
|
text.bind("<<open-module>>", self.open_module)
|
||||||
|
@ -278,6 +279,10 @@ class EditorWindow:
|
||||||
def good_advice(self, event=None):
|
def good_advice(self, event=None):
|
||||||
tkMessageBox.showinfo('Advice', "Don't Panic!", master=self.text)
|
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):
|
def help_dialog(self, event=None):
|
||||||
fn=os.path.join(os.path.abspath(os.path.dirname(__file__)),'help.txt')
|
fn=os.path.join(os.path.abspath(os.path.dirname(__file__)),'help.txt')
|
||||||
textView.TextViewer(self.top,'Help',fn)
|
textView.TextViewer(self.top,'Help',fn)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue