DataViewCtrl: is there a way to hide columns for children, similar to HasContainerColumns in DataViewModel for parents?
Andrew Clark <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
Hi ALL! I'm playing with DataViewCtrl with custom DataViewModel <https://github.com/svn2github/wxPython/blob/master/trunk/demo/DVC_DataViewModel.py> example: a tree structure with several columns including checkboxes. There is HasContainerColumns <https://wxpython.org/Phoenix/docs/html/wx.dataview.DataViewModel.html#wx.dataview.DataViewModel.HasContainerColumns>method for DataViewModel which affects displaying the columns for parent nodes: all columns except the first one could be shown or hidden. Is there a similar method to control displaying the columns for children? I'm trying to get a tree where checkboxes are displayed on the parent level only, and the children's level has no checkboxes at all. The farthest I could get by now is to define the children's level as sub-parent and disable displaying values in the columns. But no the items have the expand/collapse icon instead :( [image: screen_000122.png] [image: screen_000123.png] -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/57f76b6b-7eaa-4541-994a-99543825ae8a%40googlegroups.com.
screen_000122.png
(image/png, 7.1 KB) - not displayed
screen_000123.png
(image/png, 4.7 KB) - not displayed