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

Class WMInterface

src/wminterfaces/wminterface.py:1–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class WMInterface:
2 def __init__(self) -> None:
3 pass
4
5 def get_cursor_position(self) -> tuple[int, int]:
6 """Get cursor position relative to the puppet
7
8 Returns:
9 tuple [int, int]: (x, y)
10 """
11 return 0,0
12
13 def get_active_monitor_resolution(self) -> tuple[int, int]:
14 """Get the resolution of the monitor on which the puppet is displayed
15
16 Returns:
17 tuple [int, int]: (width, height)
18 """
19 return 1920, 1080

Callers 1

get_wm_interfaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected