allow alternative object to start alarm from
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user