Mac OS wxpython issue DoBlit():Blitting ...

Hello,

I have a Mac OS issue (on PPC). A soft is running ok on WIn32 but on PPC we get this error: “DoBlit(): Blitting is only supported with wxCOPY logical operation.”.

Full log is below.

Any idea ?

Thanx,

Robert

Traceback (most recent call last):
File “./qme-dev-workbench_alpha0924.py”, line 1721, in ?
frame = QME_MainWindow(None,-1,“QME-DEV Workbench”)
File “./qme-dev-workbench_alpha0924.py”, line 1284, in init
self.datapage_list.append(DataPage(self.nbdp, -1,i)) #call my datapage class
File “./qme-dev-workbench_alpha0924.py”, line 233, in init
self.myequapage = equapage_dp(self.nb,-1)
File
“./qme-dev-workbench_alpha0924.py”, line 513, in init
self.eqmdl = editor.Editor(self, -1, style=wx.SUNKEN_BORDER)
File “//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.8-mac-ansi/wx/lib/editor/editor.py”, line 102, in init
self.SetText([""])
File “//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.8-mac-ansi/wx/lib/editor/editor.py”, line 359, in SetText
self.UpdateView(None)
File “//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.8-mac-ansi/wx/lib/editor/editor.py”, line 186, in UpdateView
self.DrawSimpleCursor(0,0, dc, True)
File “//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.8-mac-ansi/wx/lib/editor/editor.py”, line 295, in DrawSimpleCursor

 dc.Blit(x,y, szx,szy, dc, x,y, wx.SRC_INVERT)

File “//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.8-mac-ansi/wx/_gdi.py”, line 3373, in Blit
return gdi.DC_Blit(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion “wxAssertFailure” failed at /BUILD/wxPython-src-2.8.1.1/src/common/dcgraph.cpp(725) in DoBlit(): Blitting is only supported with wxCOPY logical operation.

···

Découvrez une nouvelle façon d’obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.

Robert VERGNES wrote:

Hello,

I have a Mac OS issue (on PPC). A soft is running ok on WIn32 but on PPC we get this error: "DoBlit(): Blitting is only supported with wxCOPY logical operation.".

Full log is below.

Any idea ?

Just as is stated in the assertion exception, only the default wx.COPY logical operator is currently supported on wx.DC's on wxMac. This is because of the switch to the new Mac CoreGraphics API, and because CoreGraphics doesn't give read access to the drawable's pixel buffer so wxMac can't fetch the existing data to perform the logical op with the new pixels to be drawn.

···

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