Part of kiwi.interfaces View In Hierarchy
Method | prefill | Fills the Combo with listitems corresponding to the itemdata |
Method | append_item | Adds a single item to the Combo. |
Method | clear | Removes all items from the widget |
Method | select | Select an item giving data which could be an object or text. |
Method | select_item_by_position | Selects an item in the combo from a integer where 0 |
Method | select_item_by_label | Select item given text. |
Method | select_item_by_data | Select item given data. |
Method | get_selected_label | Gets the label of the currently selected item. |
Method | get_selected_data | Gets the data of the the currently selected item. |
Method | get_selected | Get the text or item of the currently selected item |
Method | get_model_strings | Undocumented |
Method | get_model_items | Undocumented |
Inherited from Interface:
Class Method | providedBy | Undocumented |
Fills the Combo with listitems corresponding to the itemdata provided.
Parameters:
>>> [ label0, label1, label2 ]
If you require a data item to be specified for each item, use a 2-item tuple for each element. The format is as follows:
>>> [ ( label0, data0 ), (label1, data1), ... ]
Parameters | label | a string with the text to be added |
data | the data to be associated with that item |
Parameters | data | data or text to select |
Parameters | position | an integer |