Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider to update playback speed #108

Merged
merged 11 commits into from
Dec 14, 2023
Prev Previous commit
Next Next commit
Separate synchronisation interval
tsmbland committed Dec 13, 2023
commit 4bb61756d5f6b1c8e2d62acca7dfd81a02144694
3 changes: 2 additions & 1 deletion app/app.py
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@
children=[
dash.page_container,
dcc.Interval(id="figure_interval"),
dcc.Interval(id="sync_interval", interval=1000),
],
)

@@ -23,7 +24,7 @@

@callback(
[Output("figure_interval", "disabled"), Output("figure_interval", "interval")],
[Input("figure_interval", "n_intervals")],
[Input("sync_interval", "n_intervals")],
)
def update_figure_interval(
n_intervals: int,
2 changes: 0 additions & 2 deletions app/pages/control.py
Original file line number Diff line number Diff line change
@@ -10,9 +10,7 @@

dash.register_page(__name__)

##################
interval = 7000
##################

options = [key for key in core.INIT_SECTIONS.keys() if key != "Control"]