Re: A question about wxButton Event handler

2008-06-25 Thread grays
On 6月25日, 下午6时30分, grays <[EMAIL PROTECTED]> wrote: > I Create A Button Named ABtn and Blind OnABtnClick() with it . > How can i Call the ABtn Click Event just like use Abtn.click in > Delphi? I get it . event = wx.CommandEvent(wx.wxEVT_COMMAND_BUTTON_CLICKED, ABtn.GetId()) ABtn.GetEventHand

A question about wxButton Event handler

2008-06-25 Thread grays
I Create A Button Named ABtn and Blind OnABtnClick() with it . How can i Call the ABtn Click Event just like use Abtn.click in Delphi? -- http://mail.python.org/mailman/listinfo/python-list

Re: WxButton

2004-12-26 Thread M.E.Farmer
th wxPython ( I see you have tried ) 3) Open an interpreter and try print dir(mybutton) and see what it gives you..very informative! Actually find out what it your object really supports, even better than out of date docs. 4) Search a newsgroup for wx.Button or wxButton 5) Ask a newsgroup Now on

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
button or to toggle the button or.? There are many buttons types and they have very different methods! I will leave that code up to you ( just do a google search for wxButton or wxToggleButton or even wxBitmapButton and many more just search the docs they are very helpful, and always this is c

WxButton

2004-12-25 Thread LutherRevisited
I have a simple application in a Frame, in it I have a button that I want to press when I hit enter. How can I do this? I know with textctrl's you have the EVT_TEXT_ENTER event to do things for you when enter is pressed, can I do the same with a button. I know in WxWidgets for C++ you can put it