simplified __call__
This commit is contained in:
@@ -34,14 +34,12 @@ class Marker(Registry):
|
||||
return res
|
||||
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
return self.goto(*args, **kwargs)
|
||||
|
||||
|
||||
def goto(self, hold=False):
|
||||
print(f"Going to \"{self.name}\"")
|
||||
return self.adj.set_target_value(self.value, hold=hold)
|
||||
|
||||
__call__ = goto
|
||||
|
||||
|
||||
|
||||
def format_value(value, units):
|
||||
|
||||
Reference in New Issue
Block a user