|
|
@@ -5,6 +5,7 @@ from ctx import * |
|
|
|
from ctx_test2 import * |
|
|
|
from desktop import * |
|
|
|
from desktop_Platform import * |
|
|
|
from desktop_SequentialTimer import * |
|
|
|
from desktop_Window import * |
|
|
|
from gui import * |
|
|
|
from gui_aux_test import * |
|
|
@@ -81,13 +82,16 @@ ctrl.registerCallback(printOutput) |
|
|
|
ctrl.registerFieldCallback("exit", lambda c: sys.exit(0)) |
|
|
|
|
|
|
|
p = desktop_Platform() |
|
|
|
# Keep copy of ctrl in platform, too. |
|
|
|
p.ctrl = ctrl |
|
|
|
p.sequentialTimer = desktop_SequentialTimer() |
|
|
|
|
|
|
|
# Copy context to platform. |
|
|
|
def copyContext(c): |
|
|
|
# And process lots of functions that are interested in changes. |
|
|
|
def process(c): |
|
|
|
p.c = c |
|
|
|
ctrl.registerCallback(copyContext) |
|
|
|
desktop_displaySelectedTile(p) |
|
|
|
desktop_scheduleHidingOfMatchingTiles(p) |
|
|
|
ctrl.registerCallback(process) |
|
|
|
|
|
|
|
ctrl.set("didLaunch", True) |
|
|
|
ctrl.set("playfieldSize", 2) |
|
|
|