Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Place a Button in ListCtrl - wxPython

Is is possible to place a button inside of a ListCtrl item with wxPython? Right now I have a ListCtrl that has data with a file name and size, and I want the user to be able to click a button, to download the file. If this isn't possible, is there a way to display an image in the ListCtrl, and then make it clickable so that I can bind an action to it?

like image 690
FlowofSoul Avatar asked Nov 24 '25 16:11

FlowofSoul


1 Answers

No. You will have to use "UltimateListControl", a generic list implementation that can attach any kind of widget to rows. Check its demo files for examples. You're probably best off grabbing the trunk code for bugfixes and other changes - I'm not sure how often Andrea updates the main zip on his site

I've yet to use the control, but its demo is very impressive.

like image 89
Steven Sproat Avatar answered Nov 27 '25 04:11

Steven Sproat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!