Closed jipen closed 1 month ago
Method to get the list of every options of the listbox:
def get_options(self) -> list[str]: """ Get all the options of the listbox """ options_buttons = list(self.buttons.values()) return [btn.cget("text") for btn in options_buttons]
@jipen There is already .get method, .get("all") returns all the values
.get("all")
My bad, I didn't notice that...
Method to get the list of every options of the listbox: