diff options
Diffstat (limited to 'components.py')
| -rw-r--r-- | components.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components.py b/components.py index 8015621f..48bcdaf5 100644 --- a/components.py +++ b/components.py @@ -174,11 +174,11 @@ class Clock(HTMLComponent, GUIComponent, VariableText): return self.getText() class Button(HTMLComponent, GUIComponent, VariableText): - def __init__(self, text=""): + def __init__(self, text="", onClick = [ ]): GUIComponent.__init__(self) VariableText.__init__(self) self.setText(text) - self.onClick = [ ] + self.onClick = onClick def push(self): for x in self.onClick: @@ -224,7 +224,6 @@ class VolumeBar(HTMLComponent, GUIComponent, VariableValue): g.setRange(0, 100) return g - class MenuList(HTMLComponent, GUIComponent): def __init__(self, list): GUIComponent.__init__(self) |
