mailRe: r10893 - /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 - 17:27:
Brilliant!  This is the perfect way to build isolated GUI elements.  I
would suggest in the future to make the self.field_ref_rmsd object
resizable, i.e. the stretchable flag is turned on.  See the Sizers.py
wx demo for ideas.

Cheers,

Edward



On 24 February 2010 05:53,  <michael.bieri@xxxxxx> wrote:
Author: michaelbieri
Date: Wed Feb 24 05:53:35 2010
New Revision: 10893

URL: http://svn.gna.org/viewcvs/relax?rev=10893&view=rev
Log:
Function for the reference spectra RMSD GUI element was added to the 
auto_noe.py file.


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=10893&r1=10892&r2=10893&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:53:35 
2010
@@ -234,6 +234,30 @@
        box.Add(sizer, 0, wx.EXPAND|wx.SHAPED, 0)


+    def add_reference_rmsd(self, box):
+        """Create and add the background RMSD GUI element to the given box.
+
+        @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, "Background RMSD:", 
style=wx.ALIGN_RIGHT)
+        label.SetMinSize((230, 17))
+        sizer.Add(label, 0, 
wx.LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0)
+
+        # The text input field.
+        self.field_ref_rmsd = wx.TextCtrl(self.parent, -1, 
str(self.data.ref_rmsd))
+        self.field_ref_rmsd.SetMinSize((350, 27))
+        sizer.Add(self.field_ref_rmsd, 0, 
wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0)
+
+        # Add the element to the box.
+        box.Add(sizer, 0, wx.EXPAND|wx.SHAPED, 0)
+
+
    def assemble_data(self):
        """Assemble the data required for the Relax_fit class.



_______________________________________________
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 18:40:25 2010