diff options
Diffstat (limited to 'addons/clickaction.py')
-rw-r--r-- | addons/clickaction.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/clickaction.py b/addons/clickaction.py index 88c5519..fef766e 100644 --- a/addons/clickaction.py +++ b/addons/clickaction.py @@ -25,9 +25,10 @@ class ClickAction(Action): @param widget The threehish representation of the widget """ widget = TStringProperty("") - def __init__(self, widget): + def __init__(self, widget=None): Action.__init__(self) - self.widget = widget + if widget: + self.widget = widget def do(self): """ |