Help!!! (wxCursor)

How properly use wxCursor in wxPythonGTK (ver. 2.4.0.2)? I do:

···

===================================================
In [1]: from wxPython.wx import *

In [2]: cur=wxCursor("down_arrow.xbm")

In [3]: cur
Out[3]: <C wxCursor instance at down_arrow.xbm>

In [4]: cur.Ok()
-------------------------------------------------------------------------
--
TypeError Traceback (most recent call
last)

?

/usr/lib/python2.2/site-packages/wxPython/gdi.py in Ok(self, *_args,
**_kwargs)
    216 gdic.delete_wxCursor(self)
    217 def Ok(self, *_args, **_kwargs):
--> 218 val = apply(gdic.wxCursor_Ok,(self,) + _args, _kwargs)
    219 return val
    220 def __repr__(self):

TypeError: Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.

How I must make own cursor ? Or, if it is bug, how possibly to fix it?

--
With best regards,
Alexander I. Evseev

Alexander I. Evseev wrote:

How I must make own cursor ? Or, if it is bug, how possibly to fix it?

There isn't good support for anything but the stock cursors currently, I'm not sure why it hasn't been added yet... Anyway, I'll add a wxCursorFromImage "constructor" for the next release.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

There isn't good support for anything but the stock cursors currently,
I'm not sure why it hasn't been added yet... Anyway, I'll add a
wxCursorFromImage "constructor" for the next release.

Fabulous. I'd really like to be able to use non-stock cursors.

Thanks again, Robin.

···

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov