[core] Add per-module interval configuration

Allow individual modules to set different update intervals by using an
overriding 'interval' parameter.

see #574
This commit is contained in:
Tobias Witek 2020-03-23 15:32:06 +01:00
parent 0e538a6088
commit e8288ef793
2 changed files with 6 additions and 0 deletions

View file

@ -36,6 +36,7 @@ class Module(core.input.Object):
for widget in self._widgets:
widget.module(self)
self._name = None
self.next_update = None
def parameter(self, key, default=None):
value = default