Help with PopupCtrl

I have made a PopupCheckListBox, and I have a couple of questions about style.

The PopupCheckListBox can be editable (it can add controls necessary to add or delete items in the CheckListBox).

Is the preferred API

items = PopupCheckListBox(self, choices=[‘a’, ‘b’, ‘c’], editable = True)

or should I use the style keyword argument to add my own own styles:

item = PopupCheckListBox(self, choices=[‘a’, ‘b’, ‘c’], style=PCLB_EDITABLE)

Is there a standard form for this sort of thing, or is it coder’s choice?

Josh

I should point out, I suppose, that making the thing editable adds a text control and two buttons to the PopupDialog, and there is an OK button on the dialog all the time. I am adding ALL and NONE buttons to the dialog, but want to make them optional, so that’s where I thought using the style flag would be more flexible or easier or more consistent.

Josh