From 1449a47263ae72caa80a46129bbc777d5f0df1e3 Mon Sep 17 00:00:00 2001 From: Haochen Tong Date: Fri, 8 Jul 2022 01:28:02 +0800 Subject: [PATCH] ui: increase entry size for ChoiceControlBig --- lib/solaar/ui/config_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solaar/ui/config_panel.py b/lib/solaar/ui/config_panel.py index a557e70c..fcd6bfa4 100644 --- a/lib/solaar/ui/config_panel.py +++ b/lib/solaar/ui/config_panel.py @@ -173,7 +173,7 @@ class ChoiceControlBig(Gtk.Entry, Control): self.init(sbox, delegate) self.choices = choices if choices is not None else sbox.setting.choices self.value = None - self.set_width_chars(max([len(str(x)) for x in self.choices]) + 2) + self.set_width_chars(max([len(str(x)) for x in self.choices]) + 5) liststore = Gtk.ListStore(int, str) for v in self.choices: liststore.append((int(v), str(v)))