From ded2c687b05b404adf04806d38191ae49b11acb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20W=C4=99c=C5=82awski?= Date: Fri, 7 Jun 2024 23:09:54 +0200 Subject: [PATCH] fix bug in settings --- inbac/view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inbac/view.py b/inbac/view.py index bef848c..5c8dfa8 100644 --- a/inbac/view.py +++ b/inbac/view.py @@ -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)