large reorganization, part 1 done
This commit is contained in:
14
templates/cool_motor.py
Normal file
14
templates/cool_motor.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from slic.core.adjustable import Adjustable
|
||||
|
||||
|
||||
class MyNewCoolThing(Adjustable):
|
||||
pos = 0
|
||||
|
||||
def get_current_value(self):
|
||||
return self.pos
|
||||
|
||||
def set_target_value(self, value):
|
||||
self.pos = value
|
||||
|
||||
def is_moving(self):
|
||||
return False # OK OK, this is probably cheating ;)
|
||||
Reference in New Issue
Block a user