Oct-11-2020, 09:10 PM
Hi!
This seems like an obviously asked and answered and if so, I apologize. However, I cannot seem to be able to find the answer, and I have lost a few days searching.
So, I am trying to get current position of pygame window on physical screen in order to set other forms positions accordingly.
It would also bi nice to be able to set position and detect movement of window, but it’s not critical for my project. Not at this point anyway.
All I found was:
Please help!
This seems like an obviously asked and answered and if so, I apologize. However, I cannot seem to be able to find the answer, and I have lost a few days searching.
So, I am trying to get current position of pygame window on physical screen in order to set other forms positions accordingly.
It would also bi nice to be able to set position and detect movement of window, but it’s not critical for my project. Not at this point anyway.
All I found was:
1 2 |
import os os.environ[ 'SDL_VIDEO_WINDOW_POS' ] = '%d,%d' % (x,y) |