Main Page
Namespaces
Classes
Files
File List
File Members
src
TelloPy
tellopy
_internal
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)
tellopy._internal.event.Event
Definition:
event.py:1
tellopy._internal.event.Event.__repr__
def __repr__(self)
Definition:
event.py:5
tellopy._internal.event.Event.__init__
def __init__(self, name='annoymous')
Definition:
event.py:2
tellopy._internal.event.Event.getname
def getname(self)
Definition:
event.py:11
tellopy._internal.event.Event.name
name
Definition:
event.py:3
tellopy._internal.event.Event.__str__
def __str__(self)
Definition:
event.py:8
tello_driver
Author(s): Jordy van Appeven
autogenerated on Wed May 13 2020 03:34:54