# ComboBox (Python)

Marta Maria Casetti
mmcasetti@gmail.com 2012
A widget used to choose from a list of items

# ComboBox (two columns)

This ComboBox prints to the terminal your selection when you change it.

# Code used to generate this example

# Useful methods for a ComboBox widget

The ComboBox widget is designed around a Model/View/Controller design: the Model stores the data; the View gets change notifications and displays the content of the model; the Controller, finally, changes the state of the model and notifies the view of these changes. For more information and for a list of useful methods for ComboBox see .

In line 45 the `"changed"` signal is connected to the callback function `on_changed()` using `widget.connect(signal, callback function)`. See for a more detailed explanation.

# API References

In this sample we used the following:

GtkComboBox

GtkListStore

GtkCellRendererText

GtkCellRendererPixbuf

Stock Items

pygobject - Python bindings for GObject Introspection