Put a button in ListCtrl - wxPython

Is it possible to put a button inside a ListCtrl element using wxPython? Right now, I have a ListCtrl that has data with a name and file size, and I want the user to be able to click a button to download the file. If this is not possible, is there a way to display the image in ListCtrl and then make it clickable so that I can attach an action to it?

+3
source share
1 answer

No. You will need to use UltimateListControl ", a generic list implementation that can append any kind of widget to strings. Check out its demo files for examples. Probably your best bet is to capture the trunk code for patches and other changes - I'm not sure how often Andrea updates main mail line on your site

I haven't used the control yet, but its demo is very impressive.

+4
source

Source: https://habr.com/ru/post/1762165/


All Articles