A question about wxButton Event handler

G

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?
 
G

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?


I get it .

event = wx.CommandEvent(wx.wxEVT_COMMAND_BUTTON_CLICKED, ABtn.GetId())

ABtn.GetEventHandler().ProcessEvent(event)

thks all!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top