What steps will reproduce the problem?
1. simply call Win32Window.GetLocation
2.
3.
Paste in the traceback or error message:
self.window.get_location()
File "C:\Python27\lib\site-packages\pyglet\window\win32\__init__.py", line 321, in get_location
_user32.ClientToScreen(self._hwnd, byref(rect))
ctypes.ArgumentError: argument 2: <type 'exceptions.TypeError'>: expected
LP_POINT instance instead of pointer to RECT
Any additional info (platform/language/hardware) that may be relevant?
Here is the fix:
rect = RECT()
_user32.GetClientRect(self._hwnd, byref(rect))
point = POINT()
point.x = rect.left
point.y = rect.top
_user32.ClientToScreen(self._hwnd, byref(point))
return point.x, point.y
Original issue reported on code.google.com by seelenre...@gmail.com on 16 Mar 2012 at 10:30
Original issue reported on code.google.com by
seelenre...@gmail.com
on 16 Mar 2012 at 10:30