Użytkownik Ed Leafe napisał:
> dabo Commit
> Revision 6322
> Date: 2011-01-17 19:26:42 -0800 (Mon, 17 Jan 2011)
> Author: Ed
> Trac: http://trac.dabodev.com/changeset/6322
>
> Changed:
> U trunk/dabo/ui/uiwx/dGrid.py
>
> Log:
> Added the VerticalHeaders property. When True, the header captions are
> written vertically; i.e., at a 90 degree angle. This can be useful if you
> have narrow columns and need to display a label for the column. Thanks to
> Bronwyn Woods for the idea.
>
> Added the AutoAdjustHeaderHeight property. When True, the HeaderHeight of the
> grid will change to fit the Captions, whether they are written vertically or
> not.
>
> Added the SortIndicatorSize and SortIndicatorColor properties, which allow
> you some control over the appearance of the little sort triangle displayed in
> the header when that column is sorted.
>
>
Hi.
Sorry Ed, but on Windows platform I got "invalid font" exception:
Traceback (most recent call last):
File "C:\python26\lib\site-packages\dabo\ui\uiwx\dGrid.py", line
4044, in __onWxHeaderPaint
self._paintHeader(updateBox)
File "C:\python26\lib\site-packages\dabo\ui\uiwx\dGrid.py", line
2637, in _paintHeader
foreColor=colObj.HeaderForeColor, backColor=colObj.HeaderBackColor)
File "C:\python26\lib\site-packages\dabo\ui\uiwx\dPemMixin.py", line
1586, in drawText
obj = self._addToDrawnObjects(obj, persist)
File "C:\python26\lib\site-packages\dabo\ui\uiwx\dPemMixin.py", line
1613, in _addToDrawnObjects
self._redraw()
File "C:\python26\lib\site-packages\dabo\ui\uiwx\dPemMixin.py", line
1638, in _redraw
obj.draw(dc)
File "C:\python26\lib\site-packages\dabo\ui\uiwx\dPemMixin.py", line
3123, in draw
fnt.GetFaceName()
File "C:\python26\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py",
line 2167, in GetFaceName
return _gdi_.Font_GetFaceName(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "Ok()" failed at
..\..\src\msw\font.cpp
(1073) in wxFont::GetFaceName(): invalid font
--
Regards
Jacek Kałucki
_______________________________________________
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]