mailRe: r12864 - /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 Edward d'Auvergne on June 07, 2011 - 11:22:
Hi Michael,

The +VD button is an interesting idea, but maybe the file format needs
to be described?  Maybe a special wizard could be presented first
which describes the file format, and then this wizard has a 'file
open' button inside it?

Another idea might be to have the file open dialog appear when you
double click on the grid entries?  Then the +VD and + buttons could be
merged, having a dialog appear explaining what is happening and the
format for the file.  What do you think?  The + button could even be
placed in the top left hand corner of the grid, the one which normally
highlights the entire grid.  Then there would be more space and the
layout would be a bit neater.

Cheers,

Edward




On 7 June 2011 02:52,  <michael.bieri@xxxxxxxxxxxxx> wrote:
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))


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits




Related Messages


Powered by MHonArc, Updated Tue Jun 07 11:40:10 2011