forked from Advanced_Python/advanced-python-homework-2023
add execute
This commit is contained in:
parent
48b18048c8
commit
9cf90c7f18
1
turtle/.gitignore
vendored
Normal file
1
turtle/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
test.ipynb
|
@ -7,7 +7,6 @@ from controls.device import ActionDescriptor
|
||||
|
||||
class TurtleDevice(SynchronyDevice):
|
||||
def open(self):
|
||||
self.turtle = Turtle()
|
||||
super().open()
|
||||
|
||||
def close(self):
|
||||
@ -25,10 +24,14 @@ class TurtleDevice(SynchronyDevice):
|
||||
pass
|
||||
|
||||
def read(self, trait_name: str) -> Any:
|
||||
raise NonReadableTrait
|
||||
pass
|
||||
|
||||
def write(self, trait_name: str, value: Any) -> bool:
|
||||
self.turtle.write()
|
||||
|
||||
def execute(self, action_name: str, *args, **kwargs):
|
||||
"""Execute action `action_name`, using `args` and `kwargs` as action argument."""
|
||||
pass
|
||||
|
||||
def invalidate(self, trait_name: str):
|
||||
pass
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user