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: 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.GetEventHandler().ProcessEvent(event)

thks all!
--
http://mail.python.org/mailman/listinfo/python-list