Skip to content

Commit

Permalink
Fix the scrollbar in the 'Open' dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvd848 committed Oct 24, 2021
1 parent 740e4ed commit 1d3563c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytai/view/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ def __init__(self, parent, cwd: str, open_file_callback: Callable[[str, str], No
self.entry_format = EntryWithPlaceholder(self.window, placeholder = self.filter_str, textvariable = self.search_var, width = 40)

lbox_frame = tk.Frame(self.window)
lbox_scrollbar = tk.Scrollbar(lbox_frame)
self.lbox = tk.Listbox(lbox_frame, height = 10)
lbox_scrollbar = tk.Scrollbar(lbox_frame, command = self.lbox.yview)
self.lbox.config(yscrollcommand= lbox_scrollbar.set)
self.search_var.trace("w", lambda name, index, mode: self.update_list())

Expand Down

0 comments on commit 1d3563c

Please sign in to comment.