Changes in src/sas/sasgui/perspectives/fitting/basepage.py [d85c194:bac3988] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
rd85c194 rbac3988 57 57 ## Title to appear on top of the window 58 58 window_caption = "Fit Page " 59 59 60 # These two buttons have specific IDs since they seem to be created more 60 61 # frequently than they need to. In particular, set_dispers_sizer() is … … 1281 1282 else: 1282 1283 self.model_view.SetLabel("1D Mode") 1283 1284 1284 1285 ## set the select all check box to the a given state 1285 1286 self.cb1.SetValue(state.cb1) … … 1379 1380 if disp.__class__.__name__ == 'str': 1380 1381 disp_model = None 1381 com_str = "from sas .models.dispersion_models "1382 com_str = "from sasmodels.weights " 1382 1383 com_str += "import %s as disp_func \ndisp_model = disp_func()" 1383 1384 exec com_str % disp … … 1903 1904 m_list.append(self.model_dict[model]) 1904 1905 #else: 1905 # msg = "This model is disabled by Category Manager." 1906 # msg = "This model is disabled by Category Manager." 1906 1907 # wx.PostEvent(self.parent.parent, 1907 1908 # StatusEvent(status=msg, info="error")) … … 1944 1945 name = model.__class__.__name__ 1945 1946 if models.__name__ != "NoStructure": 1946 if hasattr(model, "name"): 1947 name = model.name 1947 name = model.name 1948 1948 mlist.append((name, models)) 1949 1949 … … 2414 2414 self._draw_model() 2415 2415 ## Need to use FitInside again here to replace the next four lines. 2416 ## Otherwised polydispersity off does not resize the scrollwindow. 2416 ## Otherwised polydispersity off does not resize the scrollwindow. 2417 2417 ## PDB Nov 28, 2015 2418 2418 self.FitInside() … … 2459 2459 self.weights = {} 2460 2460 2461 from sas.models.dispersion_models import GaussianDispersion 2461 #from sas.models.dispersion_models import GaussianDispersion 2462 from sasmodels.weights import GaussianDispersion 2462 2463 if len(self.disp_cb_dict) == 0: 2463 2464 self.save_current_state() … … 2966 2967 self.Show(False) 2967 2968 self.set_model_param_sizer(self.model) 2968 #self._set_sizer_dispersion() 2969 #self._set_sizer_dispersion() 2969 2970 self.state.magnetic_on = self.magnetic_on 2970 2971 self.SetupScrolling() … … 3587 3588 cat_tip = "Modify model categories \n" 3588 3589 cat_tip += "(also accessible from the menu bar)." 3589 show_cat_button.SetToolTip( wx.ToolTip(cat_tip))3590 show_cat_button.SetToolTip( wx.ToolTip(cat_tip) ) 3590 3591 show_cat_button.Bind(wx.EVT_BUTTON, self._on_modify_cat) 3591 3592 sizer_cat_box.Add(self.categorybox, 1, wx.RIGHT, 3) 3592 sizer_cat_box.Add((10, 3593 sizer_cat_box.Add((10,10)) 3593 3594 sizer_cat_box.Add(show_cat_button) 3594 3595 #self.shape_rbutton.SetValue(True) … … 3597 3598 #sizer_radiobutton.Add(self.shape_rbutton) 3598 3599 #sizer_radiobutton.Add(self.shape_indep_rbutton) 3599 sizer_radiobutton.Add((5, 3600 sizer_radiobutton.Add((5,5)) 3600 3601 sizer_radiobutton.Add(self.model_view, 1, wx.RIGHT, 5) 3601 3602 #sizer_radiobutton.Add(self.plugin_rbutton) … … 3813 3814 event.Skip() 3814 3815 #pass 3815
Note: See TracChangeset
for help on using the changeset viewer.