mailRe: r12975 - /1.3/gui/components/spectrum.py


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

Header


Content

Posted by Michael Bieri on June 14, 2011 - 01:31:
Hi Edward

I think we will have to change this design. Currently, R1 tab is wrong, as nobody sets cycles for T1 delays. Here, relaxation delays have to be set directly. For R2, this is true for Bruker people. But I don't know if Varian sets the T2 delays in a similar matter (using cycles). So we might exclude Varian users like this...

Let me know when you finalised the reorganisation of the GUI components and I will fix this.

By the way. Nice coding around the grid class! I like the spin.ctrl in the grid!

Cheers
Michael

Am 10.06.2011 23:57, schrieb edward@xxxxxxxxxxxxx:
Author: bugman
Date: Fri Jun 10 15:57:28 2011
New Revision: 12975

URL: http://svn.gna.org/viewcvs/relax?rev=12975&view=rev
Log:
The peak intensity GUI element is now enclosed within a StaticBox.


Modified:
     1.3/gui/components/spectrum.py

Modified: 1.3/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/components/spectrum.py?rev=12975&r1=12974&r2=12975&view=diff
==============================================================================
--- 1.3/gui/components/spectrum.py (original)
+++ 1.3/gui/components/spectrum.py Fri Jun 10 15:57:28 2011
@@ -241,16 +241,22 @@
          # The number of rows.
          self.num_rows = 50

-        # Add peak list selection header.
-        self.subparent.add_subtitle(box, "Data points")
+        # A static box to hold all the widgets, and its sizer.
+        stat_box = wx.StaticBox(self.parent, -1, "Peak lists")
+        stat_box.SetFont(self.gui.font_subtitle)
+        sub_sizer = wx.StaticBoxSizer(stat_box, wx.VERTICAL)

          # Add the cycle delay time element.
-        self.delay_time = self.subparent.add_text_sel_element(box, self.parent, 
text="Single delay cycle time [s]")
+        sub_sizer.AddSpacer(self.spacing)
+        self.delay_time = self.subparent.add_text_sel_element(sub_sizer, self.parent, 
text="Single delay cycle time [s]")

          # Add the grid.
-        box.AddSpacer(self.spacing)
-        self.add_grid(box)
-        box.AddSpacer(self.spacing)
+        sub_sizer.AddSpacer(self.spacing)
+        self.add_grid(sub_sizer)
+        sub_sizer.AddSpacer(self.spacing)
+
+        # Add the sizer to the static box and the static box to the main box.
+        box.Add(sub_sizer, 1, wx.ALL|wx.EXPAND, 0)


      def add_buttons(self, sizer):


_______________________________________________
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 14 12:20:12 2011