This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
alarmdecoder
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Merge branch 'dev'
pyserial_fix
Scott Petersen
7 years ago
parent
865a6ff4d4
ffc6d5efdf
commit
ece476338e
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
alarmdecoder/event/event.py
+ 4
- 0
alarmdecoder/event/event.py
View File
@@ -65,6 +65,10 @@ class EventHandler(object):
self._getfunctionlist().remove(func)
return self
def clear(self):
del self._getfunctionlist()[:]
return self
def fire(self, *args, **kwargs):
"""Fire event and call all handler functions
Write
Preview
Loading…
Cancel
Save