Creates a new gtk.combo_box_text.ComboBoxText.
Appends text to the list of strings stored in combo_box.
Appends text to the list of strings stored in combo_box.
Returns the currently active string in combo_box.
Inserts text at position in the list of strings stored in combo_box.
Inserts text at position in the list of strings stored in combo_box.
Prepends text to the list of strings stored in combo_box.
Prepends text to the list of strings stored in combo_box.
Removes the string at position from combo_box.
Removes all the text entries from the combo box.
Creates a new gtk.combo_box_text.ComboBoxText with an entry.
Creates a new empty gtk.combo_box.ComboBox with an entry.
Creates a new gtk.combo_box.ComboBox with a model.
Creates a new empty gtk.combo_box.ComboBox with an entry and a model.
Returns the index of the currently active item.
Returns the ID of the active row of combo_box.
Sets iter to point to the currently active item.
Returns whether the combo box sets the dropdown button sensitive or not when there are no items in the model.
Gets the child widget of combo_box.
Returns the column which combo_box is using to get the strings from to display in the internal entry.
Returns whether the combo box has an entry.
Returns the column which combo_box is using to get string IDs for values from.
Returns the gtk.tree_model.TreeModel of combo_box.
Gets whether the popup uses a fixed width.
Hides the menu or dropdown list of combo_box.
Pops up the menu or dropdown list of combo_box.
Pops up the menu of combo_box.
Sets the active item of combo_box to be the item at index.
Changes the active row of combo_box to the one that has an ID equal to active_id.
Sets the current active item to be the one referenced by iter.
Sets whether the dropdown button of the combo box should update its sensitivity depending on the model contents.
Sets the child widget of combo_box.
Sets the model column which combo_box should use to get strings from to be text_column.
Sets the model column which combo_box should use to get string IDs for values from.
Sets the model used by combo_box to be model.
Specifies whether the popup’s width should be a fixed width.
Sets the row separator function, which is used to determine whether a row should be drawn as a separator.
Connect to Activate signal.
Connect to Changed signal.
Connect to FormatEntryText signal.
Connect to MoveActive signal.
Connect to Popdown signal.
Connect to Popup signal.
Deprecated: Use gtk.drop_down.DropDown with a gtk.string_list.StringList instead
A gtk.combo_box_text.ComboBoxText is a simple variant of gtk.combo_box.ComboBox for text-only use cases.
gtk.combo_box_text.ComboBoxText hides the model-view complexity of gtk.combo_box.ComboBox.
To create a gtk.combo_box_text.ComboBoxText, use gtk.combo_box_text.ComboBoxText.new_ or gtk.combo_box_text.ComboBoxText.newWithEntry.
You can add items to a gtk.combo_box_text.ComboBoxText with gtk.combo_box_text.ComboBoxText.appendText, gtk.combo_box_text.ComboBoxText.insertText or gtk.combo_box_text.ComboBoxText.prependText and remove options with gtk.combo_box_text.ComboBoxText.remove.
If the gtk.combo_box_text.ComboBoxText contains an entry (via the property@Gtk.ComboBox:has-entry property), its contents can be retrieved using gtk.combo_box_text.ComboBoxText.getActiveText.
You should not call gtk.combo_box.ComboBox.setModel or attempt to pack more cells into this combo box via its gtk.cell_layout.CellLayout interface.
GtkComboBoxText as GtkBuildable
The gtk.combo_box_text.ComboBoxText implementation of the gtk.buildable.Buildable interface supports adding items directly using the <items> element and specifying <item> elements for each item. Each <item> element can specify the “id” corresponding to the appended text and also supports the regular translation attributes “translatable”, “context” and “comments”.
Here is a UI definition fragment specifying gtk.combo_box_text.ComboBoxText items:
CSS nodes
gtk.combo_box_text.ComboBoxText has a single CSS node with name combobox. It adds the style class .combo to the main CSS nodes of its entry and button children, and the .linked class to the node of its internal box.