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

Callers 1

_on_overlay_selectedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected