mailr12864 - /1.3/gui/analyses/auto_rx_base.py


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

Header


Content

Posted by michael . bieri on June 07, 2011 - 02:52:
Author: michaelbieri
Date: Tue Jun  7 02:52:01 2011
New Revision: 12864

URL: http://svn.gna.org/viewcvs/relax?rev=12864&view=rev
Log:
Button in R1 to read relaxation delays from VD lists.

Modified:
    1.3/gui/analyses/auto_rx_base.py

Modified: 1.3/gui/analyses/auto_rx_base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/auto_rx_base.py?rev=12864&r1=12863&r2=12864&view=diff
==============================================================================
--- 1.3/gui/analyses/auto_rx_base.py (original)
+++ 1.3/gui/analyses/auto_rx_base.py Tue Jun  7 02:52:01 2011
@@ -162,11 +162,25 @@
         # Sizer
         sizer = wx.BoxSizer(wx.HORIZONTAL)
 
+        # Button Sizer
+        button_sizer = wx.BoxSizer(wx.VERTICAL)
+
         # Add peaklist button
         add_pkl = wx.BitmapButton(self.parent, -1, 
bitmap=wx.Bitmap(paths.icon_16x16.add, wx.BITMAP_TYPE_ANY))
         add_pkl.SetMinSize((50, 50))
         self.gui.Bind(wx.EVT_BUTTON, self.load_peaklist, add_pkl)
-        sizer.Add(add_pkl, 0, wx.ADJUST_MINSIZE, 0)
+        button_sizer.Add(add_pkl, 0, wx.ADJUST_MINSIZE, 0)
+
+        # Add VD list import
+        if self.label =='R1':
+            add_vd = wx.Button(self.parent, -1, "+VD")
+            add_vd.SetToolTipString("Add VD (variable delay) list to 
automatically fill in R1 relaxation times.")
+            add_vd.SetMinSize((50, 50))
+            self.gui.Bind(wx.EVT_BUTTON, self.load_peaklist, add_vd)
+            button_sizer.Add(add_vd, 0, wx.ADJUST_MINSIZE, 0)
+
+        # Pack buttons
+        sizer.Add(button_sizer, 0, 0, 0)
 
         # Grid of peak list file names and relaxation time
         self.peaklist = wx.grid.Grid(self.parent, -1, size=(1, 300))




Related Messages


Powered by MHonArc, Updated Tue Jun 07 03:00:02 2011