problem with wx.ComboBox events

I’m on MSW.

When I hit Enter, two lines are printed by EvtComboBox, and one is printed by EvtText. This means that events are being generated. I’m using exactly the same code that you provided.

Are you sure that you’ve selected the “Modified” radio button in the demo? Did you Save Changes? I didn’t the first time, and got very confused.

···

On 8/16/06, Seelig,David David_Seelig@securecomputing.com wrote:


From: Saketh Bhamidipati [mailto:saketh.bhamidipati@gmail.com]
Sent: Wednesday, August 16, 2006 2:48 PM
To:
wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] problem with wx.ComboBox events

On 8/16/06, Seelig,David <David_Seelig@securecomputing.com > > wrote:

Have you tried uncommenting the #|wxTE_PROCESS_ENTER flag (and changing it
to wx.TE_PROCESS_ENTER)? If not, then I have no idea what the problem is.

I just tried it, but it doesn’t change the behavior on my system. (wxPython

2.6.2.1 on MSW)


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org

For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
The reason I have no idea about the problem is because I’m not entirely sure

what the problem is.
If, however, I expand the
combobox with the mouse but then use the keyboard to select different
entries (either by hitting the arrow keys or by typing characters that match
the strings) and then hit the enter key, the combobox shows the value I’ve

selected, but no event is triggered.

Hitting enter after selecting using the arrow keys calls EvtText for me when
I run your code as a demo. Can you describe the problem - are no events
being triggered at all?

To clarify (although I think we’re on the same page in terms of setting up
the test), I’m expanding the combobox with the mouse, then not using the
mouse at all, but changing the selection via the keyboard. When I hit enter

(at this point a different item is selected) the expanded list disappears,
bringing me back to the ‘collapsed’ combobox. The new item is selected, but
no events were triggered for me. At least not the one I’m expecting:

wx.EVT_COMBOBOX. If one of these events had occurred, I would expect to see
the print statements I’ve put in the example code. Odd that we’re getting
different results. Any chance you’re using a different platform from me?

-David


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org

For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org