I am going to be making a Image Organizer (somewhat in the vein of
F-Spot) and I am wondering about Drag and Drop. One thing I noticed
about GThumb and F-Spot was that I could drag the image into
Evolution.
Would it be something like:
def OnStartDrag(self, evt):
if evt.Dragging():
data = wx.BitmapDataObject(self.bitmap)
#assuming self.bitmap is of wx.Bitmap type
dropSource = wx.DropSource(self.dragText)
dropSource.SetData(data)
result = dropSource.DoDragDrop()
or if anyone know how Evolution/Thunderbird/etc. would take it (what
object I would have to create), because I am not sure if it would
require the location of the file or just the contents of the Bitmap.
- Barret Rennie