A question about wxButton Event handler

grays grays820 at gmail.com
Wed Jun 25 12:36:57 CEST 2008


On 6月25日, 下午6时30分, grays <grays... at gmail.com> 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!



More information about the Python-list mailing list