Hi Andrea,
Is CustomTreeCtrl.UnselectAll() actually working in single selection
mode? The docs (for wx.TreeCtrl) say that UnselectAll should also work
in single selection mode but I have the impression that the selected
item is only visually deselected by the CustomTreeCtrl. See attached
example.
Cheers, Frank
unselectall.py (435 Bytes)
Hi Frank,
Hi Andrea,
Is CustomTreeCtrl.UnselectAll() actually working in single selection
mode? The docs (for wx.TreeCtrl) say that UnselectAll should also work
in single selection mode but I have the impression that the selected
item is only visually deselected by the CustomTreeCtrl. See attached
example.
Yes, it's a bug. As a simple workaround, I would call:
self.Unselect()
At the end of the UnselectAll() method. This removes the selection
(i.e., self.GetSelection() returns None). Do you think it's a viable
solution?
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
···
On 2/7/07, Frank Niessink wrote:
Yes, that works fine, thanks.
Cheers, Frank
···
2007/2/7, Andrea Gavana <andrea.gavana@gmail.com>:
Hi Frank,
On 2/7/07, Frank Niessink wrote:
> Hi Andrea,
>
> Is CustomTreeCtrl.UnselectAll() actually working in single selection
> mode? The docs (for wx.TreeCtrl) say that UnselectAll should also work
> in single selection mode but I have the impression that the selected
> item is only visually deselected by the CustomTreeCtrl. See attached
> example.
Yes, it's a bug. As a simple workaround, I would call:
self.Unselect()
At the end of the UnselectAll() method. This removes the selection
(i.e., self.GetSelection() returns None). Do you think it's a viable
solution?