wx.TreeCtrl and wx.TR_HAS_BUTTONS style bug?

Frank Niessink frank at niessink.com
Tue Oct 3 12:56:30 PDT 2006


Hi all,

I think I discovered a bug in the trusted wx.TreeCtrl widget. When =

creating a TreeCtrl with style=3Dwx.TR_HIDE_ROOT | wx.TR_HAS_BUTTONS no =

buttons will be drawn at root items.

Adding wx.TR_LINES_AT_ROOT, i.e. style=3Dwx.TR_HIDE_ROOT | =

wx.TR_HAS_BUTTONS | wx.TR_LINES_AT_ROOT, fixes this, but also adds lines =

between root items, which may not be what the user wants.

Here's a short demo that shows the issue. I'm on Windows XP, Python =

2.4.1; tested with both wxPython 2.6.3.2 and 2.7.0.1-pre.20060902.

Cheers, Frank

-------------- next part --------------
A non-text attachment was scrubbed...
Name: treectrl_bug.py
Type: text/x-python
Size: 1159 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-dev/attachments/2006100=
3/945fb159/treectrl_bug.py


More information about the wxpython-dev mailing list