Changeset ad8f0d0 in sasview for sansview


Ignore:
Timestamp:
Sep 15, 2009 7:51:44 AM (15 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:
08ba57d
Parents:
0ab485b
Message:

temp. Fix toward v1.0 release for array dispersion (changed checkbox to radiobutton)

File:
1 edited

Legend:

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

    r7ad6ff5 rad8f0d0  
    339339                
    340340                if self.disp_cb_dict[p].GetValue() == True: 
     341                     
     342                    ##Temp. FIX for V1.0 regarding changing checkbox to radiobutton. 
     343                    ##This (self._reset_dispersity) should be removed when the array dispersion is fixed. 
     344                    self._reset_dispersity() 
     345                     
    341346                    # The user wants this parameter to be averaged.  
    342347                    # Pop up the file selection dialog. 
     
    15791584            if not p in self.model.orientation_params: 
    15801585                ix+=1  
    1581                 self.disp_cb_dict[p] = wx.CheckBox(self, -1, p, (10, 10)) 
     1586                self.disp_cb_dict[p] = wx.RadioButton(self, -1, p, (10, 10)) 
    15821587                self.state.disp_cb_dict[p]=  self.disp_cb_dict[p].GetValue() 
    15831588 
    1584                 wx.EVT_CHECKBOX(self, self.disp_cb_dict[p].GetId(), self.select_disp_angle) 
     1589                wx.EVT_RADIOBUTTON(self, self.disp_cb_dict[p].GetId(), self.select_disp_angle) 
    15851590                self.sizer4_4.Add(self.disp_cb_dict[p], (iy, ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
    15861591        for p in self.model.dispersion.keys(): 
Note: See TracChangeset for help on using the changeset viewer.