mailr15856 - /1.3/gui/components/relax_data.py


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

Header


Content

Posted by edward on April 30, 2012 - 14:58:
Author: bugman
Date: Mon Apr 30 14:58:03 2012
New Revision: 15856

URL: http://svn.gna.org/viewcvs/relax?rev=15856&view=rev
Log:
The relaxation data list GUI element 'bruker' button now launches the 
bruker.read user function.


Modified:
    1.3/gui/components/relax_data.py

Modified: 1.3/gui/components/relax_data.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/components/relax_data.py?rev=15856&r1=15855&r2=15856&view=diff
==============================================================================
--- 1.3/gui/components/relax_data.py (original)
+++ 1.3/gui/components/relax_data.py Mon Apr 30 14:58:03 2012
@@ -143,7 +143,7 @@
         self.button_bruker.SetFont(font.normal)
         self.button_bruker.SetSize((80, self.height_buttons))
         button_sizer.Add(self.button_bruker, 0, 0, 0)
-        self.gui.Bind(wx.EVT_BUTTON, self.relax_data_read, 
self.button_bruker)
+        self.gui.Bind(wx.EVT_BUTTON, self.bruker_read, self.button_bruker)
         self.button_bruker.SetToolTipString("Read a Bruker Dynamics Center 
relaxation data file.")
 
         # Delete button.
@@ -156,6 +156,17 @@
         self.button_delete.SetToolTipString("Delete loaded relaxation data 
from the relax data store.")
 
 
+    def bruker_read(self, event):
+        """Launch the bruker.read user function.
+
+        @param event:   The wx event.
+        @type event:    wx event
+        """
+
+        # Launch the dialog.
+        user_functions.bruker.read()
+
+
     def build_element(self):
         """Build the relaxation data listing grid."""
 




Related Messages


Powered by MHonArc, Updated Mon Apr 30 15:20:03 2012