master
inpos 2016-03-13 11:33:45 +03:00
parent 035ad1cce0
commit 50e591e7d5
2 changed files with 9 additions and 7 deletions

0
libpyrr/alert.py 100644
View File

View File

@ -1,8 +1,10 @@
from ..utils import Struct
alert_observer = Struct({
'alert_handler': None,
'handle_alert': 0,
'types': [],
'num_types': 0,
'flags': 0
})
class alert_observer(Struct):
def __init__(self):
super(alert_observer, self).__init__()
self.num_types = 0
self.flags = 0
self.types = []
self.alert_handler = None
def handle_alert(self, a):
pass