From b71911d7ab182ea8163fc192999aba37b362ae9d Mon Sep 17 00:00:00 2001 From: death916 Date: Fri, 5 Dec 2025 04:32:54 -0800 Subject: [PATCH] radio button --- deathclock/deathclock.py | 6 ++++-- utils/radio.py | 12 +++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/deathclock/deathclock.py b/deathclock/deathclock.py index dc7a4ad..e1da26d 100755 --- a/deathclock/deathclock.py +++ b/deathclock/deathclock.py @@ -424,8 +424,10 @@ def index() -> rx.Component: rx.theme_panel(default_open=False), rx.flex( rx.vstack( - State._radio_client.radio_card(), - clock_button, + rx.hstack( + State._radio_client.radio_card(), + clock_button, + ), main_flex, news_card, align="center", diff --git a/utils/radio.py b/utils/radio.py index 8ef537a..839a489 100644 --- a/utils/radio.py +++ b/utils/radio.py @@ -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: