Main Page
Namespaces
Classes
Files
File List
File Members
src
TelloPy
tellopy
_internal
state.py
Go to the documentation of this file.
1
class
State
(object):
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
st =
State
()
17
print(st)
18
st =
State
(
'test state'
)
19
print(st)
tellopy._internal.state.State
Definition:
state.py:1
tellopy._internal.state.State.__init__
def __init__(self, name='annoymous')
Definition:
state.py:2
tellopy._internal.state.State.name
name
Definition:
state.py:3
tellopy._internal.state.State.getname
def getname(self)
Definition:
state.py:11
tellopy._internal.state.State.__str__
def __str__(self)
Definition:
state.py:8
tellopy._internal.state.State.__repr__
def __repr__(self)
Definition:
state.py:5
tello_driver
Author(s): Jordy van Appeven
autogenerated on Wed May 13 2020 03:34:54