Changeset c5cd3b9 in sasview for sansview/perspectives
- Timestamp:
- Sep 15, 2009 6:59:59 PM (15 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:
- bfe4644
- Parents:
- f5dadd5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r08ba57d rc5cd3b9 96 96 self.text2_max.Show(True) 97 97 for item in self.orientation_params: 98 if event.type =="scipy": 99 item[5].SetValue("") 100 item[5].Hide() 101 item[6].SetValue("") 102 item[6].Hide() 103 self.text2_min.Hide() 104 self.text2_max.Hide() 105 else: 106 item[5].Show(True) 107 item[6].Show(True) 108 self.text2_min.Show(True) 109 self.text2_max.Show(True) 98 if item[5]!=None and item[6]!=None: 99 if event.type =="scipy" or self.data.__class__.__name__ !="Data2D": 100 item[5].SetValue("") 101 item[5].Hide() 102 item[6].SetValue("") 103 item[6].Hide() 104 self.text2_min.Hide() 105 self.text2_max.Hide() 106 else: 107 item[5].Show(True) 108 item[6].Show(True) 109 self.text2_min.Show(True) 110 self.text2_max.Show(True) 110 111 111 for item in self.orientation_params_disp: 112 if event.type =="scipy": 113 item[5].SetValue("") 114 item[5].Hide() 115 item[6].SetValue("") 116 item[6].Hide() 117 self.text2_min.Hide() 118 self.text2_max.Hide() 119 else: 120 item[5].Show(True) 121 item[6].Show(True) 122 self.text2_min.Show(True) 123 self.text2_max.Show(True) 124 112 for item in self.orientation_params_disp: 113 if item[5]!=None and item[6]!=None: 114 if event.type =="scipy" or self.data.__class__.__name__ !="Data2D": 115 print "here21" 116 item[5].SetValue("") 117 item[5].Hide() 118 item[6].SetValue("") 119 item[6].Hide() 120 self.text2_min.Hide() 121 self.text2_max.Hide() 122 else: 123 print "here22" 124 item[5].Show(True) 125 item[6].Show(True) 126 self.text2_min.Show(True) 127 self.text2_max.Show(True) 128 125 129 self.sizer3.Layout() 126 130 self.SetScrollbars(20,20,25,65) … … 370 374 if self.data.__class__.__name__ =="Data2D": 371 375 cb.Show(True) 372 cb.Enable()373 376 else: 374 377 cb.Hide() 375 cb.Disable()376 378 ix = 1 377 379 value= self.model.getParam(name1) … … 381 383 if self.data.__class__.__name__ =="Data2D": 382 384 ctl1.Show(True) 383 ctl1.Enable()384 385 else: 385 386 ctl1.Hide() 386 ctl1.Disable()387 387 self.sizer4_4.Add(ctl1, (iy,ix),(1,1),wx.EXPAND) 388 388 ## text to show error sign … … 398 398 ctl2.Hide() 399 399 if self.data.__class__.__name__ =="Data2D": 400 #ctl2.Show(True)401 400 ctl2.Enable() 402 401 else: 403 #ctl2.Hide()404 402 ctl2.Disable() 405 403 self.fittable_param.append([cb,name1,ctl1,text2, … … 416 414 if self.data.__class__.__name__ =="Data2D": 417 415 Tctl.Show(True) 418 Tctl.Enable()419 416 else: 420 417 Tctl.Hide() 421 Tctl.Disable()422 418 self.sizer4_4.Add(Tctl, (iy,ix),(1,1), 423 419 wx.EXPAND|wx.ADJUST_MINSIZE, 0) … … 434 430 if self.data.__class__.__name__ =="Data2D": 435 431 Tctl.Show(True) 436 Tctl.Enable()437 432 else: 438 433 Tctl.Hide() 439 Tctl.Disable()440 434 self.sizer4_4.Add(Tctl, (iy,ix),(1,1), 441 435 wx.EXPAND|wx.ADJUST_MINSIZE, 0) … … 1168 1162 if self.data.__class__.__name__ =="Data2D": 1169 1163 cb.Show(True) 1170 cb.Enable()1164 #cb.Enable() 1171 1165 else: 1172 1166 cb.Hide() 1173 cb.Disable()1167 #cb.Disable() 1174 1168 sizer.Add( cb,( iy, ix),(1,1), 1175 1169 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5) … … 1183 1177 ctl1.SetValue(format_number(value)) 1184 1178 if self.data.__class__.__name__ =="Data2D": 1185 #ctl1.Show(True)1186 ctl1.Enable()1179 ctl1.Show(True) 1180 #ctl1.Enable() 1187 1181 else: 1188 #ctl1.Hide()1189 ctl1.Disable()1182 ctl1.Hide() 1183 #ctl1.Disable() 1190 1184 sizer.Add(ctl1, (iy,ix),(1,1), wx.EXPAND) 1191 1185 ## text to show error sign … … 1202 1196 if self.data.__class__.__name__ =="Data2D": 1203 1197 ctl1.Show(True) 1204 ctl1.Enable()1198 #ctl1.Enable() 1205 1199 else: 1206 1200 ctl1.Hide() 1207 ctl1.Disable()1201 #ctl1.Disable() 1208 1202 param_min, param_max= self.model.details[item][1:] 1209 1203 ix += 1 … … 1218 1212 ctl3.Hide() 1219 1213 if self.data.__class__.__name__ =="Data2D": 1220 #ctl3.Show(True)1221 ctl3.Enable()1214 ctl3.Show(True) 1215 #ctl3.Enable() 1222 1216 else: 1223 #ctl3.Hide()1224 ctl3.Disable()1217 ctl3.Hide() 1218 #ctl3.Disable() 1225 1219 ix += 1 1226 1220 ctl4 = BasicPage.ModelTextCtrl(self, -1, size=(_BOX_WIDTH/2,20), style=wx.TE_PROCESS_ENTER, … … 1234 1228 ctl4.Hide() 1235 1229 if self.data.__class__.__name__ =="Data2D": 1236 #ctl4.Show(True)1237 ctl4.Enable()1230 ctl4.Show(True) 1231 #ctl4.Enable() 1238 1232 else: 1239 #ctl4.Hide() 1240 ctl4.Disable() 1241 if self.engine_type=="park": 1233 ctl4.Hide() 1234 #ctl4.Disable() 1235 if self.engine_type !="park": 1236 ctl3.Hide() 1237 ctl4.Hide() 1238 else: 1242 1239 ctl3.Show(True) 1243 1240 ctl4.Show(True) 1241 1244 1242 ix +=1 1245 1243 # Units … … 1250 1248 if self.data.__class__.__name__ =="Data2D": 1251 1249 units.Show(True) 1252 units.Enable()1250 #units.Enable() 1253 1251 else: 1254 1252 units.Hide() 1255 units.Disable()1253 #units.Disable() 1256 1254 sizer.Add(units, (iy,ix),(1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 1257 1255
Note: See TracChangeset
for help on using the changeset viewer.