Opened 12 years ago

Closed 5 years ago

#3472 closed defect (fixed)

animated cursor command not working

Reported by: stefabc Owned by:
Priority: normal Milestone:
Component: wxMSW Version: stable-latest
Keywords: Cc: stefabc
Blocked By: Blocking:
Patch: yes


I receive the following error when I tried:
cursor = wx.Cursor



Traceback (most recent call last):

File "C:\Python24\lib\site-

packages\PythonCard\", line 408,

in _dispatch

handler(background, aWxEvent)

File "C:\VSS_PDD_Identify\", line 732,



cursor = wx.Cursor



File "C:\Python24\lib\site-packages\wx-2.6-msw-


line 1057,

in init

newobj = _gdi_.new_Cursor(*args, kwargs)

wx._core.PyAssertionError: C++

assertion "wxAssertFailure" failed in

..\..\src\msw\cursor.cpp(287): unknown cursor

resource type

Attachments (2)

test3472_minimal.patch download (6.9 KB) - added by catalin 5 years ago.
fix3472.patch download (1.4 KB) - added by catalin 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by catalin

Changed 5 years ago by catalin

comment:1 Changed 5 years ago by catalin

  • Patch set
  • Version set to 2.9-svn

Looks like this was not supported. With the small attached change .ani cursors can be loaded too.

comment:2 Changed 5 years ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [73480]) Allow creating wxCursor from ANI files under MSW.

Simply pass them to the standard LoadCursorFromFile() function which supports
this format.

Closes #3472.

Note: See TracTickets for help on using tickets.