veto selection event with DataViewTreeCtrl
Christian K <[email protected]> Sat, 16 Nov 2019 12:13:49 -0800 (PST)
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_721_1997997373.1573935229767 Content-Type: multipart/alternative; boundary="----=_Part_722_763026112.1573935229768" ------=_Part_722_763026112.1573935229768 Content-Type: text/plain; charset="UTF-8" Hi, it looks like it is not possible to veto the selection of a DataViewTreeCtrl with dtyle DV_MULTIPLE. I would like to be able to limit the selection to the childs of a node, which themselves may have childs, so that is not possible to select elements of distinct levels of the tree. The wx.TreeCtrl emits two events, one when the selection is about to change and the other when the selection has changed. The first one can be veoted in order to achieve what I need. Is that possible with a DataViewCtrl somehow as well? Thanks, Christian -- You received this message because you are subscribed to the Google Groups "wxPython-dev" 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-dev/a4358aa4-94cd-4b1d-8fe6-2d04be4439bc%40googlegroups.com. ------=_Part_722_763026112.1573935229768 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi,</div><div><br></div><div>it looks like it is not = possible to veto the selection of a DataViewTreeCtrl with dtyle DV_MULTIPLE= . I would like to be able to limit the selection to the childs of a node, w= hich themselves may have childs, so that is not possible to select elements= of distinct levels of the tree. The wx.TreeCtrl emits two events, one when= the selection is about to change and the other when the selection has chan= ged. The first one can be veoted in order to achieve what I need. Is that p= ossible with a DataViewCtrl somehow as well?</div><div><br></div><div>Thank= s, Christian=C2=A0 <br></div></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;wxPython-dev" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">wxPyth= [email protected]</a>.<br /> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/wxPython-dev/a4358aa4-94cd-4b1d-8fe6-2d04be4439bc%40googlegroups= .com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/ms= gid/wxPython-dev/a4358aa4-94cd-4b1d-8fe6-2d04be4439bc%40googlegroups.com</a= >.<br /> ------=_Part_722_763026112.1573935229768-- ------=_Part_721_1997997373.1573935229767--