kiwi.interfaces.IEasyCombo(Interface)
class documentationkiwi.interfaces
(View In Hierarchy)
Method | prefill | Fills the Combo with listitems corresponding to the itemdata provided. |
Method | append_item | Adds a single item to the Combo. @param label: a string with the text to be added @param data: the data to be associated with that item |
Method | clear | Removes all items from the widget |
Method | select | Select an item giving data which could be an object or text. @param data: data or text to select |
Method | select_item_by_position | Selects an item in the combo from a integer where 0 represents the first item. @param position: an integer |
Method | select_item_by_label | Select item given text. @param text: text to select |
Method | select_item_by_data | Select item given data. @param data: object to select |
Method | get_selected_label | Gets the label of the currently selected item. @returns: the selected label. |
Method | get_selected_data | Gets the data of the the currently selected item. @returns: the selected data. |
Method | get_selected | Get the text or item of the currently selected item or None if nothing is selected. @returns: selected text or item or None. |
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: - itemdata is a list of strings or tuples, each item corresponding to a listitem. The simple list format is as follows:: >>> [ 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), ... ] - Sort is a boolean that specifies if the list is to be sorted by label or not. By default it is not sorted
Adds a single item to the Combo. @param label: a string with the text to be added @param data: the data to be associated with that item
Select an item giving data which could be an object or text. @param data: data or text to select
Selects an item in the combo from a integer where 0 represents the first item. @param position: an integer
Gets the label of the currently selected item. @returns: the selected label.
Gets the data of the the currently selected item. @returns: the selected data.