MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / changefunc

Function changefunc

src/main.py:21–27  ·  view source on GitHub ↗
(overlay_type, window)

Source from the content-addressed store, hash-verified

19from interaction_server import InteractionServer
20
21def changefunc(overlay_type, window):
22 if overlay_type == "background":
23 LayerShell.set_layer(window, LayerShell.Layer.BACKGROUND)
24 print("background")
25 elif overlay_type == "overlay":
26 LayerShell.set_layer(window, LayerShell.Layer.OVERLAY)
27 print("overlay")
28
29def on_activate(app):
30 # Configure the complete surface before mapping it. Presenting the window

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected