Add name to events

This commit is contained in:
Ruud
2012-04-17 20:27:40 +02:00
parent c509aa331f
commit 7c2233b266
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -56,7 +56,7 @@ class Event(object):
>> None
"""
def __init__(self, sender = None, asynch = False, exc_info = False,
def __init__(self, name = None, sender = None, asynch = False, exc_info = False,
lock = None, threads = 3, traceback = False):
""" Creates an event
@@ -96,6 +96,7 @@ class Event(object):
)
"""
self.in_order = False
self.name = name
self.asynchronous = asynch
self.exc_info = exc_info
self.lock = lock