Author: bugman Date: Mon Jun 11 09:27:38 2012 New Revision: 16833 URL: http://svn.gna.org/viewcvs/relax?rev=16833&view=rev Log: The Missing_data dialog can now have the parent wx element specified. This is needed when launched from a child window such as the BMRB export window. Modified: trunk/gui/message.py Modified: trunk/gui/message.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/message.py?rev=16833&r1=16832&r2=16833&view=diff ============================================================================== --- trunk/gui/message.py (original) +++ trunk/gui/message.py Mon Jun 11 09:27:38 2012 @@ -63,15 +63,17 @@ class Missing_data(wx.Dialog): """Message box GUI element for when a setup is incomplete or there is missing data.""" - def __init__(self, missing=[]): + def __init__(self, missing=[], parent=None): """Set up the dialog. @keyword missing: The list of missing data types. @type missing: list of str + @keyword parent: The parent wx element. + @type parent: wx object """ # Initialise the base class. - wx.Dialog.__init__(self, None, title='Missing data', style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.STAY_ON_TOP) + wx.Dialog.__init__(self, parent, title='Missing data', style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.STAY_ON_TOP) # Set up the window icon. self.SetIcons(relax_icons)