Author: bugman Date: Wed Jul 6 18:16:18 2011 New Revision: 13458 URL: http://svn.gna.org/viewcvs/relax?rev=13458&view=rev Log: The borders are back in the containers of the spin viewer. Modified: branches/gui_testing/gui/spin_viewer/containers.py Modified: branches/gui_testing/gui/spin_viewer/containers.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/spin_viewer/containers.py?rev=13458&r1=13457&r2=13458&view=diff ============================================================================== --- branches/gui_testing/gui/spin_viewer/containers.py (original) +++ branches/gui_testing/gui/spin_viewer/containers.py Wed Jul 6 18:16:18 2011 @@ -54,9 +54,6 @@ # Store the args. self.gui = gui - # Some variables. - self.border = 10 - # Execute the base class method. wx.Window.__init__(self, parent, id, style=wx.BORDER_SUNKEN) @@ -120,6 +117,9 @@ class Container_base: """The base class for the molecule, residue, and spin containers.""" + + # Some class variables. + border = 10 def create_head_text(self, text): """Generate the wx.StaticText object for header text. @@ -219,11 +219,11 @@ sizer = self.header_molecule() # Add to the sizer. - box.Add(sizer, 0, wx.ALL|wx.EXPAND) + box.Add(sizer, 0, wx.ALL|wx.EXPAND, border=self.border) # A divider. line = wx.StaticLine(self.parent, -1, (25, 50)) - box.Add(line, 0, wx.EXPAND|wx.ALL) + box.Add(line, 0, wx.EXPAND|wx.ALL, border=self.border) def header_molecule(self): @@ -307,11 +307,11 @@ sizer = self.header_residue() # Add to the main sizer. - box.Add(sizer, 0, wx.ALL|wx.EXPAND) + box.Add(sizer, 0, wx.ALL|wx.EXPAND, border=self.border) # A divider. line = wx.StaticLine(self.parent, -1, (25, 50)) - box.Add(line, 0, wx.EXPAND|wx.ALL) + box.Add(line, 0, wx.EXPAND|wx.ALL, border=self.border) def header_residue(self): @@ -405,15 +405,15 @@ sizer = self.header_spin() # Add to the main sizer. - box.Add(sizer, 0, wx.ALL|wx.EXPAND) + box.Add(sizer, 0, wx.ALL|wx.EXPAND, border=self.border) # A divider. line = wx.StaticLine(self.parent, -1, (25, 50)) - box.Add(line, 0, wx.EXPAND|wx.ALL) + box.Add(line, 0, wx.EXPAND|wx.ALL, border=self.border) # The spin container variables. sizer2 = self.spin_vars() - box.Add(sizer2, 1, wx.ALL|wx.EXPAND) + box.Add(sizer2, 1, wx.ALL|wx.EXPAND, border=self.border) def header_spin(self): @@ -592,4 +592,4 @@ sizer.Add(title, 0, wx.LEFT, 0) # Add to the sizer. - box.Add(sizer, 0, wx.ALL|wx.EXPAND) + box.Add(sizer, 0, wx.ALL|wx.EXPAND, border=self.border)