diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-18 22:55:15 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-18 22:55:15 -0500 |
commit | b03757cbbdd9781164e5a0e86d68f42bd5da862f (patch) | |
tree | bd3bb8fe9f2ec3da31cde3c1109d99375ee5d1ba /qolab/gui/web.py | |
parent | ac7c1996e182ac149bbd5a5b4265d3fc2bee7828 (diff) | |
download | qolab-b03757cbbdd9781164e5a0e86d68f42bd5da862f.tar.gz qolab-b03757cbbdd9781164e5a0e86d68f42bd5da862f.zip |
chart with log starts autoupdate loop automatically
Diffstat (limited to 'qolab/gui/web.py')
-rw-r--r-- | qolab/gui/web.py | 8 |
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') |