|
@@ -75,16 +75,15 @@ ctrl.registerFunctions([ |
|
|
memory_selectItem, |
|
|
memory_selectItem, |
|
|
]) |
|
|
]) |
|
|
|
|
|
|
|
|
def printOutput(c): |
|
|
|
|
|
if c.recentField.startswith("output"): |
|
|
|
|
|
print(c.field(c.recentField)) |
|
|
|
|
|
ctrl.registerCallback(printOutput) |
|
|
|
|
|
|
|
|
def printDbg(c): |
|
|
|
|
|
print(f"Dbg key/value: '{c.recentField}'/'{c.field(c.recentField)}'") |
|
|
|
|
|
ctrl.registerCallback(printDbg) |
|
|
ctrl.registerFieldCallback("exit", lambda c: sys.exit(0)) |
|
|
ctrl.registerFieldCallback("exit", lambda c: sys.exit(0)) |
|
|
|
|
|
|
|
|
p = desktop_Platform() |
|
|
p = desktop_Platform() |
|
|
p.ctrl = ctrl |
|
|
p.ctrl = ctrl |
|
|
p.sequentialTimer = desktop_SequentialTimer() |
|
|
p.sequentialTimer = desktop_SequentialTimer() |
|
|
p.sequentialTimer.ctrl = ctrl |
|
|
|
|
|
|
|
|
p.sequentialTimer.callback = lambda key, value: ctrl.set(key, value) |
|
|
|
|
|
|
|
|
# Copy context to platform. |
|
|
# Copy context to platform. |
|
|
# And process lots of functions that are interested in changes. |
|
|
# And process lots of functions that are interested in changes. |
|
|