diff --git a/Tools/idle/Bindings.py b/Tools/idle/Bindings.py index e0a2570e61f..f66d1188be8 100644 --- a/Tools/idle/Bindings.py +++ b/Tools/idle/Bindings.py @@ -16,6 +16,7 @@ ('_Open...', '<>'), ('Open _module...', '<>'), ('Class _browser', '<>'), + ('_Path browser', '<>'), ('Python shell', '<>'), None, ('_Save', '<>'), diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py index 9436903fe1d..cea3fcd3a90 100644 --- a/Tools/idle/EditorWindow.py +++ b/Tools/idle/EditorWindow.py @@ -19,6 +19,8 @@ #$ win #$ unix +#$ event <> + #$ event <> #$ unix #$ unix @@ -118,6 +120,7 @@ def __init__(self, flist=None, filename=None, key=None, root=None): text.bind("<>", self.flist.new_callback) text.bind("<>", self.flist.close_all_callback) text.bind("<>", self.open_class_browser) + text.bind("<>", self.open_path_browser) vbar['command'] = text.yview vbar.pack(side=RIGHT, fill=Y) @@ -312,6 +315,10 @@ def open_class_browser(self, event=None): 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: