Hi all.
I recently updated my dev box to wx 2.8.6.1, and flatnotebook is still broken on the mac, although it appears to not be as severe. In 2.8.6.0, it threw the error and the notebook failed to render or display; now it’s rendering, it’s just still erroring out. That’s better at least
The output is:
Mon Nov 19 21:18:20 Nicholas.local Python[5476] : CGBitmapContextCreate: invalid data bytes/row: should be at least 4 for 8 integer bits/component, 3 components, kCGImageAlphaNoneSkipFirst.
Mon Nov 19 21:18:20 Nicholas.local Python[5476] : CGContextTranslateCTM: invalid context
Mon Nov 19 21:18:20 Nicholas.local Python[5476] : CGContextScaleCTM: invalid context
Mon Nov 19 21:18:20 Nicholas.local Python[5476] : CGBitmapContextCreate: invalid data bytes/row: should be at least 4 for 8 integer bits/component, 3 components, kCGImageAlphaPremultipliedFirst.
Mon Nov 19 21:18:20 Nicholas.local Python[5476] : CGContextTranslateCTM: invalid context
Mon Nov 19 21:18:20 Nicholas.local Python[5476] : CGContextScaleCTM: invalid context
Traceback (most recent call last):
File “/Library/Python/2.5/site-packages/wx-2.8-mac-unicode/wx/lib/flatnotebook.py”, line 3885, in OnPaint
renderer.DrawTabs(self, dc)
File “/Library/Python/2.5/site-packages/wx-
2.8-mac-unicode/wx/lib/flatnotebook.py”, line 1776, in DrawTabs
mem_dc.Blit(0, 0, rect.width, rect.height, dc, rect.x, rect.y)
File “/Library/Python/2.5/site-packages/wx-2.8-mac-unicode
/wx/_gdi.py”, line 3381, in Blit
return gdi.DC_Blit(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion “wxAssertFailure” failed at /BUILD/wxPython-src-2.8.6.1/src/common/dcgraph.cpp(821) in DoBlit(): Cannot Blit. Unable to get contents of DC as bitmap.
I dug around in DrawTabs some more, but couldn’t at all figure out what is wrong-- drawing is not my thing Any ideas, or suggestions on where I can look? This is on leopard w/ Python 2.5, but the same behavior was previously seen on Tiger w/ Python 2.4.
–Stephen