Changes in / [2510b9b:11b094f] in sasview
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r9e0aa69a re92a352 55 55 class BasicPage(ScrolledPanel, PanelBase): 56 56 """ 57 This class provide general structure of fitpanel page57 This class provide general structure of the fitpanel page 58 58 """ 59 59 # Internal name for the AUI manager … … 677 677 def _copy_info(self, flag): 678 678 """ 679 Send event d pemding on flag680 681 : Param flag: flag that distinguish event679 Send event depending on flag 680 681 : Param flag: flag that distinguishes the event 682 682 """ 683 683 # messages depending on the flag … … 1119 1119 :precondition: the page is already drawn or created 1120 1120 1121 :postcondition: the state of the underlying data change as well as the1121 :postcondition: the state of the underlying data changes as well as the 1122 1122 state of the graphic interface 1123 1123 """ … … 1335 1335 def _selectDlg(self): 1336 1336 """ 1337 open a dialog file to select ed the customized dispersity1337 open a dialog file to select the customized polydispersity function 1338 1338 """ 1339 1339 if self.parent is not None: … … 1760 1760 def _set_multfactor_combobox(self, multiplicity=10): 1761 1761 """ 1762 Set comboBox for mu itfactor of CoreMultiShellModel1762 Set comboBox for multitfactor of CoreMultiShellModel 1763 1763 :param multiplicit: no. of multi-functionality 1764 1764 """ … … 1798 1798 Fill panel's combo box according to the type of model selected 1799 1799 """ 1800 custom_model = ' CustomizedModels'1800 custom_model = 'Plugin Models' 1801 1801 mod_cat = self.categorybox.GetStringSelection() 1802 1802 self.structurebox.SetSelection(0) … … 3453 3453 fills out the category list box 3454 3454 """ 3455 uncat_str = ' CustomizedModels'3455 uncat_str = 'Plugin Models' 3456 3456 self._read_category_info() 3457 3457 … … 3482 3482 self.model_box.Clear() 3483 3483 3484 if category == ' CustomizedModels':3484 if category == 'Plugin Models': 3485 3485 for model in self.model_list_box[category]: 3486 3486 str_m = str(model).split(".")[0] -
src/sas/sasgui/perspectives/fitting/fitting.py
r73cbeec re92a352 225 225 226 226 self.id_edit = wx.NewId() 227 editmodel_help = "Edit customized model sample file"228 227 self.menu1.AppendMenu(self.id_edit, "Plugin Model Operations", 229 self.edit_model_menu , editmodel_help)228 self.edit_model_menu) 230 229 #create menubar items 231 230 return [(self.menu1, self.sub_menu)] … … 260 259 self.update_custom_combo() 261 260 if os.path.isfile(p_path): 262 msg = "Sorry! Could not beable to delete the default "263 msg += " custommodel... \n"261 msg = "Sorry! unable to delete the default " 262 msg += "plugin model... \n" 264 263 msg += "Please manually remove the files (.py, .pyc) " 265 264 msg += "in the 'plugin_models' folder \n" … … 274 273 if item.GetLabel() == label: 275 274 self.edit_menu.DeleteItem(item) 276 msg = "The custommodel, %s, has been deleted." % label275 msg = "The plugin model, %s, has been deleted." % label 277 276 evt = StatusEvent(status=msg, type='stop', info='info') 278 277 wx.PostEvent(self.parent, evt) … … 331 330 temp = self.fit_panel.reset_pmodel_list() 332 331 if temp: 333 # Set the new custommodel list for all fit pages332 # Set the new plugin model list for all fit pages 334 333 for uid, page in self.fit_panel.opened_pages.iteritems(): 335 334 if hasattr(page, "formfactorbox"): -
src/sas/sasgui/perspectives/fitting/models.py
r0de74af re92a352 325 325 self.plugins.append(plug) 326 326 self.model_dictionary[name] = plug 327 self.model_combobox.set_list(" CustomizedModels", self.plugins)327 self.model_combobox.set_list("Plugin Models", self.plugins) 328 328 return self.model_combobox.get_list() 329 329 else: … … 346 346 self.model_dictionary[name] = plug 347 347 348 self.model_combobox.reset_list(" CustomizedModels", self.plugins)348 self.model_combobox.reset_list("Plugin Models", self.plugins) 349 349 return self.model_combobox.get_list() 350 350 … … 389 389 # self.shape_indep_list) 390 390 self.model_combobox.set_list("Structure Factors", self.struct_list) 391 self.model_combobox.set_list(" CustomizedModels", self.plugins)391 self.model_combobox.set_list("Plugin Models", self.plugins) 392 392 self.model_combobox.set_list("P(Q)*S(Q)", self.multiplication_factor) 393 393 self.model_combobox.set_list("multiplication",
Note: See TracChangeset
for help on using the changeset viewer.