From 503cf2acb7579655a362cde3604f6b79e587a146 Mon Sep 17 00:00:00 2001 From: Michael Altfield Date: Sun, 17 Mar 2024 21:05:43 -0500 Subject: [PATCH] duplicated the same code for the fonts for the triggers now the triggers appears, but the option items are broken still until we figure out how to access the property object from within the __init__() function --- src/buskill_gui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/buskill_gui.py b/src/buskill_gui.py index 9f34735a..3802dcf6 100755 --- a/src/buskill_gui.py +++ b/src/buskill_gui.py @@ -716,8 +716,10 @@ def _choose_settings_screen(self, instance): # create an OptionItem for each of the possible values for this # setting option, and add them to the new ComplexOption sub-screen - option_item = BusKillOptionItem( title = self.key, value = value, desc = desc, confirmation = confirmation, icon = icon, parent_option = self, manager = manager ) - setting_screen.content.add_widget( option_item ) + #option_item = BusKillOptionItem( title = self.key, value = value, desc = desc, confirmation = confirmation, icon = icon, parent_option = self, manager = manager ) + option_item = [{'title': self.key, 'value': value, 'icon':icon, 'desc': desc, 'confirmation': confirmation, 'parent_option': self, 'manager': manager }] + #setting_screen.content.add_widget( option_item ) + setting_screen.rv.data.extend(option_item) # handle the "font" option if self.key == 'font':