Skip to content
Snippets Groups Projects
Commit 9ad085a2 authored by Luis Dekant's avatar Luis Dekant
Browse files

Fixed. Removed all events and updated requirements.

parent fa625c5d
No related branches found
No related tags found
No related merge requests found
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
adwin>=0.16.1 adwin>=0.16.1
sphinx>=1.7.5 sphinx>=1.7.5
numpy>=1.14 numpy>=1.14
dash>=0.31.1 # The core dash backend dash==0.36.0 # The core dash backend
dash-renderer>=0.15.1 # The dash front-end dash-renderer==0.17.0 # The dash front-end
dash-html-components>=0.13.0 # HTML components dash-html-components==0.13.5 # HTML components
dash-core-components>=0.40.0 # Supercharged components dash-core-components==0.43.0 # Supercharged components
plotly plotly
pandas pandas
pandas-datareader>=0.5.0 pandas-datareader>=0.5.0
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
import dash_core_components as dcc import dash_core_components as dcc
import dash_html_components as html import dash_html_components as html
from dash.dependencies import Input, Output, Event, State from dash.dependencies import Input, Output, State
from abc import ABCMeta, abstractmethod from abc import ABCMeta, abstractmethod
from adwin_control import settings, controller from adwin_control import settings, controller
...@@ -337,8 +337,10 @@ class UIDevice(UIComponent): ...@@ -337,8 +337,10 @@ class UIDevice(UIComponent):
worktime = 'work_time_{}'.format(self._deviceNumber) worktime = 'work_time_{}'.format(self._deviceNumber)
dynamically_generated_function = self.__createWorkTimeCallback(worktime) dynamically_generated_function = self.__createWorkTimeCallback(worktime)
self._app.callback(Output(worktime, 'children'), [Input('update_stamps_{}'.format(self._deviceNumber), 'n_intervals')], events=[ self._app.callback(
Event('update_stamps_{}'.format(self._deviceNumber), 'interval')])(dynamically_generated_function) Output(worktime, 'children'),
[Input('update_stamps_{}'.format(self._deviceNumber), 'n_intervals')]
)(dynamically_generated_function)
reboot = 'device_reboot_button_{}'.format(self._deviceNumber) reboot = 'device_reboot_button_{}'.format(self._deviceNumber)
dynamically_generated_function = self.__createRebootCallback(reboot) dynamically_generated_function = self.__createRebootCallback(reboot)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment