forked from Advanced_Python/advanced-python-homework-2023
modified: equipment/turtle_device.py
This commit is contained in:
parent
070fc3ab18
commit
7742a74729
@ -11,12 +11,6 @@ class TurtleDevice(SynchronyDevice):
|
|||||||
del self.turtle
|
del self.turtle
|
||||||
super().close()
|
super().close()
|
||||||
|
|
||||||
# @property
|
|
||||||
# def trait_descriptors(self):
|
|
||||||
# traits = [attribute for attribute in vars(self.turtle).items()
|
|
||||||
# if (attribute[0].startswith('_') == False)]
|
|
||||||
|
|
||||||
# return Collection[[TraitDescriptor(*tr) for tr in traits]]
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def trait_descriptors(self):
|
def trait_descriptors(self):
|
||||||
@ -26,12 +20,6 @@ class TurtleDevice(SynchronyDevice):
|
|||||||
self.traits = [TraitDescriptor(*tr) for tr in traits]
|
self.traits = [TraitDescriptor(*tr) for tr in traits]
|
||||||
return self.traits
|
return self.traits
|
||||||
|
|
||||||
# @property
|
|
||||||
# def action_descriptors(self):
|
|
||||||
# actions = [(attribute, getattr(t, attribute)) for attribute in dir(t)
|
|
||||||
# if (attribute.startswith('_') == False)]
|
|
||||||
|
|
||||||
# return Collection[[TraitDescriptor(*ac) for ac in actions]]
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def action_descriptors(self):
|
def action_descriptors(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user