pygame is
pygame.org is
|
Pygame Window Info
Pygame Window Info - 0.1Eric Pavey (akeric)Tags:DescriptionI needed a way to be able to query the position of the active Pygame screen relative to the desktop. There didn’t seem to be any built-in way in Pygame to do this(?) After doing some searching, I ran across Python’s ctypes bindings. These let you tap into Windows (the OS) ‘window info’. Based on fiddling with that code, I’ve come up with a Python class that lets you query a few things:
The source code comes with unit test allowing immediate execution from shell showcasing functionality, and example usage. Tested with Pygame 1.9.1 and Python 2.6.2. Windows OS only Links
ScreenshotReleases
Pygame.org account CommentsIf you wish to leave a comment with your pygame.org account, please sign in first.
|
|