mailr16739 - /branches/uf_redesign/gui/components/software.py


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

Header


Content

Posted by edward on June 07, 2012 - 21:28:
Author: bugman
Date: Thu Jun  7 21:28:59 2012
New Revision: 16739

URL: http://svn.gna.org/viewcvs/relax?rev=16739&view=rev
Log:
Edits to the software listing GUI element.


Modified:
    branches/uf_redesign/gui/components/software.py

Modified: branches/uf_redesign/gui/components/software.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/components/software.py?rev=16739&r1=16738&r2=16739&view=diff
==============================================================================
--- branches/uf_redesign/gui/components/software.py (original)
+++ branches/uf_redesign/gui/components/software.py Thu Jun  7 21:28:59 2012
@@ -22,35 +22,26 @@
 
###############################################################################
 
 # Module docstring.
-"""Module containing the classes for GUI components involving molecules."""
+"""Module containing the software GUI element for listing the software used 
in the analysis."""
 
 # Python module imports.
 import wx
 import wx.lib.buttons
 
 # relax module imports.
-from generic_fns.mol_res_spin import count_molecules, molecule_loop, 
return_molecule
-
 from graphics import fetch_icon
 from status import Status; status = Status()
 from user_functions.data import Uf_info; uf_info = Uf_info()
 
 # relax GUI module imports.
-from gui.components.menu import build_menu_item
 from gui.fonts import font
 from gui.misc import add_border
-from gui.string_conv import gui_to_str, str_to_gui
+from gui.string_conv import str_to_gui
 from gui.uf_objects import Uf_storage; uf_store = Uf_storage()
 
 
 class Software:
-    """The GUI element for listing the software info."""
-
-    # Some IDs for the menu entries.
-    MENU_BMRB_THIOL_STATE = wx.NewId()
-    MENU_MOLECULE_NAME = wx.NewId()
-    MENU_MOLECULE_TYPE = wx.NewId()
-
+    """The GUI element for listing the software used in the analysis."""
 
     def __init__(self, parent=None, box=None, id=None, stretch=False, 
buttons=True):
         """Build the software list GUI element.
@@ -143,7 +134,7 @@
 
 
     def add_buttons(self, sizer):
-        """Add the buttons for peak list manipulation.
+        """Add the buttons for manipulating the data.
 
         @param sizer:   The sizer element to pack the buttons into.
         @type sizer:    wx.BoxSizer instance
@@ -173,7 +164,7 @@
 
 
     def build_element(self):
-        """Build the molecule listing grid."""
+        """Build the grid."""
 
         # Execution lock, so do nothing.
         if status.exec_lock.locked():
@@ -192,7 +183,7 @@
         # Delete the previous data.
         self.element.DeleteAllItems()
 
-        # Expand the number of rows to match the number of molecules, and 
add the data.
+        # Expand the number of rows to match the number of entries, and add 
the data.
         n = 0
         if hasattr(cdp, 'exp_info') and hasattr(cdp.exp_info, 'software'):
             n = len(cdp.exp_info.software)
@@ -221,13 +212,13 @@
 
 
     def init_element(self, sizer):
-        """Initialise the GUI element for the molecule listing.
+        """Initialise the GUI element.
 
         @param sizer:   The sizer element to pack the element into.
         @type sizer:    wx.BoxSizer instance
         """
 
-        # List of molecules.
+        # The list.
         self.element = wx.ListCtrl(self.panel, -1, 
style=wx.BORDER_SUNKEN|wx.LC_REPORT)
 
         # Initialise to 1 columns.




Related Messages


Powered by MHonArc, Updated Thu Jun 07 22:20:02 2012