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

Method set_overlay

src/gui_controller.py:92–103  ·  view source on GitHub ↗

Set the overlay type.

(self, overlay_type)

Source from the content-addressed store, hash-verified

90 return False
91
92 def set_overlay(self, overlay_type):
93 """Set the overlay type."""
94 try:
95 response = requests.post(
96 f"{self.base_url}/overlay",
97 json={"overlay": overlay_type},
98 timeout=2
99 )
100 response.raise_for_status()
101 return True
102 except requests.RequestException:
103 return False
104
105
106class PuppetLauncher:

Callers 1

_on_overlay_selectedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected