views:

69

answers:

1

I want to make a checklist with a accordion style in a wxPython widget. I know about checklistbox, but I couldn't find anything in the official docs concerning it. Has anyone done this?

+1  A: 

You can use a wx.combo.ComboCtrl which allows any custom popup, and combine this with a wx.CheckListBox.

Here's what is could look like, folded:

alt text

and unfolded:

alt text

To get this, I started with the ComboCtrl example in the demo, and in the ListCtrlComboPopup list class I replaced ListCtrl with CheckListBox everywhere (and made a few other small changes to make the commands consistent with a CheckListBox control rather than a ListCtrl).

tom10