Changeset 1e96a66 in sasview for calculatorview/perspectives
- Timestamp:
- Dec 7, 2010 5:43:12 PM (14 years ago)
- 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:
- 1aaa579
- Parents:
- a1f2002
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/sld_panel.py
r66bfacf r1e96a66 59 59 self.density_ctl = None 60 60 self.wavelength_ctl = None 61 self.neutron_sld_re el_ctl = None61 self.neutron_sld_real_ctl = None 62 62 self.neutron_sld_im_ctl = None 63 self.mo_ka_sld_re el_ctl = None63 self.mo_ka_sld_real_ctl = None 64 64 self.mo_ka_sld_im_ctl = None 65 self.cu_ka_sld_re el_ctl = None65 self.cu_ka_sld_real_ctl = None 66 66 self.cu_ka_sld_im_ctl = None 67 67 self.neutron_abs_ctl = None … … 139 139 i_complex = '- i' 140 140 neutron_sld_txt = wx.StaticText(self, -1, 'Neutron SLD') 141 self.neutron_sld_re el_ctl = wx.TextCtrl(self, -1,141 self.neutron_sld_real_ctl = wx.TextCtrl(self, -1, 142 142 size=(_BOX_WIDTH, -1)) 143 self.neutron_sld_re el_ctl.SetEditable(False)144 self.neutron_sld_re el_ctl.SetToolTipString("Neutron SLD real.")143 self.neutron_sld_real_ctl.SetEditable(False) 144 self.neutron_sld_real_ctl.SetToolTipString("Neutron SLD real.") 145 145 self.neutron_sld_im_ctl = wx.TextCtrl(self, -1, 146 146 size=(_BOX_WIDTH, -1)) … … 150 150 151 151 cu_ka_sld_txt = wx.StaticText(self, -1, 'Cu Ka SLD') 152 self.cu_ka_sld_re el_ctl = wx.TextCtrl(self, -1,152 self.cu_ka_sld_real_ctl = wx.TextCtrl(self, -1, 153 153 size=(_BOX_WIDTH, -1)) 154 self.cu_ka_sld_re el_ctl.SetEditable(False)155 self.cu_ka_sld_re el_ctl.SetToolTipString("Cu Ka SLD real.")154 self.cu_ka_sld_real_ctl.SetEditable(False) 155 self.cu_ka_sld_real_ctl.SetToolTipString("Cu Ka SLD real.") 156 156 self.cu_ka_sld_im_ctl = wx.TextCtrl(self, -1, 157 157 size=(_BOX_WIDTH, -1)) … … 161 161 162 162 mo_ka_sld_txt = wx.StaticText(self, -1, 'Mo Ka SLD') 163 self.mo_ka_sld_re el_ctl = wx.TextCtrl(self, -1,163 self.mo_ka_sld_real_ctl = wx.TextCtrl(self, -1, 164 164 size=(_BOX_WIDTH, -1)) 165 self.mo_ka_sld_re el_ctl.SetEditable(False)166 self.mo_ka_sld_re el_ctl.SetToolTipString("Mo Ka SLD real.")165 self.mo_ka_sld_real_ctl.SetEditable(False) 166 self.mo_ka_sld_real_ctl.SetToolTipString("Mo Ka SLD real.") 167 167 self.mo_ka_sld_im_ctl = wx.TextCtrl(self, -1, 168 168 size=(_BOX_WIDTH, -1)) … … 197 197 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 198 198 ix += 1 199 sizer_output.Add(self.neutron_sld_re el_ctl, (iy, ix), (1, 1),199 sizer_output.Add(self.neutron_sld_real_ctl, (iy, ix), (1, 1), 200 200 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 201 201 ix += 1 … … 213 213 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 214 214 ix += 1 215 sizer_output.Add(self.cu_ka_sld_re el_ctl, (iy, ix), (1, 1),215 sizer_output.Add(self.cu_ka_sld_real_ctl, (iy, ix), (1, 1), 216 216 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 217 217 ix += 1 … … 229 229 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 230 230 ix += 1 231 sizer_output.Add(self.mo_ka_sld_re el_ctl,(iy, ix), (1, 1),231 sizer_output.Add(self.mo_ka_sld_real_ctl,(iy, ix), (1, 1), 232 232 wx.EXPAND|wx.ADJUST_MINSIZE, 0) 233 233 ix += 1 … … 393 393 # set neutron sld values 394 394 val = format_number(sld_real * _SCALE) 395 self.neutron_sld_re el_ctl.SetValue(val)395 self.neutron_sld_real_ctl.SetValue(val) 396 396 val = format_number(math.fabs(sld_im) * _SCALE) 397 397 self.neutron_sld_im_ctl.SetValue(val) 398 398 # Compute the Cu SLD 399 self.cu_ka_sld_re el_ctl.SetValue(format_number(cu_real *_SCALE))399 self.cu_ka_sld_real_ctl.SetValue(format_number(cu_real *_SCALE)) 400 400 val = format_number(math.fabs(cu_im )* _SCALE) 401 401 self.cu_ka_sld_im_ctl.SetValue(val) 402 402 # Compute the Mo SLD 403 self.mo_ka_sld_re el_ctl.SetValue(format_number(mo_real *_SCALE))403 self.mo_ka_sld_real_ctl.SetValue(format_number(mo_real *_SCALE)) 404 404 val = format_number(math.fabs(mo_im)* _SCALE) 405 405 self.mo_ka_sld_im_ctl.SetValue(val) … … 422 422 Clear the outputs textctrl 423 423 """ 424 self.neutron_sld_re el_ctl.SetValue("")424 self.neutron_sld_real_ctl.SetValue("") 425 425 self.neutron_sld_im_ctl.SetValue("") 426 self.mo_ka_sld_re el_ctl.SetValue("")426 self.mo_ka_sld_real_ctl.SetValue("") 427 427 self.mo_ka_sld_im_ctl.SetValue("") 428 self.cu_ka_sld_re el_ctl.SetValue("")428 self.cu_ka_sld_real_ctl.SetValue("") 429 429 self.cu_ka_sld_im_ctl.SetValue("") 430 430 self.neutron_abs_ctl.SetValue("")
Note: See TracChangeset
for help on using the changeset viewer.