choices: move setup to constructor

This commit is contained in:
Peter Eisenmann
2024-06-04 20:47:07 +02:00
parent 51407d363d
commit 2105166728

View File

@@ -41,6 +41,7 @@ class ChoicesPage(Gtk.Box, Page):
print("Unknown choice type!")
exit(0)
self.model.splice(0, 0, self.list_provider())
self.list.bind_model(self.model, self._create_row)
def _create_row(self, choice):
@@ -66,9 +67,6 @@ class ChoicesPage(Gtk.Box, Page):
### public methods ###
def load_once(self):
reset_model(self.model, self.list_provider())
def unload(self):
summary = []
keywords = []