Skip to content

Commit

Permalink
fix bug in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
weclaw1 committed Jun 7, 2024
1 parent af33b4c commit ded2c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inbac/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def create_settings_window(self):
settings.selection_box_color_choices = [
"black", "white", "red", "green", "blue", "cyan", "yellow", "magenta"]
settings.selection_box_color_listbox = tk.Listbox(
settings_window, listvariable=tk.ListVar( # type: ignore
value=settings.selection_box_color_choices))
settings_window, listvariable=tk.StringVar(
value=settings.selection_box_color_choices)) # type: ignore
if self.controller.model.args.selection_box_color in settings.selection_box_color_choices:
selection_box_color_index = settings.selection_box_color_choices.index(
self.controller.model.args.selection_box_color)
Expand Down

0 comments on commit ded2c68

Please sign in to comment.