LutherRevisited wrote:
> Yes I have actually, I still can't figure out how to have my
application detect
> if a control has focus. If I could, I could just use the keydown
event with an
> if statement to push my button when it has focus and enter is
pressed.
I am gonna try and explain how to fish
Disregard all my posts on this thread, I just downloaded Boa-constructor which
has WxDialogs making my life so much simpler. Thanks for all the help though.
I was using SPE which uses WxGlade to make gui's, which isn't so bad if you're
familiar with the way Java works on GUIs that is, but Boa-Con
Yes I have actually, I still can't figure out how to have my application detect
if a control has focus. If I could, I could just use the keydown event with an
if statement to push my button when it has focus and enter is pressed.
--
http://mail.python.org/mailman/listinfo/python-list
Have you explored the wxPython Demo application? It is a pretty helpful
learning tool.
--
http://mail.python.org/mailman/listinfo/python-list
That's kindof where I want to go, how can I detect whether or not my button has
focus. Basically I only want to press it with enter if it has focus.
--
http://mail.python.org/mailman/listinfo/python-list
ok this is slightly confusing , so I am just gonna throw out some ides.
You could define an accelerator table and just bind wxACCEL_NORMAL,
and WXK_RETURN to an id number.
then set an event handler to operate your button(more on that later).
Or you can set an event to just look for a certain key