giving events a name

This commit is contained in:
Jonas Zeunert
2020-05-03 20:33:49 +02:00
parent 8553361815
commit 6edd604c28
13 changed files with 14 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import logging
class Event:
def __init__(self, name):
self.name = name
logging.info("Created " + self.name)
def trigger(self):
logging.info('Event ' + self.name + ' triggered!')