mailRe: r10895 - /branches/bieri_gui/gui_bieri/analyses/auto_noe.py


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

Header


Content

Posted by Edward d'Auvergne on February 24, 2010 - 18:34:
Hi,

This is a good idea.  Maybe the use of AddSeparator() above this will
make the break nicer?  For this change, just check the docstring.  The
first line needs a '.' character for the automatic parsing.

Cheers,

Edward



On 24 February 2010 05:56,  <michael.bieri@xxxxxx> wrote:
Author: michaelbieri
Date: Wed Feb 24 05:56:50 2010
New Revision: 10895

URL: http://svn.gna.org/viewcvs/relax?rev=10895&view=rev
Log:
Header for the NOE peak lists  was added for improved separation of relax 
settings and peak files.



Modified:
   branches/bieri_gui/gui_bieri/analyses/auto_noe.py

Modified: branches/bieri_gui/gui_bieri/analyses/auto_noe.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/analyses/auto_noe.py?rev=10895&r1=10894&r2=10895&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/analyses/auto_noe.py (original)
+++ branches/bieri_gui/gui_bieri/analyses/auto_noe.py Wed Feb 24 05:56:50 
2010
@@ -448,6 +448,26 @@
        self.peak_intensity.data = data


+    def peak_list_header(self, box):
+        """Add header for peak list section
+
+        @param box:     The box element to pack the structure file 
selection GUI element into.
+        @type box:      wx.BoxSizer instance
+        """
+
+        # Horizontal packing for this element.
+        sizer = wx.BoxSizer(wx.HORIZONTAL)
+
+        # The label.
+        label = wx.StaticText(self.parent, -1, "\nNOE peak lists:", 
style=wx.ALIGN_RIGHT)
+        label.SetMinSize((230, 34))
+        label.SetFont(wx.Font(10, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, ""))
+        sizer.Add(label, 0, 
wx.LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0)
+
+        # Add the element to the box.
+        box.Add(sizer, 0, wx.EXPAND|wx.SHAPED, 0)
+
+
    def results_directory(self, event):
        """The results directory selection.



_______________________________________________
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 Wed Feb 24 19:00:16 2010