diff --git a/slic/gui/widgets/tools.py b/slic/gui/widgets/tools.py index 0c1a69b7..b94b8e95 100644 --- a/slic/gui/widgets/tools.py +++ b/slic/gui/widgets/tools.py @@ -12,8 +12,9 @@ class STRETCH: pass class AlarmMixin: - def alarm(self): - wx.GetTopLevelParent(self).Raise() + def alarm(self, obj=None): + obj = obj or self + wx.GetTopLevelParent(obj).Raise()