AFXItemProvider

This class provides a way to supply items to widgets, such as AFXComboBox and AFXList.


AFXItemProvider(initialItems='')

Constructor.

ArgumentTypeDefaultDescription
initialItemsString''Sequence string with initial items.


append(str)

Appends a string to the item string.

ArgumentTypeDefaultDescription
strString  


append(ch)

Appends a character to the item string.

ArgumentTypeDefaultDescription
chString  


empty()

Returns True if the item string is empty.


getItems()

Returns a sequence string that contains all of the provider's items.


getVersion()

Returns the version of provider's items.


reset(sz=0)

Clears the contents of the item string and reallocates space.

ArgumentTypeDefaultDescription
szInt0 


setItems(newItems)

Sets all of the providers's items, clearing any previous items first.

ArgumentTypeDefaultDescription
newItemsString Sequence string with new items.