From 50e591e7d52e3e31e15c49f57749ac9ab69837f8 Mon Sep 17 00:00:00 2001 From: inpos Date: Sun, 13 Mar 2016 11:33:45 +0300 Subject: [PATCH] alert.py --- libpyrr/alert.py | 0 libpyrr/headers/alert_observer_h.py | 16 +++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 libpyrr/alert.py diff --git a/libpyrr/alert.py b/libpyrr/alert.py new file mode 100644 index 0000000..e69de29 diff --git a/libpyrr/headers/alert_observer_h.py b/libpyrr/headers/alert_observer_h.py index bf41bb9..ae4d3e4 100644 --- a/libpyrr/headers/alert_observer_h.py +++ b/libpyrr/headers/alert_observer_h.py @@ -1,8 +1,10 @@ from ..utils import Struct -alert_observer = Struct({ - 'alert_handler': None, - 'handle_alert': 0, - 'types': [], - 'num_types': 0, - 'flags': 0 - }) \ No newline at end of file +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