-1

I have a small window with buttons for performing some of the functions I need. I made it transparent and without a window, so I can not move it. I have several monitors and really want them to be always there.

Question: How can I determine the active screen and place (recreate) the window in the upper right corner?

1 Answers1

0

On Windows:

from win32api import GetSystemMetrics

print("Width =", GetSystemMetrics(0))
print("Height =", GetSystemMetrics(1))

If you are working with high resolution screen, make sure your python interpreter is HIGHDPIAWARE.

Todegal
  • 34
  • 6
  • That you, that t the person under my question took up the easiest problem, the definition of an extension, I saw at least 3 ways to get them, but this is a secondary task. – exovirus3211 Mar 04 '19 at 09:52
  • That you, the first person to comment failed to speak english so spectacularly has simply blown me away. – Todegal Mar 07 '19 at 15:51