event.py
Go to the documentation of this file.
1 class Event:
2  def __init__(self, name='annoymous'):
3  self.name = name
4 
5  def __repr__(self):
6  return self.__str__()
7 
8  def __str__(self):
9  return '%s::%s' % (self.__class__.__name__, self.name)
10 
11  def getname(self):
12  return self.name
13 
14 
15 if __name__ == '__main__':
16  ev = Event()
17  print(ev)
18  ev = Event('test event')
19  print(ev)
def __init__(self, name='annoymous')
Definition: event.py:2


tello_driver
Author(s): Jordy van Appeven
autogenerated on Wed May 13 2020 03:34:54