[wxPython] Tree control - the wxTR_HAS_BUTTONS style doesn't do what I'd exp ect...

The default style is
wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT, which turns
on the +/- buttons and also turns on the line
on the root item which allows it to also have a
+/- button. When you just use wxTR_HAS_BUTTONS
there is no line on the root item, so it can't
have a button. If you had put another level in
your tree you would have seen the buttons on the
nested parents...

Doh. I did have an extra level in one of my tests, but at that stage I was
having trouble getting the images to work - so I missed the distinction.

... But in my defence, the wxTreeCtrl documentation says that the default
style is just wxTR_HAS_BUTTONS - *that* is probably a documentation bug
(unless it differs between wxWindows and wxPython...)

Sorry for the waste of bandwidth,
Paul.

ยทยทยท

From: Robin Dunn [mailto:robin@alldunn.com]