Fixing Select widget styling

This commit is contained in:
Darren Burns
2024-10-28 10:33:36 +00:00
parent 796a6ae73b
commit b34be61d13
2 changed files with 12 additions and 27 deletions

View File

@@ -261,9 +261,11 @@ class ChangingThemeApp(App[None]):
yield ThemeList(id="theme-list")
with VerticalScroll(id="widget-list") as container:
container.border_title = "Widget Gallery"
container.can_focus = False
yield Select(
[("foo", "foo"), ("bar", "bar"), ("baz", "baz"), ("qux", "qux")]
)
with Collapsible(title="An interesting story."):
yield Label("Interesting but verbose story.")
@@ -283,9 +285,6 @@ class ChangingThemeApp(App[None]):
yield Button.error("Error 3")
yield Button.warning("Warning 4")
yield Tabs("First tab", "Second tab", "Third tab", "Fourth tab")
yield Select(
[("foo", "foo"), ("bar", "bar"), ("baz", "baz"), ("qux", "qux")]
)
yield MaskedInput(
template="9999-9999-9999-9999;0",
)