A question about wxButton Event handler

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • grays

    A question about wxButton Event handler

    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?
  • grays

    #2
    Re: A question about wxButton Event handler

    On 6ÔÂ25ÈÕ, ÏÂÎç6ʱ30·Ö, grays <grays...@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_COMMA ND_BUTTON_CLICK ED, ABtn.GetId())

    ABtn.GetEventHa ndler().Process Event(event)

    thks all!

    Comment

    Working...