[python-win32] win32gui.GetCursorInfo: TypeError: function takes no arguments

Mark Hammond skippy.hammond at gmail.com
Sat Oct 29 03:33:08 CEST 2011


On 27/10/2011 5:52 PM, Anton Kurbatov wrote:
> May you help me, pls...
>
> I am using win7 ultimate. Installed version of python 2.5.1.1.
> (ActivePython with pywin32)
>
> I get the following msg:
>
>>>> import win32gui
>>>> print win32gui.GetCursorInfo()
> Traceback (most recent call last):
>    File "<stdin>", line 1, in<module>
> TypeError: function takes no arguments
>>>>
>
> This is a bug?

Strange - it works for me:

 >>> import win32gui
 >>> win32gui.GetCursorInfo()
(1, 65545L, (684, 703))
 >>>

Mark


More information about the python-win32 mailing list