[wxPython-users] Clipboard and BitmapDataObject
Enrico Costanza
enrico.costanza at epfl.ch
Wed Jan 9 14:34:21 PST 2008
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.
>
> I tried to look on google for hints but I couldn't find anything.
> Any pointers are welcome.
>
> Thanks,
> Enrico
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
More information about the wxpython-users
mailing list