diff --git a/Lib/lib-tk/FileDialog.py b/Lib/lib-tk/FileDialog.py index a2e56eaed88..4bb74b716ae 100644 --- a/Lib/lib-tk/FileDialog.py +++ b/Lib/lib-tk/FileDialog.py @@ -48,11 +48,11 @@ def __init__(self, master): self.filter.bind('', self.filter_command) self.midframe = Frame(self.top) self.midframe.pack(expand=YES, fill=BOTH) - self.dirs = Listbox(self.midframe) + self.dirs = Listbox(self.midframe, exportselection=0) self.dirs.pack(side=LEFT, expand=YES, fill=BOTH) self.dirs.bind('', self.dirs_select_event) self.dirs.bind('', self.dirs_double_event) - self.files = Listbox(self.midframe) + self.files = Listbox(self.midframe, exportselection=0) self.files.pack(side=RIGHT, expand=YES, fill=BOTH) self.files.bind('', self.files_select_event) self.files.bind('', self.files_double_event) diff --git a/Lib/tkinter/FileDialog.py b/Lib/tkinter/FileDialog.py index a2e56eaed88..4bb74b716ae 100755 --- a/Lib/tkinter/FileDialog.py +++ b/Lib/tkinter/FileDialog.py @@ -48,11 +48,11 @@ def __init__(self, master): self.filter.bind('', self.filter_command) self.midframe = Frame(self.top) self.midframe.pack(expand=YES, fill=BOTH) - self.dirs = Listbox(self.midframe) + self.dirs = Listbox(self.midframe, exportselection=0) self.dirs.pack(side=LEFT, expand=YES, fill=BOTH) self.dirs.bind('', self.dirs_select_event) self.dirs.bind('', self.dirs_double_event) - self.files = Listbox(self.midframe) + self.files = Listbox(self.midframe, exportselection=0) self.files.pack(side=RIGHT, expand=YES, fill=BOTH) self.files.bind('', self.files_select_event) self.files.bind('', self.files_double_event)