Changeset c097f02 in sasview for sansview/perspectives
- Timestamp:
- Apr 28, 2009 5:22:48 PM (16 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:
- 0122b8a
- Parents:
- 75d0352
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r75d0352 rc097f02 775 775 if flag and (class_name in self.model_list_box["Structure Factors"]): 776 776 self.structurebox.Enable() 777 self.text2.Enable() 777 778 items = self.structurebox.GetItems() 778 779 self.sizer1.Layout() … … 830 831 self.structurebox.Enable() 831 832 self.structurebox.SetSelection(0) 833 self.text2.Enable() 832 834 else: 833 835 self.structurebox.Disable() 834 836 self.structurebox.SetSelection(0) 837 self.text2.Disable() 835 838 836 839 self.shape_rbutton.SetValue(True) … … 853 856 self.structurebox.SetSelection(0) 854 857 self.structurebox.Disable() 858 self.text2.Disable() 855 859 ## fill the form factor list with new model 856 860 self._populate_box(self.formfactorbox, list) … … 922 926 if self.model!=None: 923 927 self.formfactorbox.SetValue(self.model.name) 924 928 925 929 926 930 self.structurebox = wx.ComboBox(self, -1,style=wx.CB_READONLY) … … 940 944 self.structurebox.SetSelection(0) 941 945 self.structurebox.Disable() 942 946 self.text2.Disable() 947 943 948 if self.model.__class__ in self.model_list_box["P(Q)*S(Q)"]: 944 949 self.structurebox.Enable() 945 950 self.text2.Enable() 946 951 947 952 ## check model type to show sizer … … 1053 1058 self.structurebox.Disable() 1054 1059 self.structurebox.SetSelection(0) 1060 self.text2.Disable() 1055 1061 else: 1056 1062 self.structurebox.Enable() 1063 self.text2.Enable() 1057 1064 1058 1065 s_id = self.structurebox.GetCurrentSelection()
Note: See TracChangeset
for help on using the changeset viewer.