A question about wxButton Event handler

grays grays820 at gmail.com
Wed Jun 25 06:36:57 EDT 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