mailr10566 - /branches/bieri_gui/gui_bieri/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 on January 28, 2010 - 20:42:
Author: bugman
Date: Thu Jan 28 20:42:29 2010
New Revision: 10566

URL: http://svn.gna.org/viewcvs/relax?rev=10566&view=rev
Log:
Shifted the unresolved spin selection GUI element into the 
add_unresolved_spins() method.


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

Modified: branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py?rev=10566&r1=10565&r2=10566&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py (original)
+++ branches/bieri_gui/gui_bieri/analyses/auto_rx_base.py Thu Jan 28 20:42:29 
2010
@@ -175,7 +175,6 @@
         sizer_12 = wx.BoxSizer(wx.HORIZONTAL)
         grid_sizer_1 = wx.FlexGridSizer(10, 2, 0, 0)
         sizer_13 = wx.BoxSizer(wx.VERTICAL)
-        nmr_freq_copy_copy_copy = wx.BoxSizer(wx.HORIZONTAL)
         sizer_5_copy_1 = wx.BoxSizer(wx.HORIZONTAL)
         sizer_6_copy_1 = wx.BoxSizer(wx.VERTICAL)
         exec_relax_copy_1 = wx.BoxSizer(wx.HORIZONTAL)
@@ -186,9 +185,6 @@
         sizer_8_copy_copy_copy_copy_1 = wx.BoxSizer(wx.HORIZONTAL)
 
         sizer_11.Add(results_dir_copy_copy, 1, wx.EXPAND, 0)
-        nmr_freq_copy_copy_copy.Add(self.label_2_copy_copy_copy_2_copy_copy, 
0, wx.LEFT|wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0)
-        nmr_freq_copy_copy_copy.Add(self.unresolved_r11, 0, 
wx.ALIGN_CENTER_VERTICAL|wx.ADJUST_MINSIZE, 0)
-        sizer_11.Add(nmr_freq_copy_copy_copy, 0, wx.EXPAND|wx.SHAPED, 0)
         sizer_11.Add(self.panel_2, 0, wx.EXPAND|wx.SHAPED, 0)
         sizer_13.Add(self.addr11, 0, wx.ADJUST_MINSIZE, 0)
         sizer_13.Add(self.refreshr11, 0, wx.ADJUST_MINSIZE, 0)
@@ -248,8 +244,6 @@
         self.label_2_copy_copy_5.SetMinSize((230, 17))
         self.label_2_copy_copy_2_copy_1.SetMinSize((230, 17))
         self.label_2_copy_copy_3_copy_1.SetMinSize((230, 17))
-        self.label_2_copy_copy_copy_2_copy_copy.SetMinSize((230, 17))
-        self.unresolved_r11.SetMinSize((350, 27))
         self.panel_2.SetMinSize((688, 5))
         self.addr11.SetMinSize((60, 27))
         self.refreshr11.SetMinSize((60, 27))
@@ -430,6 +424,30 @@
         box.Add(sizer, 1, wx.EXPAND, 0)
 
 
+    def add_unresolved_spins(self, box):
+        """Create and add the unresolved spins GUI element to the given box.
+
+        @param box:     The box element to pack the unresolved spins 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, "Unresolved residues:", 
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_unresolved = wx.TextCtrl(self.parent, -1, "")
+        self.field_unresolved.SetMinSize((350, 27))
+        sizer.Add(self.field_unresolved, 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 build_main_box(self):
         """Construct the highest level box to pack into the automatic Rx 
analysis frame.
 
@@ -474,8 +492,9 @@
         # Add the structure file selection GUI element.
         self.add_structure_selection(box)
 
-        self.label_2_copy_copy_copy_2_copy_copy = wx.StaticText(self.parent, 
-1, "Unresolved residues:", style=wx.ALIGN_RIGHT)
-        self.unresolved_r11 = wx.TextCtrl(self.parent, -1, "")
+        # Add the unresolved spins GUI element.
+        self.add_unresolved_spins(box)
+
         self.panel_2 = wx.Panel(self.parent, -1)
         self.addr11 = wx.Button(self.panel_1, -1, "add")
         self.refreshr11 = wx.Button(self.panel_1, -1, "refresh")
@@ -539,7 +558,7 @@
         relax_times_r2_1[13] = str(self.r2_time_14.GetValue())
         start_relax = exec_relax()
         if start_relax == True:
-            start_rx(self.resultsdir_r21.GetValue(), r2_list, 
relax_times_r2_1, self.field_structure.GetValue(), 
self.nmrfreq_value_r11.GetValue(), 2, 1, self.unresolved_r11.GetValue(), 
self, 1, global_setting, file_setting, sequencefile)
+            start_rx(self.resultsdir_r21.GetValue(), r2_list, 
relax_times_r2_1, self.field_structure.GetValue(), 
self.nmrfreq_value_r11.GetValue(), 2, 1, self.field_unresolved.GetValue(), 
self, 1, global_setting, file_setting, sequencefile)
         event.Skip()
 
 




Related Messages


Powered by MHonArc, Updated Fri Jan 29 10:00:02 2010