Jan H. wrote:
> The only example of the DataViewCtrl-Drag&Drop-mechanism I found is this:
>
http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/samples/dataview/dataview.cpp?revision=78273&view=markup
> (Line 875)
>
> In Lines 892-893, they get the data like this:
> > wxTextDataObject obj;
> > obj.SetData( wxDF_UNICODETEXT, event.GetDataSize(),
> event.GetDataBuffer() );
>
> This is not possible in Python (at least I think so).
>
> Thus, I'm coming to the conclusion that this is a bug which renders
> Drag&Drop with DataViewCtrl unusable. If I call event.GetDataBuffer() in
> the handler function of an EVT_DATAVIEW_ITEM_DROP, I get <Swig Object of
> type 'void *' at 0x1a59b30>. Since that C pointer is basically useless
> in python (I think so at least), that function should return a proper
> Python buffer object. And, if I look at the docs for wx.Image, which
> also has a GetDataBuffer()-method, it states: "Returns a writable Python
> buffer object that is pointing at the RGB image data buffer inside the
> wx.Image."
> I my assumption correct? Should I open a trac ticket?
>
related methods in the DataViewEvent working properly. I'll try to get