Hell there. I have a small ultimatelistctrl. It looks like this.
The user should be able to double click any cell in the list end edite it. I searched the whole web and didnt find a solution to this. I tried two ways of implementing that.
class TestList(ULC.UltimateListCtrl,listmix.TextEditMixin): def __init__ (self, *args, **kwargs): ULC.UltimateListCtrl.__init__(self,*args,**kwargs) listmix.TextEditMixin.__init__(self)
I used the listmix.TextEditMixin which works for listctrl. But i get an error when i try to use it.
File “C:\ProgramData\Anaconda3\lib\site-packages\wx\lib\mixins\listctrl.py”, line 553, in OnLeftDown
col = bisect(self.col_locs, x+self.GetScrollPos(wx.HORIZONTAL)) - 1
TypeError: GetScrollPos() takes 1 positional argument but 2 were given
Second: I tried bulding my own functionality. I wantet to just overlay a textctrl on top of the cell. But i couldnt even figure out how to get the column back where the user clicked. The row was no problem.
So why dont i just use listctrl instead of ultimatelistctrl? Because i need to add more widgets to the list later one. At least one combobox and one checkbox more. So if you maybe know another widget that would also do what i want i would also gladly switch.
Thanks for your help.