From e432bdeaa4e83696d70cb8b18a759b97126099e7 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Wed, 30 Nov 2022 19:10:04 +0100 Subject: [PATCH] allow alternative object to start alarm from --- slic/gui/widgets/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()