There are a number of topics (Get window position & size with python) that address how to get the position and size of a window on an individual OS basis.
Is there a way to do this that's system-agnostic?
There are a number of topics (Get window position & size with python) that address how to get the position and size of a window on an individual OS basis.
Is there a way to do this that's system-agnostic?
I am not sure about a system-agnostic way of handling it, but when ever I run into an issue related to system specific operations. I will insert a platform check.
from sys import platform
if platform == "linux":
# linux
elif platform == "darwin":
# OS X
elif platform == "windows":
# Windows...
From there I can write out the appropriate operations for what ever task I need to complete on each platform.