[wxPython-users] Re: how to use wx.DragTreeItem?

Robin Dunn robin at alldunn.com
Fri Feb 15 15:53:11 PST 2008


Danny Shevitz wrote:
>> I tried implementing this in their TreeEditor and it didn't seem to work. 
>> Can someone be kind enough to write a few sentences and explain how this
>> drag image hook is supposed to work?
> 
> I can probably be more specific. How do I create a wx.Cursor (the type
> required by a DropSource) from a DragImage (what DragTreeItem produces)?

You don't.  If you want to use a cursor then just make an image from the 
text and convert it to a cursor.  Making a wx.DragImage first is just a 
wast of effort.  But I expect that you don't want to do that because 
there are several limitations on the cursor sizes and/or colors, 
depending on platform.


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





More information about the wxpython-users mailing list