I've read the "Recent Changes" page on the wxPython web site and see
nothing about the wx.TreeCtrl() changing between 2.6.3.2 and 2.8.0.1.
But, in my application, the tree displays without lines and the topmost
label is faint and barely visible until clicked on. What might account for
these changes using GTK+2 on linux?
The new API doc for wx.TreeCtrl() does not contain any style macros, and I
don't see any on its immediate parent, either.
Rich
···
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
I've read the "Recent Changes" page on the wxPython web site and see
nothing about the wx.TreeCtrl() changing between 2.6.3.2 and 2.8.0.1.
But, in my application, the tree displays without lines and the topmost
label is faint and barely visible until clicked on. What might account for
these changes using GTK+2 on linux?
The new API doc for wx.TreeCtrl() does not contain any style macros, and I
don't see any on its immediate parent, either.
The lines are turned off by default to be more like the native GTK tree ctrl. If you really want them you can turn them on by turning off the wx.TR_NO_LINES style, like this:
I'll keep this in mind. Guess I've no idea what the native GTK look is.
Many thanks,
Rich
···
On Sat, 20 Jan 2007, Robin Dunn wrote:
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
I just upgraded from wxPython-Mac 2.6.3.3 to 2.8.1.1, and similarly, I don't notice lines being drawn. I tried executing the line of code above and it has no effect. Is this "by design" or a bug?
The lines are turned off by default to be more like the native GTK tree ctrl. If you really want them you can turn them on by turning off the wx.TR_NO_LINES style, like this:
The lines are turned off by default to be more like the native GTK tree ctrl. If you really want them you can turn them on by turning off the wx.TR_NO_LINES style, like this:
I just upgraded from wxPython-Mac 2.6.3.3 to 2.8.1.1, and similarly, I don't notice lines being drawn. I tried executing the line of code above and it has no effect.
You'll need a Refresh afterwards.
Is this "by design" or a bug?
Apparently by design. The generic wxTreeCtrl has this code in it:
#ifdef __WXGTK20__
style |= wxTR_NO_LINES; #endif
And the CVS log for the change says: "Remove tree control lines unconditionally under GTK2 (similar to what wxMac does) as it simply looks wrong (as we are using GTK+ tree buttons)."
···
On Jan 20, 2007, at 6:21 PM, Robin Dunn wrote:
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
How interesting, Robin. The lines let the eye connect items on the same
level and see the structure in a quick glance. I suppose we'll get used to
it, but it does seem counter intuitive.
'Nuff written,
Rich
···
On Mon, 22 Jan 2007, Robin Dunn wrote:
Apparently by design. The generic wxTreeCtrl has this code in it:
#ifdef __WXGTK20__
style |= wxTR_NO_LINES; #endif
And the CVS log for the change says: "Remove tree control lines
unconditionally under GTK2 (similar to what wxMac does) as it simply looks
wrong (as we are using GTK+ tree buttons)."
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
I just upgraded from wxPython-Mac 2.6.3.3 to 2.8.1.1, and similarly, I don't notice lines being drawn. I tried executing the line of code above and it has no effect.
You'll need a Refresh afterwards.
Doesn't help. <sigh>
And the CVS log for the change says: "Remove tree control lines unconditionally under GTK2 (similar to what wxMac does) as it simply looks wrong (as we are using GTK+ tree buttons)."
As a Mac user, I am used to no lines being drawn, but as a framework developer, I like to give people the choice.
I noticed this when running the DaboDemo program after upgrading to 2.8. The dTreeView control has an interactive demo where you can show/hide the buttons, root node and lines. Prior to 2.8, they all worked; now the lines never show up.