EVT_INIT_FRAME ????

Hello all,

I can't found an event similar to EVT_INIT_DIALOG for Frames.

The reason is: I need run a function in then main class (frame) afer that all __init__ had finished on the frames derived from it.

Thanks.

···

--
*****************************************
Oswaldo Hernández
oswaldo (@) soft-com (.) es
*****************************************

Oswaldo Hernández wrote:

Hello all,

I can't found an event similar to EVT_INIT_DIALOG for Frames.

The reason is: I need run a function in then main class (frame) afer that all __init__ had finished on the frames derived from it.

Put this at the end of the __init__ for the base class:

  wx.CallAfter(self.TheAfterInitMethod)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn escribió:

Oswaldo Hernández wrote:

Hello all,

I can't found an event similar to EVT_INIT_DIALOG for Frames.

The reason is: I need run a function in then main class (frame) afer that all __init__ had finished on the frames derived from it.

Put this at the end of the __init__ for the base class:

    wx.CallAfter(self.TheAfterInitMethod)

I will try it. Thanks.

···

--
*****************************************
Oswaldo Hernández
oswaldo (@) soft-com (.) es
*****************************************