Author: bugman Date: Tue Jan 26 14:48:35 2010 New Revision: 10388 URL: http://svn.gna.org/viewcvs/relax?rev=10388&view=rev Log: Added a docstring and comments to the Main.__init__() method. Modified: branches/bieri_gui/gui_bieri/relax_gui.py Modified: branches/bieri_gui/gui_bieri/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/relax_gui.py?rev=10388&r1=10387&r2=10388&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/relax_gui.py (original) +++ branches/bieri_gui/gui_bieri/relax_gui.py Tue Jan 26 14:48:35 2010 @@ -129,9 +129,15 @@ structure_file_pdb_msg = "please insert .pdb file" def __init__(self, *args, **kwds): - # begin + """Initialise the main relax GUI frame.""" + + # Add the style keyword value. kwds["style"] = wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLIP_CHILDREN - wx.Frame.__init__(self, *args, **kwds) + + # Execute the base class __init__ method. + super(wx.Frame, self).__init__(self, *args, **kwds) + + # Build the frame. self.notebook_2 = wx.Notebook(self, -1, style=wx.NB_LEFT) self.results = wx.Panel(self.notebook_2, -1) self.modelfree = wx.Panel(self.notebook_2, -1)