implement some basic validation for the sample rate

This commit is contained in:
Jakob Ketterl 2024-01-17 21:23:35 +01:00
parent 79e81295d5
commit 374bbb599e
4 changed files with 46 additions and 9 deletions

View file

@ -331,8 +331,8 @@ class ModesInput(DropdownInput):
class ExponentialInput(Input):
def __init__(self, id, label, unit, infotext=None):
super().__init__(id, label, infotext=infotext)
def __init__(self, id, label, unit, infotext=None, validator: Validator = None):
super().__init__(id, label, infotext=infotext, validator=validator)
self.unit = unit
def defaultConverter(self):