aboutsummaryrefslogtreecommitdiff
path: root/qolab/gui
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-18 22:55:15 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-18 22:55:15 -0500
commitb03757cbbdd9781164e5a0e86d68f42bd5da862f (patch)
treebd3bb8fe9f2ec3da31cde3c1109d99375ee5d1ba /qolab/gui
parentac7c1996e182ac149bbd5a5b4265d3fc2bee7828 (diff)
downloadqolab-b03757cbbdd9781164e5a0e86d68f42bd5da862f.tar.gz
qolab-b03757cbbdd9781164e5a0e86d68f42bd5da862f.zip
chart with log starts autoupdate loop automatically
Diffstat (limited to 'qolab/gui')
-rw-r--r--qolab/gui/web.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/qolab/gui/web.py b/qolab/gui/web.py
index 8227567..79a2d3a 100644
--- a/qolab/gui/web.py
+++ b/qolab/gui/web.py
@@ -86,7 +86,13 @@ class QOLTimeLog(jp.Div):
self.update_interval = QOLParamReadOnly(label='UpdateInterval',value=5,a=dcontrols)
self.autosave_interval = QOLParamReadOnly(label='AutoSaveInterval',value=10,a=dcontrols)
self.chart = jp.Matplotlib(a=root)
- self.plot()
+ self.start_task()
+
+ def start_task(self):
+ jp.run_task( self.update_loop() )
+
+ def stop_tasks(self):
+ pass
async def _next_file(self, msg):
print('asked for _next_file')