Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

1 Answer 1

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.