problem with wx.ComboBox events

Interesting. I pulled down wxPython
2.6.3.3 and tried that, and the problem seems to be gone. I’m going to do
some more digging. Thanks for your help!

-David

···

From: Seelig,David
[mailto:David_Seelig@securecomputing.com]
Sent: Wednesday, August 16, 2006
3:42 PM
To: wxPython-users@lists.wxwidgets.org
Subject: RE: [wxPython-users]
problem with wx.ComboBox events

Yep. I’m definitely using my code.
I’m seeing the events loud and clear for the cases when I just use the
mouse, but seeing none of those three lines that ought to print when I use the
keyboard and then hit enter…

-David


From: Saketh Bhamidipati
[mailto:saketh.bhamidipati@gmail.com]
Sent: Wednesday, August 16, 2006
3:37 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:


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

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.