Skip to content

Commit 3a80560

Browse files
committed
Fix click on root button in path bar
1 parent 490926a commit 3a80560

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tkfilebrowser/filebrowser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ def _update_path_bar(self, path):
994994
else:
995995
p = "/"
996996
b = PathButton(self.path_bar, self.path_var, p, image=self.im_drive,
997-
command=lambda path=p: self.display_folder(p, update_bar=False))
997+
command=lambda path=p: self.display_folder(path, update_bar=False))
998998
self.path_bar_buttons.append(b)
999999
b.grid(row=0, column=1, sticky="ns")
10001000
for i, folder in enumerate(folders):
@@ -1210,6 +1210,7 @@ def _display_folder_scandir(self, folder, reset=True, update_bar=True):
12101210
"""
12111211
# remove trailing / if any
12121212
folder = abspath(folder)
1213+
print(folder)
12131214
# reorganize display if previous was 'recent'
12141215
if not self.path_bar.winfo_ismapped():
12151216
self.path_bar.grid()

0 commit comments

Comments
 (0)