[wxPython-users] Clipboard and BitmapDataObject

Robin Dunn robin at alldunn.com
Wed Jan 9 15:17:35 PST 2008


Enrico Costanza wrote:
> Update:
> The operation seems to work on os x 10.5 but not on 10.4.
> Any ideas?
> 
> Thanks,
> Enrico
> 
> Enrico Costanza wrote:
>> 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.


Please enter a bug report about it, with a category of "wxMac Specific".



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




More information about the wxpython-users mailing list