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


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

Header


Content

Posted by edward on July 21, 2011 - 09:29:
Author: bugman
Date: Thu Jul 21 09:29:36 2011
New Revision: 13796

URL: http://svn.gna.org/viewcvs/relax?rev=13796&view=rev
Log:
Fixes for the grid GUI elements - the first row which is not deleted is now 
being cleared of all text.


Modified:
    branches/gui_testing/gui/components/relax_data.py
    branches/gui_testing/gui/components/spectrum.py
    branches/gui_testing/gui/pipe_editor.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=13796&r1=13795&r2=13796&view=diff
==============================================================================
--- branches/gui_testing/gui/components/relax_data.py (original)
+++ branches/gui_testing/gui/components/relax_data.py Thu Jul 21 09:29:36 2011
@@ -138,6 +138,10 @@
         # Delete the rows, leaving a single row.
         self.grid.DeleteRows(numRows=self.grid.GetNumberRows()-1)
 
+        # Clear the contents of the first row.
+        for i in range(self.grid.GetNumberCols()):
+            self.grid.SetCellValue(0, i, str_to_gui(""))
+
         # Expand the number of rows to match the number of relaxation IDs, 
and add the IDs.
         if hasattr(cdp, 'ri_ids'):
             # The number of IDs.

Modified: branches/gui_testing/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/components/spectrum.py?rev=13796&r1=13795&r2=13796&view=diff
==============================================================================
--- branches/gui_testing/gui/components/spectrum.py (original)
+++ branches/gui_testing/gui/components/spectrum.py Thu Jul 21 09:29:36 2011
@@ -138,6 +138,9 @@
         self.grid.DeleteRows(numRows=self.grid.GetNumberRows()-1)
         self.grid.DeleteCols(numCols=self.grid.GetNumberCols()-1)
 
+        # Clear the contents of the first cell.
+        self.grid.SetCellValue(0, 0, str_to_gui(""))
+
         # Expand the number of rows to match the number of spectrum IDs, and 
add the IDs.
         if hasattr(cdp, 'spectrum_ids'):
             # The number of IDs.

Modified: branches/gui_testing/gui/pipe_editor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/pipe_editor.py?rev=13796&r1=13795&r2=13796&view=diff
==============================================================================
--- branches/gui_testing/gui/pipe_editor.py (original)
+++ branches/gui_testing/gui/pipe_editor.py Thu Jul 21 09:29:36 2011
@@ -307,6 +307,10 @@
         # Delete the rows, leaving a single row.
         self.grid.DeleteRows(numRows=self.grid.GetNumberRows()-1)
 
+        # Clear the contents of the first row.
+        for i in range(self.grid.GetNumberCols()):
+            self.grid.SetCellValue(0, i, str_to_gui(""))
+
         # The data pipes.
         pipe_list = pipe_names()
         n = len(pipe_list)




Related Messages


Powered by MHonArc, Updated Thu Jul 21 10:00:02 2011