Changeset 6e9150d in sasview for sansview/perspectives
- Timestamp:
- Sep 24, 2009 11:49:02 AM (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:
- e627f19
- Parents:
- 4bb2917
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r3a37fe0 r6e9150d 334 334 self.values=[] 335 335 self.weights=[] 336 if event.GetEventObject()==self.noDisper_rbox: 337 if self.noDisper_rbox.GetValue(): 338 #No array dispersity apply yet 339 self._reset_dispersity() 340 ## Redraw the model ??? 341 self._draw_model() 336 342 # Go through the list of dispersion check boxes to identify which one has changed 337 338 343 for p in self.disp_cb_dict: 339 344 self.state.disp_cb_dict[p]= self.disp_cb_dict[p].GetValue() … … 403 408 self._reset_dispersity() 404 409 405 ## Redraw the model ???410 ## Redraw the model 406 411 self._draw_model() 407 412 … … 1530 1535 self._set_sizer_dispersion(dispersity= dispersity) 1531 1536 1532 1533 1537 self.state.disp_box= n 1534 1538 ## Redraw the model 1539 self._draw_model() 1535 1540 #self._undo.Enable(True) 1536 1541 event = PageInfoEvent(page = self) … … 1572 1577 # Add a check box for each parameter. 1573 1578 self.disp_cb_dict = {} 1579 ix+=1 1580 self.noDisper_rbox = wx.RadioButton(self, -1,"None", (10, 10),style= wx.RB_GROUP) 1581 self.Bind(wx.EVT_RADIOBUTTON,self.select_disp_angle , id=self.noDisper_rbox.GetId()) 1582 self.sizer4_4.Add(self.noDisper_rbox, (iy, ix), 1583 (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 1574 1584 1575 1585 for p in self.model.dispersion.keys(): … … 1581 1591 #wx.EVT_RADIOBUTTON(self, self.disp_cb_dict[p].GetId(), self.select_disp_angle) 1582 1592 self.sizer4_4.Add(self.disp_cb_dict[p], (iy, ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 1593 1583 1594 for p in self.model.dispersion.keys(): 1584 1595 if p in self.model.orientation_params: … … 1586 1597 self.disp_cb_dict[p] = wx.RadioButton(self, -1, p, (10, 10)) 1587 1598 self.state.disp_cb_dict[p]= self.disp_cb_dict[p].GetValue() 1588 #print "self.enable2D",self.enable2D1589 1599 if not (self.enable2D or self.data.__class__.__name__ =="Data2D"): 1590 1600 self.disp_cb_dict[p].Hide()
Note: See TracChangeset
for help on using the changeset viewer.