from gi.repository import Gtk # Create a list of options options = [("Option 1", "value1"), ("Option 2", "value2"), ("Option 3", "value3")] # Create the combo box combobox = Gtk.ComboBox() # Create a model for the combo box model = Gtk.ListStore(str, str) for option in options: model.append(option) # Set the model for the combo box combobox.set_model(model) # Create a cell renderer for the combo box cell = Gtk.CellRendererText() # Add the cell renderer to the combo box combobox.pack_start(cell, True) # Set the attribute to be displayed in the combo box combobox.add_attribute(cell, "text", 0) # Get the selected value from the combo box selected_value = combobox.get_model()[combobox.get_active()][1]In this example, a list of options is created and added to the model for the combo box. A cell renderer is created to display the attribute (text) of the option in the combo box. The selected value from the combo box is obtained by getting the model and active option. Package library: Gtk-3.0.