0

Hi, I am working with a wx.Python ListCtrl attempting to edit data in the second column. Is there a way of detecting which column,row has been clicked?

thanks -- andrew

2
Contributors
3
Replies
5
Views
9 Years
Discussion Span
Last Post by asrekdal
0

I have found in the demo package... an editable list Ctrl with by use of what is called a mixin. I am unfamiliar with mixins and am unable to find documentation. Is there a way to capture the event of a row,col (cell)?

thanks -- andrew

0

To my inexpert eye, it looks like you have to assign each item a different id number. Then, wx.EVT_LIST_ITEM_SELECTED will tell you which item is selected.

That's a non-expert opinion, BTW.

Jeff

0

Thanks for the reply Jeff... I did some digging and found after using the method you provided,
in an earlier thread, such as...

print [x for x in dir(event)]

I found where event.Column and event.GetIndex() is passed to the user defined event handler function so cell cords can be easily achieved.

So seems to be solved.

Thanks -- Andrew

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.