Author: bugman Date: Fri Jun 17 12:54:15 2011 New Revision: 13096 URL: http://svn.gna.org/viewcvs/relax?rev=13096&view=rev Log: The Wiz_panel class now expects a parent GUI element to be set. This is needed to prevent segfaults. Modified: branches/gui_testing/gui/wizard.py Modified: branches/gui_testing/gui/wizard.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/wizard.py?rev=13096&r1=13095&r2=13096&view=diff ============================================================================== --- branches/gui_testing/gui/wizard.py (original) +++ branches/gui_testing/gui/wizard.py Fri Jun 17 12:54:15 2011 @@ -98,11 +98,15 @@ main_text = '' title = '' - def __init__(self): - """Set up the window.""" + def __init__(self, parent): + """Set up the window. + + @param parent: The parent GUI element. + @type parent: wx.object instance + """ # Execute the base class method. - wx.Panel.__init__(self, None, id=-1) + wx.Panel.__init__(self, parent, id=-1) # Pack a sizer into the panel. box_main = wx.BoxSizer(wx.HORIZONTAL)