Author: bugman Date: Fri Sep 9 15:33:33 2011 New Revision: 14620 URL: http://svn.gna.org/viewcvs/relax?rev=14620&view=rev Log: Added the parent arg to the Wiz_window class. This will allow the parent of the wizard to be specified, hopefully fixing the MS Windows window ordering issues. Modified: 1.3/gui/wizard.py Modified: 1.3/gui/wizard.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/wizard.py?rev=14620&r1=14619&r2=14620&view=diff ============================================================================== --- 1.3/gui/wizard.py (original) +++ 1.3/gui/wizard.py Fri Sep 9 15:33:33 2011 @@ -1034,9 +1034,19 @@ # Some class variables. _size_button = (100, 33) - def __init__(self, size_x=400, size_y=400, title='', border=10, style=wx.DEFAULT_DIALOG_STYLE): + def __init__(self, parent=None, size_x=400, size_y=400, title='', border=10, style=wx.DEFAULT_DIALOG_STYLE): """Set up the window. + @keyword parent: The parent window. + @type parent: wx.Window instance + @keyword size_x: The width of the wizard. + @type size_x: int + @keyword size_y: The height of the wizard. + @type size_y: int + @keyword title: The title of the wizard dialog. + @type title: str + @keyword border: The size of the border inside the wizard. + @type border: int @keyword style: The dialog style. @type style: wx style """ @@ -1047,7 +1057,7 @@ self._border = border # Execute the base class method. - wx.Dialog.__init__(self, None, id=-1, title=title, style=style) + wx.Dialog.__init__(self, parent, id=-1, title=title, style=style) # Set up the window icon. self.SetIcons(relax_icons)