[pygtk] ComboBox Behavior - End User Perspective
Preben Randhol
randhol+pygtk at pvv.org
Wed Mar 21 17:32:38 WST 2007
On Wed, 21 Mar 2007 16:05:36 +0800
Kurt Symanzik <kurt at kbsymanzik.org> 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.
More information about the pygtk
mailing list