Cursors

Hello all,

In a little application, I was trying to change the cursor.
Going through the exampels, I discovered that not all mouse cursors are
available (under linux ubuntu hardy heron). however, every single
application can change them so... I suppose there are on the system.
Is there a way to force looking for these missing ones ?
Thank you

Jean-Marc,

Hello all,

In a little application, I was trying to change the cursor. Going through the exampels, I discovered that not all mouse cursors are
available (under linux ubuntu hardy heron). however, every single
application can change them so... I suppose there are on the system. Is there a way to force looking for these missing ones ?
Thank you

If you know the path to the cursor you want, you can do it like this:

<code>

# wx.Cursor(path\to\file, wx.BITMAP_TYPE* constant)
myCurs = wx.Cursor(r'C:\WINDOWS\Cursors\3dgarro.cur', wx.BITMAP_TYPE_CUR)

# self is a wx.Frame in my example
self.SetCursor(myCurs)

</code>

ยทยทยท

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org