Re: WxButton

2004-12-26 Thread M.E.Farmer
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

Re: WxButton

2004-12-26 Thread LutherRevisited
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

Re: WxButton

2004-12-26 Thread LutherRevisited
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

Re: WxButton

2004-12-26 Thread Kartic
Have you explored the wxPython Demo application? It is a pretty helpful learning tool. -- http://mail.python.org/mailman/listinfo/python-list

Re: WxButton

2004-12-26 Thread LutherRevisited
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

Re: WxButton

2004-12-26 Thread M.E.Farmer
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