[wxPython-users] Centering a wx.AboutBox on a frame
Robin Dunn
robin at alldunn.com
Thu Oct 25 12:11:44 PDT 2007
Regan Tackett wrote:
> In the code below, I have created an about box with the help of the
> AboutDialogInfo method. When the GUI is launched, the frame is centered on the
> screen. If you go to the file menu and click on "About", the message box
> appears centered on the frame (i.e. centered on the screen). However, if I move
> the frame to where it is not centered on the screen and then click to display my
> "About" message, it is still centered on the screen, and not the frame. How do
> I make it to where the about box is centered on the frame when it is displayed?
In order to do that you would either need access to the dialog, or a way
to set it's parent, but AboutDialogInfo and AboutBox don't give you either.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list