[pygtk] ComboBox Behavior - End User Perspective

Kurt Symanzik kurt at kbsymanzik.org
Wed Mar 21 17:05:36 WST 2007


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.

What am I missing to enable this?  Or, is this just the behavior of 
ComboBox?

For what it is worth, I am using GTK 2.10.6-1 on Windows XP.

Thanks,

Kurt

-- 
Kurt Symanzik
kurt at kbsymanzik.org
Skype id: ksymanzik
http://kbsymanzik.org


More information about the pygtk mailing list