mailr13838 - in /branches/gui_testing/gui/components: relax_data.py spectrum.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 22, 2011 - 17:20:
Author: bugman
Date: Fri Jul 22 17:20:51 2011
New Revision: 13838

URL: http://svn.gna.org/viewcvs/relax?rev=13838&view=rev
Log:
Removed visual artifacts in the wx.grid.Grid elements used in the spectrum 
and relax data lists.

All cells are now set to the background panel colour, and then individual 
cells are set back to
white.  This removes the visual artifact of white outside of the grids.


Modified:
    branches/gui_testing/gui/components/relax_data.py
    branches/gui_testing/gui/components/spectrum.py

Modified: branches/gui_testing/gui/components/relax_data.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/components/relax_data.py?rev=13838&r1=13837&r2=13838&view=diff
==============================================================================
--- branches/gui_testing/gui/components/relax_data.py (original)
+++ branches/gui_testing/gui/components/relax_data.py Fri Jul 22 17:20:51 2011
@@ -176,6 +176,7 @@
             for j in range(self.grid.GetNumberCols()):
                 # Cell properties.
                 self.grid.SetReadOnly(i, j)
+                self.grid.SetCellBackgroundColour(i, j, "White")
 
         # Size the columns.
         self.size_cols()
@@ -220,6 +221,9 @@
         self.grid.EnableDragColSize(False)
         self.grid.EnableDragRowSize(False)
 
+        # Set the cell colour to the background panel colour to remove 
visual artifacts.
+        
self.grid.SetDefaultCellBackgroundColour(self.parent.GetBackgroundColour())
+
         # Bind some events.
         self.grid.Bind(wx.EVT_SIZE, self.resize)
 

Modified: branches/gui_testing/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/components/spectrum.py?rev=13838&r1=13837&r2=13838&view=diff
==============================================================================
--- branches/gui_testing/gui/components/spectrum.py (original)
+++ branches/gui_testing/gui/components/spectrum.py Fri Jul 22 17:20:51 2011
@@ -182,6 +182,7 @@
             for j in range(self.grid.GetNumberCols()):
                 # Cell properties.
                 self.grid.SetReadOnly(i, j)
+                self.grid.SetCellBackgroundColour(i, j, "White")
 
         # Size the columns.
         self.size_cols()
@@ -220,6 +221,9 @@
         # No cell resizing allowed.
         self.grid.EnableDragColSize(False)
         self.grid.EnableDragRowSize(False)
+
+        # Set the cell colour to the background panel colour to remove 
visual artifacts.
+        
self.grid.SetDefaultCellBackgroundColour(self.parent.GetBackgroundColour())
 
         # Bind some events.
         self.grid.Bind(wx.EVT_SIZE, self.resize)




Related Messages


Powered by MHonArc, Updated Fri Jul 22 18:00:02 2011