On Fri, Aug 28, 2009 at 10:08 AM, Gene Buckle <geneb@xxxxxxxxxxxxx> wrote:
The main issue is that the avionics computer will have more than a couple
of these USB video adapters. Is it possible to discover the current window
position from within pygame? That would allow me to manually position the
window and then "save" the current position as the start position.
Hey Gene,
stuff like that is always possible - and ctypes is usually the best way
to do little hack stuff like this in python.
For getting the window pos, the function "pygame.display_get_info" gives you
a dictionary with "window" set the HWND of your window, and the OS function
"GetWindowRect" can be called on that HWND to get the window position/size