Change_turtle_device

This commit is contained in:
zefirova.am 2023-12-13 22:48:01 +03:00
parent 80c8c54b61
commit ecf00c92bc

View File

@ -35,11 +35,11 @@ class TurtleDevice(SynchronyDevice):
@property @property
def action_descriptors(self): 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)] if (attribute.startswith('_') == False)]
self.actions = [TraitDescriptor(*ac) for ac in actions] self.actions = [TraitDescriptor(*ac) for ac in actions]
return self.acions return self.actions
def read(self, trait_name): def read(self, trait_name):
collection = self.traits collection = self.traits