common event

This commit is contained in:
Jonas Zeunert
2020-05-03 20:03:56 +02:00
parent 29150d6ddc
commit 8e70921c8e
13 changed files with 42 additions and 10 deletions

8
Event.py Normal file
View File

@@ -0,0 +1,8 @@
import logging
class Event:
def __init__(self, name):
self.name = name
def trigger(self):
logging.info('Event ' + self.name + ' occured!')