|
|
@@ -75,16 +75,15 @@ ctrl.registerFunctions([ |
|
|
|
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)) |
|
|
|
|
|
|
|
p = desktop_Platform() |
|
|
|
p.ctrl = ctrl |
|
|
|
p.sequentialTimer = desktop_SequentialTimer() |
|
|
|
p.sequentialTimer.ctrl = ctrl |
|
|
|
p.sequentialTimer.callback = lambda key, value: ctrl.set(key, value) |
|
|
|
|
|
|
|
# Copy context to platform. |
|
|
|
# And process lots of functions that are interested in changes. |
|
|
|