Changeset 318b5bbb in sasview for fittingview/src/sans/perspectives/fitting/fitpage.py
- Timestamp:
- Dec 18, 2012 10:55:24 AM (12 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:
- 6550b64
- Parents:
- 0203ade
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitpage.py
rae4c139 r318b5bbb 635 635 636 636 for item in self.model.dispersion.keys(): 637 if not self.magnetic_on: 638 if item in self.model.magnetic_params: 639 continue 637 640 if not item in self.model.orientation_params: 638 641 if not item in self.disp_cb_dict: … … 752 755 first_orient = True 753 756 for item in self.model.dispersion.keys(): 757 if not self.magnetic_on: 758 if item in self.model.magnetic_params: 759 continue 754 760 if item in self.model.orientation_params: 755 761 if not item in self.disp_cb_dict: … … 2943 2949 if item in self.model.orientation_params: 2944 2950 orient_angle = wx.StaticText(self, -1, '[For 2D only]:') 2951 mag_on_button = wx.Button(self, -1, "Magnetic ON" ) 2952 mag_on_button.Bind(wx.EVT_BUTTON, self._on_mag_on) 2953 mag_help_button = wx.Button(self, -1,"Magnetic angles?" ) 2954 mag_help_button.Bind(wx.EVT_BUTTON,self._on_mag_help) 2945 2955 sizer.Add(orient_angle, (iy, ix), (1, 1), 2946 2956 wx.LEFT | wx.EXPAND | wx.ADJUST_MINSIZE, 15) 2957 iy += 1 2958 sizer.Add(mag_on_button,(iy, ix ),(1,1), 2959 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 2960 sizer.Add(mag_help_button,(iy, ix + 1),(1,1), 2961 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 2962 2963 #handle the magnetic buttons 2964 if not self._has_magnetic: 2965 mag_on_button.Show(False) 2966 elif not self.data.__class__.__name__ == "Data2D": 2967 mag_on_button.Show(False) 2968 else: 2969 mag_on_button.Show(True) 2970 mag_help_button.Show(False) 2971 if mag_on_button.IsShown(): 2972 if self.magnetic_on: 2973 mag_on_button.SetLabel("Magnetic OFF") 2974 mag_help_button.Show(True) 2975 else: 2976 mag_on_button.SetLabel("Magnetic ON") 2977 mag_help_button.Show(False) 2978 2947 2979 if not self.data.__class__.__name__ == "Data2D" and \ 2948 2980 not self.enable2D: … … 2955 2987 if type.lower() != "array": 2956 2988 for item in self.model.orientation_params: 2989 if not self.magnetic_on: 2990 if item in self.model.magnetic_params: 2991 continue 2957 2992 if not item in self.disp_list: 2958 2993 ##prepare a spot to store min max
Note: See TracChangeset
for help on using the changeset viewer.