component: old wxOSX/Carbon port | priority: normal
2003-01-31 07:22:54: kasplat created the issue
Mac OS X appears to transfer bitmap images around in
the clipboard as TIFFs, at least that is what Grab and
Preview seem to deal with. wxPython isn't able to deal
with bitmap data in the clipboard.
For example, copying a selection using Grab and then
running the attached clipbmp.py script results in the
following errors (wxPython 2.4.0.2 with Python 2.3a1-2
build.
ka
22:11:09: Debug: C++ assertion "wxAssertFailure" failed
in
../src/mac/bitmap.cpp(909): invalid bitmap
Got bitmap of size:
Traceback (most recent call last):
File "clipbmp.py", line 29, in OnDoClip
print "Got bitmap of size: ", (bmp.GetWidth(),
bmp.GetHeight())
File
"//Library/Frameworks/Python.framework/Versions/2.3/lib
/python2.3/site-
packages/wxPython/gdi.py", line 62, in GetWidth
val = apply(gdic.wxBitmap_GetWidth,(self,) + _args,
_kwargs)
wxPython.wxc.wxPyAssertionError: C++
assertion "wxAssertFailure" failed
in ../src/mac/bitmap.cpp(909): invalid bitmap
Issue migrated from trac ticket # 760
component: old wxOSX/Carbon port | priority: normal
2003-01-31 07:22:54: kasplat created the issue
Mac OS X appears to transfer bitmap images around in the clipboard as TIFFs, at least that is what Grab and Preview seem to deal with. wxPython isn't able to deal with bitmap data in the clipboard.
For example, copying a selection using Grab and then running the attached clipbmp.py script results in the following errors (wxPython 2.4.0.2 with Python 2.3a1-2 build.
ka
22:11:09: Debug: C++ assertion "wxAssertFailure" failed in
../src/mac/bitmap.cpp(909): invalid bitmap Got bitmap of size: Traceback (most recent call last): File "clipbmp.py", line 29, in OnDoClip print "Got bitmap of size: ", (bmp.GetWidth(), bmp.GetHeight()) File
"//Library/Frameworks/Python.framework/Versions/2.3/lib /python2.3/site- packages/wxPython/gdi.py", line 62, in GetWidth val = apply(gdic.wxBitmap_GetWidth,(self,) + _args, _kwargs) wxPython.wxc.wxPyAssertionError: C++ assertion "wxAssertFailure" failed
in ../src/mac/bitmap.cpp(909): invalid bitmap