gtk.ComboBoxText — A simple, text-only combo box (new in PyGTK 2.24)
class gtk.ComboBoxText(gtk.ComboBox): |
Functions
def gtk.combo_box_text_new_with_entry()
+--gobject.GObject +-- gtk.Object +-- gtk.Widget +-- gtk.Container +-- gtk.Bin +-- gtk.ComboBox +-- gtk.ComboBoxText
gtk.ComboBoxText
implements
gtk.Buildable
atk.ImplementorIFace
gtk.CellEditable
gtk.CellLayout
gtk.Container Signal Prototypes
This widget is available in GTK+ 2.24 and PyGTK 2.24 and above.
A gtk.ComboBoxText
is a simple variant of gtk.ComboBox
that hides the model-view complexity for simple text-only use cases.
gtk.ComboBox()Returns : | A new gtk.ComboBoxText. |
This constructor is available in PyGTK 2.24 and above.
Creates a new gtk.ComboBoxText,
which is a gtk.ComboBox just displaying strings.
def append_text(text)
| A string. |
This method is available in PyGTK 2.24 and above.
The append_text() method appends the string specified
by text to the list of strings stored in the combo box
gtk.ListStore.
def insert_text(position, text)
| A model index where the text should be inserted. |
| A string. |
This method is available in PyGTK 2.24 and above.
The insert_text() method inserts the string specified
by text in the combo box gtk.ListStore
at the index specified by position.
def prepend_text(text)
| A string. |
This method is available in PyGTK 2.24 and above.
The prepend_text() method prepends the string specified
by text to the list of strings stored in the
gtk.ListStore
associated with the combo_box.
def remove(position)
| Index of the item to remove. |
This method is available in PyGTK 2.24 and above.
The remove_text() method removes the string at
the index specified by position in the associated
gtk.ListStore.
def gtk.combo_box_text_new_with_entry()Returns : | A new gtk.ComboBoxText. |
This function is available in PyGTK 2.24 and above.
The gtk.combo_box_new_text() function creates a new
gtk.ComboBoxText,
which is a gtk.ComboBox
just displaying strings. The combo box created by this function has an entry.