[wxpython-users] Re: [newbie] Connection between app and frame?

Peter Damoc pdamoc at gmail.com
Thu Apr 3 08:59:16 PDT 2008


When you create a the first wx.Frame, this frame becomes the TopWindow.
You can get this frame using app.GetTopWindow()

Peter

On Thu, Apr 3, 2008 at 5:55 PM, Gilles <gilles.ganault at free.fr> wrote:

> On Thu, 3 Apr 2008 07:09:42 +0200, "Raffaello Barella"
> <barbarossa.platz at gmail.com> wrote:
> >>> if __name__ =3D=3D '__main__':
> >         app =3D wx.PySimpleApp()
> >         frame =3D StaticTextFrame()
> >         frame.Show()
> >         app.MainLoop()
> >
> >The connection is in MainLoop().
>
> But since I can call the frame class and instance whatever I like, how
> does app knows about frame?
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>



-- =

There is NO FATE, we are the creators.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200804=
03/ed6f02a5/attachment.htm


More information about the wxpython-users mailing list