Hello,
TreeBook is a great new widget. But i'm surprised to notice that you can't determine the size of the sash.
Like you can with wx.SplitterWindow 's SetSashPosition method. Or could you work your way around this ?
Hello,
TreeBook is a great new widget. But i'm surprised to notice that you can't determine the size of the sash.
Like you can with wx.SplitterWindow 's SetSashPosition method. Or could you work your way around this ?
It tries to auto determine the best width for the tree, but as you've probably seen it doesn't always work well. If you want to allow it to be user resizable then you'll need to go ahead and use a splitter window and manage the swapping of the "pages" on the other side of the splitter yourself. (It's simpler than it sounds.)
On 1/7/10 3:10 PM, Jonas Geiregat wrote:
Hello,
TreeBook is a great new widget. But i'm surprised to notice that you can't determine the size of the sash.
Like you can with wx.SplitterWindow 's SetSashPosition method. Or could you work your way around this ?
--
Robin Dunn
Software Craftsman
But the TreeBook widget contains a treeview and a 'content' view. How could I split those items and just get the tree view ?
Op 8-jan-2010, om 07:38 heeft Robin Dunn het volgende geschreven:
If you want to allow it to be user resizable then you'll need to go ahead and use a splitter window and manage the swapping of the "pages" on the other side of the splitter yourself. (It's simpler than it sounds.)
Hi,
On Jan 8, 6:11 pm, Jonas Geiregat <jo...@geiregat.org> wrote:
Op 8-jan-2010, om 07:38 heeft Robin Dunn het volgende geschreven:
> If you want to allow it to be user resizable then you'll need to go ahead and use a splitter window and manage the swapping of the "pages" on the other side of the splitter yourself. (It's simpler than it sounds.)
But the TreeBook widget contains a treeview and a 'content' view. How could I split those items and just get the tree view ?
Just use one of the tree widgets: wx.TreeCtrl or CustomTreeCtrl.
Or maybe I misunderstand you...
-------------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/
Use a wx.TreeCtrl as one of the children of the SplitterWindow. When you get tree selection events change which panel is shown as the other child of the splitter and hide the old one.
On 1/8/10 4:11 PM, Jonas Geiregat wrote:
Op 8-jan-2010, om 07:38 heeft Robin Dunn het volgende geschreven:
If you want to allow it to be user resizable then you'll need to go ahead and use a splitter window and manage the swapping of the "pages" on the other side of the splitter yourself. (It's simpler than it sounds.)
But the TreeBook widget contains a treeview and a 'content' view. How could I split those items and just get the tree view ?
--
Robin Dunn
Software Craftsman