mirror of
https://github.com/Death916/deathclock.git
synced 2026-04-10 03:04:40 -07:00
radio button
This commit is contained in:
parent
f859756f46
commit
b71911d7ab
2 changed files with 15 additions and 3 deletions
|
|
@ -424,8 +424,10 @@ def index() -> rx.Component:
|
|||
rx.theme_panel(default_open=False),
|
||||
rx.flex(
|
||||
rx.vstack(
|
||||
rx.hstack(
|
||||
State._radio_client.radio_card(),
|
||||
clock_button,
|
||||
),
|
||||
main_flex,
|
||||
news_card,
|
||||
align="center",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,17 @@ class Radio(rx.Base):
|
|||
return rx.button("Radio", on_click=self.open_radio_button)
|
||||
|
||||
def radio_card(self):
|
||||
return rx.card(title="Radio")
|
||||
radio_card = rx.card(
|
||||
rx.vstack(
|
||||
rx.heading("Radio"),
|
||||
rx.text("Current Station"),
|
||||
# rx.text("Volume"),
|
||||
# rx.button("Play"),
|
||||
# rx.button("Pause"),
|
||||
# rx.button("Stop"),
|
||||
),
|
||||
)
|
||||
return radio_card
|
||||
|
||||
|
||||
class Radio_Control:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue