|
|
|
|
@ -27,7 +27,7 @@ class MultiOptionDialog(Widget): |
|
|
|
|
# Create scroller with option buttons |
|
|
|
|
self.option_buttons = [Button(option, click_callback=lambda opt=option: self._on_option_clicked(opt), |
|
|
|
|
text_alignment=rl.GuiTextAlignment.TEXT_ALIGN_LEFT, button_style=ButtonStyle.NORMAL, |
|
|
|
|
text_padding=50, elide_right=True) for option in options] |
|
|
|
|
text_padding=50) for option in options] |
|
|
|
|
self.scroller = Scroller(self.option_buttons, spacing=LIST_ITEM_SPACING) |
|
|
|
|
|
|
|
|
|
self.cancel_button = Button("Cancel", click_callback=lambda: self._set_result(DialogResult.CANCEL)) |
|
|
|
|
|