|
12345678910111213141516171819202122 |
- import memory_Context
-
- class ContextController:
- def __init__(self):
- self.c = memory_createContext()
-
- def executeFunctions(self):
- pass
-
- def reportCallbacks(self):
- pass
-
- def set(self, field, value):
- setattr(self.c, field, value)
- self.c.recentField = field
- self.executeFunctions()
- self.reportCallbacks()
-
- ctrl = ContextController()
- ctrl.callback(printOutput)
-
- ctrl.set("didLaunch", True)
|