Changeset 01b6bd0 in sasview


Ignore:
Timestamp:
Feb 25, 2011 7:40:28 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
97ec26b
Parents:
59b9b675
Message:

update ui due to the changes of def of width

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/basepage.py

    r18cdddb r01b6bd0  
    22522252        self.disp_box.Hide() 
    22532253        self.sizer4_4.Clear(True) 
    2254         model_disp = wx.StaticText(self, -1, 'No PolyDispersity for this model') 
     2254        text = "No polydispersity available for this model" 
     2255        model_disp = wx.StaticText(self, -1, text) 
    22552256        self.sizer4_4.Add(model_disp,( iy, ix),(1,1),  wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
    22562257        self.sizer4_4.Layout() 
  • sansview/perspectives/fitting/fitpage.py

    r982e953 r01b6bd0  
    478478                           wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
    479479        ix += 1  
    480         values = wx.StaticText(self, -1, 'Sigma [A]') 
    481         values.SetToolTipString(\ 
    482         "Sigma(STD) in the A unit; the standard deviation from the mean value.") 
     480        values = wx.StaticText(self, -1, 'PD[ratio] ') 
     481        polytext = "Polydispersity (= STD/mean); " 
     482        polytext +=  "the standard deviation over the mean value." 
     483        values.SetToolTipString(polytext) 
    483484 
    484485        self.sizer4_4.Add(values,( iy, ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE,  
     
    513514         of the distribution function will be used for weighting. \n\ 
    514515        The value '3' covers 99.5% for Gaussian distribution \n\ 
    515         function.") 
     516        function. Note: Not recommended to change this value.") 
    516517        self.sizer4_4.Add(nsigmas,( iy, ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 
    517518                           0) 
     
    547548                        ctl1 = self.ModelTextCtrl(self, -1, size=(_BOX_WIDTH,20) 
    548549                                                  ,style=wx.TE_PROCESS_ENTER) 
    549                         ctl1.SetToolTipString("Absolute Sigma: \n\ 
    550                         1) It is the STD (ratio*mean) of '%s' distribution.\n \ 
    551                         2) It should not exceed Mean/(2*Nsigmas)." %item) 
     550                        ctl1.SetLabel('PD[ratio]') 
     551                        poly_text = "Polydispersity (STD/mean) of %s\n" % item 
     552                        poly_text += "STD: the standard deviation" 
     553                        poly_text += " from the mean value." 
     554                        ctl1.SetToolTipString(poly_text) 
    552555                        ctl1.SetValue(str (format_number(value))) 
    553556                        self.sizer4_4.Add(ctl1, (iy,ix),(1,1),wx.EXPAND) 
     
    661664                        ctl1 = self.ModelTextCtrl(self, -1, size=(_BOX_WIDTH, 
    662665                                        20),style=wx.TE_PROCESS_ENTER) 
    663                         ctl1.SetToolTipString("Absolute Sigma: \n\ 
    664                         1) It is the STD (ratio*mean) of '%s' distribution."% \ 
    665                         item) 
     666                        poly_tip = "Absolute Sigma for %s." % item 
     667                        ctl1.SetToolTipString(poly_tip) 
    666668                        ctl1.SetValue(str (format_number(value))) 
    667669                        if self.data.__class__.__name__ =="Data2D": 
    668670                            if first_orient: 
    669                                 values.SetLabel('Sigma [A (or deg)]') 
    670                                 values.SetToolTipString(\ 
    671                                 "Sigma(STD) in the A or deg(for angles) unit;\n\ 
    672                                 the standard deviation from the mean value.") 
     671                                values.SetLabel('PD[ratio], Sig[deg]') 
     672                                poly_text = "PD(polydispersity for lengths):\n" 
     673                                poly_text +=  "It should be a value between" 
     674                                poly_text +=  "0 and 1\n" 
     675                                poly_text += "Sigma for angles: \n" 
     676                                poly_text += "It is the STD (ratio*mean)" 
     677                                poly_text += " of the distribution.\n " % item 
     678                             
     679                                values.SetToolTipString(poly_text) 
    673680                                first_orient = False 
    674681                            ctl1.Show(True) 
  • theoryview/perspectives/theory/basepage.py

    rf53444be r01b6bd0  
    16071607        self.disp_box.Hide() 
    16081608        self.sizer4_4.Clear(True) 
    1609         model_disp = wx.StaticText(self, -1, 'No PolyDispersity for this model') 
     1609        text = "No polydispersity available for this model" 
     1610        model_disp = wx.StaticText(self, -1, text) 
    16101611        self.sizer4_4.Add(model_disp,(iy, ix), (1,1),  
    16111612                          wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
  • theoryview/perspectives/theory/model_panel.py

    r18cdddb r01b6bd0  
    160160                           wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
    161161        ix += 1  
    162         values = wx.StaticText(self, -1, 'Sigma [A]') 
    163         hint_msg = "Sigma(STD) in the A unit; the standard " 
    164         hint_msg += "deviation from the mean value." 
    165         values.SetToolTipString(hint_msg) 
     162        values = wx.StaticText(self, -1, 'PD[ratio] ') 
     163        polytext = "Polydispersity (= STD/mean); " 
     164        polytext +=  "the standard deviation over the mean value." 
     165        values.SetToolTipString(polytext) 
     166         
    166167        self.sizer4_4.Add(values, (iy, ix), (1, 1),  
    167168                          wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
     
    178179        hint_msg += "of the distribution function will be used for " 
    179180        hint_msg += "weighting.\n The value '3' covers 99.5% for Gaussian " 
    180         hint_msg += "  distribution \n function." 
     181        hint_msg += "  distribution \n function. " 
     182        hint_msg += "Note: Not recommended to change this value." 
    181183        nsigmas.SetToolTipString(hint_msg) 
    182184        self.sizer4_4.Add(nsigmas, (iy, ix),  
     
    200202                        ctl1 = self.ModelTextCtrl(self, -1, size=(_BOX_WIDTH,20), 
    201203                                            style=wx.TE_PROCESS_ENTER) 
    202                         ctl1.SetToolTipString("Absolute Sigma: \n\ 
    203                         1) It is the STD (ratio*mean) of '%s' distribution.\n \ 
    204                         2) It should not exceed Mean/(2*Nsigmas)." %item) 
     204                        ctl1.SetLabel('PD[ratio]') 
     205                        poly_text = "Polydispersity (STD/mean) of %s\n" % item 
     206                        poly_text += "STD: the standard deviation" 
     207                        poly_text += " from the mean value." 
     208                        ctl1.SetToolTipString(poly_text) 
    205209                        ctl1.SetValue(str (format_number(value))) 
    206210                        self.sizer4_4.Add(ctl1, (iy,ix),(1,1), wx.EXPAND) 
     
    255259                        ctl1 = self.ModelTextCtrl(self, -1, size=(_BOX_WIDTH,20), 
    256260                                            style=wx.TE_PROCESS_ENTER) 
    257                         ctl1.SetToolTipString("Absolute Sigma: \n\ 
    258                         1) It is the STD (ratio*mean) of '%s' distribution."% \ 
    259                         item) 
     261                        poly_tip = "Absolute Sigma for %s." % item 
     262                        ctl1.SetToolTipString(poly_tip) 
    260263                        ctl1.SetValue(str (format_number(value))) 
    261264                        if not self.enable2D: 
     
    265268                            # in the case of 2D and angle parameter 
    266269                            if first_orient: 
    267                                 values.SetLabel('Sigma [A (or deg)]') 
    268                                 values.SetToolTipString(\ 
    269                                 "Sigma(STD) in the A or deg(for angles) unit;\n\ 
    270                                 the standard deviation from the mean value.") 
     270                                values.SetLabel('PD[ratio], Sig[deg]') 
     271                                poly_text = "PD(polydispersity for lengths):\n" 
     272                                poly_text +=  "It should be a value between" 
     273                                poly_text +=  "0 and 1\n" 
     274                                poly_text += "Sigma for angles: \n" 
     275                                poly_text += "It is the STD (ratio*mean)" 
     276                                poly_text += " of the distribution.\n " % item 
     277                             
     278                                values.SetToolTipString(poly_text) 
    271279                                first_orient = False  
    272280                            ctl1.Show(True) 
Note: See TracChangeset for help on using the changeset viewer.