Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 17, 2024
1 parent 8f007b7 commit 4c764c7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import time

import solara
#from solara.alias import rv
# from solara.alias import rv


@solara.component
def Page():
Expand Down Expand Up @@ -40,7 +41,7 @@ def run_timer():

solara.use_thread(run_timer, dependencies=[duration, running])

#with solara.VBox() as main:
# with solara.VBox() as main:
solara.Column()
if not running:
if duration < 1:
Expand All @@ -52,7 +53,7 @@ def run_timer():
solara.Markdown(f"# {seconds} seconds left")
else:
solara.solara.Markdown("# Time's up!")
#rv.TextField(type="number", v_model=duration, on_v_model=on_duration, disabled=running)
# rv.TextField(type="number", v_model=duration, on_v_model=on_duration, disabled=running)
solara.v.TextField(type="number", v_model=duration, on_v_model=on_duration, disabled=running)
with solara.HBox():
if running:
Expand All @@ -62,4 +63,4 @@ def run_timer():
solara.Button("Reset", on_click=lambda: set_seconds(duration), icon_name="mdi-restart")
else:
solara.Button("Start", on_click=lambda: set_running(True), icon_name="mdi-play", disabled=seconds < 1)
#return main
# return main

0 comments on commit 4c764c7

Please sign in to comment.