summaryrefslogtreecommitdiffstats
path: root/Tools/idle/EditorWindow.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-03-10 05:18:02 (GMT)
committerGuido van Rossum <guido@python.org>1999-03-10 05:18:02 (GMT)
commitd6e8713f81f69947d5373f7dd3b6632f6e970bad (patch)
tree117b2cb03176da730152bad268052a0b284550a4 /Tools/idle/EditorWindow.py
parenta917af7fc7862da8f5882ae5784815b9070453ef (diff)
downloadcpython-d6e8713f81f69947d5373f7dd3b6632f6e970bad.zip
cpython-d6e8713f81f69947d5373f7dd3b6632f6e970bad.tar.gz
cpython-d6e8713f81f69947d5373f7dd3b6632f6e970bad.tar.bz2
Add PathBrowser to File module
Diffstat (limited to 'Tools/idle/EditorWindow.py')
-rw-r--r--Tools/idle/EditorWindow.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py
index 9436903..cea3fcd 100644
--- a/Tools/idle/EditorWindow.py
+++ b/Tools/idle/EditorWindow.py
@@ -19,6 +19,8 @@ import WindowList
#$ win <Alt-c>
#$ unix <Control-x><Control-b>
+#$ event <<open-path-browser>>
+
#$ event <<close-window>>
#$ unix <Control-x><Control-0>
#$ unix <Control-x><Key-0>
@@ -118,6 +120,7 @@ class EditorWindow:
text.bind("<<open-new-window>>", self.flist.new_callback)
text.bind("<<close-all-windows>>", self.flist.close_all_callback)
text.bind("<<open-class-browser>>", self.open_class_browser)
+ text.bind("<<open-path-browser>>", self.open_path_browser)
vbar['command'] = text.yview
vbar.pack(side=RIGHT, fill=Y)
@@ -312,6 +315,10 @@ class EditorWindow:
import ClassBrowser
ClassBrowser.ClassBrowser(self.flist, base, [head])
self.text["cursor"] = save_cursor
+
+ def open_path_browser(self, event=None):
+ import PathBrowser
+ PathBrowser.PathBrowser(self.flist)
def gotoline(self, lineno):
if lineno is not None and lineno > 0: