Changeset 345e7e4 in sasview for src/sas/sasgui/perspectives/fitting/fitpage.py
- Timestamp:
- Dec 19, 2016 7:23:36 AM (8 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b61bd57
- Parents:
- f2724b6
- git-author:
- jhbakker <j.h.bakker@…> (12/19/16 07:23:36)
- git-committer:
- GitHub <noreply@…> (12/19/16 07:23:36)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
rf668101 r345e7e4 168 168 self.set_data(data) 169 169 elif self.dataSource.GetCount() > 0: 170 171 170 pos = self.dataSource.GetSelection() 172 171 data = self.dataSource.GetClientData(pos) … … 618 617 # fill a sizer with the combobox to select dispersion type 619 618 model_disp = wx.StaticText(self, wx.ID_ANY, 'Function') 620 CHECK_STATE = self.cb1.GetValue()619 CHECK_STATE = False 621 620 622 621 ix = 0 … … 962 961 963 962 self.state.model = self.model.clone() 964 965 963 # save state into 966 964 self._copy_parameters_state(self.parameters, self.state.parameters) … … 973 971 wx.PostEvent(self.parent, 974 972 StatusEvent(status=" Selected Distribution: Gaussian")) 975 976 973 # Fill the list of fittable parameters 977 974 self.get_all_checked_params() … … 2685 2682 self._manager.set_param2fit(self.uid, param2fit) 2686 2683 2687 2688 2684 def select_param(self, event=None): 2689 2685 """ … … 2732 2728 if len(self.fittable_param) > 0: 2733 2729 len_orient_para *= 2 2734 #Set the value of checkbox that selected every checkbox or not2735 if len(self.parameters) + len(self.fittable_param) - len_orient_para \2736 == len(self.param_toFit):2737 self.cb1.SetValue(True)2738 else:2739 self.cb1.SetValue(False)2740 2730 2741 2731 self.save_current_state_fit() … … 2839 2829 iy = 0 2840 2830 ix = 0 2841 select_text = "Select All" 2842 self.cb1 = wx.CheckBox(self, wx.ID_ANY, str(select_text), (10, 10)) 2843 wx.EVT_CHECKBOX(self, self.cb1.GetId(), self.select_all_param) 2844 self.cb1.SetToolTipString("To check/uncheck all the boxes below.") 2845 self.cb1.SetValue(True) 2846 2847 sizer.Add(self.cb1, (iy, ix), (1, 1), \ 2848 wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 5) 2831 sizer.Add(wx.StaticText(self, wx.ID_ANY, 'Parameter'), 2832 (iy, ix), (1, 1), wx.EXPAND | wx.ADJUST_MINSIZE, 0) 2849 2833 ix += 1 2850 2834 self.text2_2 = wx.StaticText(self, wx.ID_ANY, 'Value') … … 2873 2857 self.text2_4.Hide() 2874 2858 2875 CHECK_STATE = self.cb1.GetValue()2859 CHECK_STATE = False 2876 2860 for item in keys: 2877 2861
Note: See TracChangeset
for help on using the changeset viewer.