Hi All,
I posted this question on the wxPython-mac list, but I had no reaction, so I am posting it here in the hope that someone could share some wisdom..
I am trying to paste images in my application using the following code:
do = wx.BitmapDataObject()
if wx.TheClipboard.Open():
success = wx.TheClipboard.GetData( do )
wx.TheClipboard.Close()
if success:
pastedBmp = do.GetBitmap()
....
The code works on win32, but the GetData call always fails on the mac (OS X 10.4, python 2.5, wxpython 2.8.7.1).
I have tried to use other data objects (MetaFileDataObject and CustomDataObject) than bitmap data object but I had no luck.
I tried to look on google for hints but I couldn't find anything.
Any pointers are welcome.
Thanks,
Enrico