ui: increase entry size for ChoiceControlBig

This commit is contained in:
Haochen Tong 2022-07-08 01:28:02 +08:00 committed by Peter F. Patel-Schneider
parent 20ffb31e1d
commit 1449a47263
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class ChoiceControlBig(Gtk.Entry, Control):
self.init(sbox, delegate) self.init(sbox, delegate)
self.choices = choices if choices is not None else sbox.setting.choices self.choices = choices if choices is not None else sbox.setting.choices
self.value = None 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) liststore = Gtk.ListStore(int, str)
for v in self.choices: for v in self.choices:
liststore.append((int(v), str(v))) liststore.append((int(v), str(v)))