Hi,
I’m trying to intercept wx.EVT_LIST_END_LABEL_EDIT event on an editable list control, in order to re-format/change the value entered by the user.
For example the user might have entered the value in base 10 (decimal) but I always want to display the value in hex.
It seems that for one case (self.type == “reg”) I am unable to prevent the editor’s text from being applied/set to the list control, although calling Veto and manually calling SetItem() with the modified text that I actually want to display.
In the 2nd case (self.type == “field”) it behaves OK, as expected.
So it’s a bit unclear why the behavior is not predictable. Any help is greatly appreciated!!
10x, Gal.
listctrl_veto_not_working.py (4.52 KB)