Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I set a default value of a comboboxtext in Glade? If I run my program with quickly the combobox appears empty until the user choose something from the list. I would like to display the first list entry when the program starts.

Thanks Stefanie

share|improve this question
up vote 2 down vote accepted

Have a look at the following screenshot. You can set the active item in the General tab in Glade.

If this doesn't work, you can use Gtk.ComboBoxText.set_active(int) in your code.

share|improve this answer
Thank you, I was blind... – snowflake Jul 3 '12 at 20:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.