On Wed, 21 Mar 2007 16:05:36 +0800
Kurt Symanzik <[EMAIL PROTECTED]> wrote:

> I have a ComboBox that has no active rows when the application starts 
> which is accomplished with the set_active(-1) call in the init()
> method. I have found that the user may select any row easy enough,
> but it is baffling me how to get the ComboBox to allow the *end user*
> to select no active row again.  In other words, after making a
> selection, I want to enable the user to choose "nothing" again
> leaving a blank ComboBox as when the application started.  I know
> that I could add a button that the user could press that I could use
> to set_active(-1) on the ComboBox, but that seems like a hack to me.

Why don't you in stead have one row in the combobox which is the empty
row? Say Row 1, so the user can choose this. Simple and easy to do.
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to