Dan Bungert
34d40643ad
format with black + isort
2023-07-25 15:27:42 -06:00
Olivier Gayot
68b9c42fac
Fix exception messages not interpolated properly
...
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2021-12-16 11:35:40 +01:00
Michael Hudson-Doyle
2d65fe4f16
attempt to make providing a good translation easier
...
* annotate a few missed string literals with _()
* try to consistently use named placeholders when formatting strings
for display (i.e. _("frob the {thing}") not _("frob the {}")
* run selector values, form captions and form help through _() before
display
* use ngettext in one place. not sure if there need to be more...
* reduce cuteness about how strings are constructed in a few places
2020-05-06 21:16:24 +12:00
Michael Hudson-Doyle
6913294de6
EXTREMELY OBSCURE fix
...
without this, selectors get skipped over when selecting the first element in a
pile if the label is some kind of container.
2019-12-16 21:15:46 +13:00
Michael Hudson-Doyle
9759957f36
allow Selector to have non-text entries
2019-12-16 13:28:42 +13:00
Michael Hudson-Doyle
a3734cda03
wrap actionmenu/selector popups in Color.body
...
this fixes a slight visual glitch in gnome-terminal
2019-10-16 12:50:44 +13:00
Michael Hudson-Doyle
619a92e252
always copy the options when creating a Selector
...
as I want to support mutating them after the fact
2019-07-24 11:27:29 +12:00
Michael Hudson-Doyle
91247c82c5
Merge pull request #373 from mwhudson/raid-the-fourth
...
Raid the fourth
2018-06-27 11:06:43 +12:00
Michael Hudson-Doyle
237290bbb3
fix rendering of long labels on guided disk selection screen
2018-06-26 14:20:41 +12:00
Michael Hudson-Doyle
9e4a66b628
add the raid view
2018-06-26 12:22:09 +12:00
Michael Hudson-Doyle
4501aee357
rework look of open selector to match
2018-06-25 23:45:21 +12:00
Michael Hudson-Doyle
391b70cdf5
rework the look of the selector widget
2018-06-25 23:45:21 +12:00
Michael Hudson-Doyle
7ab699716d
make Selector.options a public interface
2018-06-25 23:45:21 +12:00
Michael Hudson-Doyle
80bec75871
stop assigning to Selector.value emitting the "select" signal
...
for the avoidance of infinite recursion
2018-06-25 23:45:21 +12:00
Michael Hudson-Doyle
f08b6a42e5
make selector a WidgetWrap rather than a decoration
2018-06-25 23:10:39 +12:00
Michael Hudson-Doyle
9cbaac4542
use our custom WidgetWrap everywhere
2018-06-22 09:38:18 +12:00
Ryan Harper
4890d306fc
pep8 fixes subiquitycore/ui/selector.py
2018-05-24 16:51:51 -05:00
Michael Hudson-Doyle
0fe1f5145c
sprinkle in some more ".base_widget"s
2018-05-23 13:40:14 +12:00
Michael Hudson-Doyle
124b4e7f20
make the contents of a selector pop up dialog a listbox
...
the one for keyboard layout will need to scroll!
2018-01-12 10:27:44 +13:00
Michael Hudson-Doyle
923044be7e
move Selector widget to its own file and create a class for its Options
...
I wanted this so I can enable/disable options after creating the widget.
2017-09-05 09:43:45 +12:00