[wxPython] Parent of custom wxDialog

Pretty simple, just say self.parent = parent. then later on, you can just say self.parent.CenterOnParent.

Gary

----Original Message Follows----

···

From: "Harald Schneider" <h_schneider@marketmix.com>
Reply-To: wxpython-users@lists.wxwindows.org
To: <wxpython-users@lists.wxwindows.org>
Subject: [wxPython] Parent of custom wxDialog
Date: Mon, 16 Sep 2002 23:06:50 +0200

Hi,

got some newbie question about wxDialog .. searched the mailinglist
archive, but did not find any answer:

When I create a custom wxDialog with
wxDialog.__init__(self, parent, id, title, pos, size, style),
how can I pass the parent from my current window to that dialog?
E.g. for calling CenterOnParent() later on ....

All the best,
Harald

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users

_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com