Change_turtle_device
This commit is contained in:
parent
80c8c54b61
commit
ecf00c92bc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user