Change_turtle_device

This commit is contained in:
zefirova.am 2023-12-13 22:48:01 +03:00
parent 80c8c54b61
commit ecf00c92bc
1 changed files with 2 additions and 2 deletions

View File

@ -35,11 +35,11 @@ class TurtleDevice(SynchronyDevice):
@property
def action_descriptors(self):
actions = [(attribute, getattr(t, attribute)) for attribute in dir(t)
actions = [(attribute, getattr(self.turtle, attribute)) for attribute in dir(self.turtle)
if (attribute.startswith('_') == False)]
self.actions = [TraitDescriptor(*ac) for ac in actions]
return self.acions
return self.actions
def read(self, trait_name):
collection = self.traits