Oct-11-2020, 11:48 PM
Most of the time pygame is used as the sole GUI. It is not ideal to use with tkinter as people often do, for example. Pygame is designed to be the sole GUI while playing a game, not mixed with other GUI to be positioned on the monitor.
All of pygame.display methods are pertaining to the window itself, is current size and width, etc. not its location on the screen.
To be honest you may have to ask the developers on this one.
os.environ['SDL_VIDEO_WINDOW_POS']='{},{}'.format(100,200)this sets the environmental variable for SDL which pygame uses to position the window in that spot. However this variable is static....it does not change as you move the window. It is only useful for setting the initial location of the window to be spawned.
All of pygame.display methods are pertaining to the window itself, is current size and width, etc. not its location on the screen.
To be honest you may have to ask the developers on this one.
Recommended Tutorials: