allow alternative object to start alarm from

This commit is contained in:
2022-11-30 19:10:04 +01:00
parent 2d3a1101dd
commit e432bdeaa4
+3 -2
View File
@@ -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()