mailr13877 - /branches/gui_testing/gui/components/spectrum.py


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

Header


Content

Posted by edward on July 26, 2011 - 12:19:
Author: bugman
Date: Tue Jul 26 12:19:41 2011
New Revision: 13877

URL: http://svn.gna.org/viewcvs/relax?rev=13877&view=rev
Log:
Removal of unnecessary code.


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

Modified: branches/gui_testing/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/components/spectrum.py?rev=13877&r1=13876&r2=13877&view=diff
==============================================================================
--- branches/gui_testing/gui/components/spectrum.py (original)
+++ branches/gui_testing/gui/components/spectrum.py Tue Jul 26 12:19:41 2011
@@ -136,7 +136,7 @@
         # Initialise the column index for the data.
         index = 1
 
-        # Delete the rows and columns (leaving one row and column).
+        # Delete the rows and columns.
         self.element.DeleteAllItems()
         for i in range(1, self.element.GetColumnCount()):
             self.element.DeleteColumn(i)
@@ -342,14 +342,11 @@
         # The element size.
         x, y = self.element.GetSize()
 
-        # The expandable column width.
-        width = x
-
         # Number of columns.
         n = self.element.GetColumnCount()
 
         # Set to equal sizes.
-        width = int(width / n)
+        width = int(x / n)
 
         # Set the column sizes.
         for i in range(n):




Related Messages


Powered by MHonArc, Updated Tue Jul 26 12:40:02 2011