On 1/20/11 4:32 AM, Ed Leafe wrote: > On Jan 19, 2011, at 8:58 PM, Paul McNett wrote: > >>> Hmmm... I made this change based on Jacek's observation that drawing to >>> the same PaintDC cleared up his issues. FWIW, both the old and new methods >>> look identical on OS X, and neither shows any issues. >> >> r6332 and r6331 seem identical on Linux, but neither display the headers. >> Sorry I >> hadn't tested that until now. > > > The latest change seems to work on Linux: > > http://screencast.com/t/1w29LODH
I still don't see my headers the two apps of mine I tested. This is Ubuntu 10.04, Python 2.6.5, and wxPython 2.8.11.0. The test seems to run fine, although you must click "auto adjust header height" before "vertical headers", or the header won't adjust. > ...and now works on Windows, too: > > http://screencast.com/t/OQLT3SDJqh I see the headers, but they still don't look good, the yellow arrow overdraws itself making it look like a yellow blob, and I still get the traceback: Traceback (most recent call last): File "c:\dabo\dabo\ui\uiwx\dGrid.py", line 4061, in __onWxHeaderPaint self._paintHeader(updateBox) File "c:\dabo\dabo\ui\uiwx\dGrid.py", line 2646, in _paintHeader dc=dc) File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 1589, in drawText obj = self._addToDrawnObjects(obj, persist) File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 1617, in _addToDrawnObjects self._redraw() File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 1642, in _redraw obj.draw(dc) File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 3159, in draw w, h = dabo.ui.fontMetricFromDrawObject(self) File "c:\dabo\dabo\ui\uiwx\__init__.py", line 1520, in fontMetricFromDrawObjec t bold=obj.FontBold, italic=obj.FontItalic) File "c:\dabo\dabo\ui\uiwx\__init__.py", line 1560, in fontMetric dc = wx.ClientDC(wind) File "c:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 4794, in __init__ _gdi_.ClientDC_swiginit(self,_gdi_.new_ClientDC(*args, **kwargs)) wx._core.PyAssertionError: C++ assertion "canvas" failed at ..\..\src\msw\dcclie nt.cpp(140) in wxClientDC::wxClientDC(): invalid window in wxClientDC This is Windows Vista, Python 2.6.5, wxPython 2.8.11.0, running my 2 (datanav-based) applications. The test is identical to Linux. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
