Changes in / [11b094f:2510b9b] in sasview
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
re92a352 r9e0aa69a 55 55 class BasicPage(ScrolledPanel, PanelBase): 56 56 """ 57 This class provide general structure of thefitpanel page57 This class provide general structure of 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 epending on flag680 681 : Param flag: flag that distinguish es theevent679 Send event dpemding on flag 680 681 : Param flag: flag that distinguish 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 sas well as the1121 :postcondition: the state of the underlying data change 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 the customized polydispersity function1337 open a dialog file to selected the customized dispersity 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 ltitfactor of CoreMultiShellModel1762 Set comboBox for muitfactor 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 = ' PluginModels'1800 custom_model = 'Customized 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 = ' PluginModels'3455 uncat_str = 'Customized Models' 3456 3456 self._read_category_info() 3457 3457 … … 3482 3482 self.model_box.Clear() 3483 3483 3484 if category == ' PluginModels':3484 if category == 'Customized 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
re92a352 r73cbeec 225 225 226 226 self.id_edit = wx.NewId() 227 editmodel_help = "Edit customized model sample file" 227 228 self.menu1.AppendMenu(self.id_edit, "Plugin Model Operations", 228 self.edit_model_menu )229 self.edit_model_menu, editmodel_help) 229 230 #create menubar items 230 231 return [(self.menu1, self.sub_menu)] … … 259 260 self.update_custom_combo() 260 261 if os.path.isfile(p_path): 261 msg = "Sorry! unable to delete the default "262 msg += " pluginmodel... \n"262 msg = "Sorry! Could not be able to delete the default " 263 msg += "custom model... \n" 263 264 msg += "Please manually remove the files (.py, .pyc) " 264 265 msg += "in the 'plugin_models' folder \n" … … 273 274 if item.GetLabel() == label: 274 275 self.edit_menu.DeleteItem(item) 275 msg = "The pluginmodel, %s, has been deleted." % label276 msg = "The custom model, %s, has been deleted." % label 276 277 evt = StatusEvent(status=msg, type='stop', info='info') 277 278 wx.PostEvent(self.parent, evt) … … 330 331 temp = self.fit_panel.reset_pmodel_list() 331 332 if temp: 332 # Set the new pluginmodel list for all fit pages333 # Set the new custom model list for all fit pages 333 334 for uid, page in self.fit_panel.opened_pages.iteritems(): 334 335 if hasattr(page, "formfactorbox"): -
src/sas/sasgui/perspectives/fitting/models.py
re92a352 r0de74af 325 325 self.plugins.append(plug) 326 326 self.model_dictionary[name] = plug 327 self.model_combobox.set_list(" PluginModels", self.plugins)327 self.model_combobox.set_list("Customized 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(" PluginModels", self.plugins)348 self.model_combobox.reset_list("Customized 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(" PluginModels", self.plugins)391 self.model_combobox.set_list("Customized 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.