Skip to content

Commit 1d3563c

Browse files
committed
Fix the scrollbar in the 'Open' dialog
1 parent 740e4ed commit 1d3563c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytai/view/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ def __init__(self, parent, cwd: str, open_file_callback: Callable[[str, str], No
351351
self.entry_format = EntryWithPlaceholder(self.window, placeholder = self.filter_str, textvariable = self.search_var, width = 40)
352352

353353
lbox_frame = tk.Frame(self.window)
354-
lbox_scrollbar = tk.Scrollbar(lbox_frame)
355354
self.lbox = tk.Listbox(lbox_frame, height = 10)
355+
lbox_scrollbar = tk.Scrollbar(lbox_frame, command = self.lbox.yview)
356356
self.lbox.config(yscrollcommand= lbox_scrollbar.set)
357357
self.search_var.trace("w", lambda name, index, mode: self.update_list())
358358

0 commit comments

Comments
 (0)