Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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.

http://i.imgur.com/9FgfX.png

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
add comment

Your Answer

 
discard

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.