On Tue, Jan 07, 2003 at 05:04:42AM -0500, Rene Olsthoorn wrote:
[About the GtkCombo]
> (b.t.w. it will also trigger the event twice (on WindowsNT)
> when you only dropdown.(bug?) And it will trigger it twice
> when you select a value from the list... (only one would be nicer)).
This is tangential to your question, but:
Is it also triggering the deselect event? I used a GtkCombo
briefly on pygtk0.6.8 / Python 2.0 / Linux, and I found that what
it was actually doing was "deselect - select - select" on the selected
item when you picked from the list. (The first two events may have
been swapped, I'm not sure.)
I arranged for the callback code to be called once by having the
callback keep a counter, and only do the expensive code on "real"
selections, which it could detect by the selection-count transitioning
from zero to one.
Eventually, I replaced the widget entirely with a GtkOptionMenu.
-- A.
--
Dr. Andrew C. E. Reid, Guest Researcher
Center for Theoretical and Computational Materials Science
National Institute of Standards and Technology, Mail Stop 8500
Gaithersburg MD 20899 USA
[EMAIL PROTECTED]
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/