Changeset df7a7e3 in sasview for fittingview/src/sans/perspectives/fitting/fitpanel.py
- Timestamp:
- Sep 17, 2012 5:11:50 PM (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:
- b71a53b
- Parents:
- cf7653d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/fitpanel.py
rf32d144 rdf7a7e3 48 48 self.menu_mng = models.ModelManager() 49 49 self.model_list_box = self.menu_mng.get_model_list() 50 self.model_dictionary = self.menu_mng.get_model_dictionary() 50 51 #pageClosedEvent = nb.EVT_FLATNOTEBOOK_PAGE_CLOSING 51 52 self.pageClosedEvent = wx.aui.EVT_AUINOTEBOOK_PAGE_CLOSE … … 304 305 page.set_manager(self._manager) 305 306 306 def set_model_list(self, dict):307 def set_model_list(self, m_dict): 307 308 """ 308 309 copy a dictionary of model into its own dictionary 309 310 310 :param dict: dictionnary made of model name as key and model class311 :param m_dict: dictionnary made of model name as key and model class 311 312 as value 312 313 """ 313 self.model_list_box = dict 314 314 self.model_list_box = m_dict 315 316 def set_model_dict(self, m_dict): 317 """ 318 copy a dictionary of model name -> model object 319 320 :param m_dict: dictionary linking model name -> model object 321 """ 322 315 323 def get_current_page(self): 316 324 """ … … 360 368 else: 361 369 """ 370 362 371 from fitpage import FitPage 363 panel = FitPage(parent=self) 372 panel = FitPage(parent=self, m_dict = self.model_list_box) 373 364 374 if self.batch_on: 365 375 self.batch_page_index += 1 … … 373 383 panel.batch_on = self.batch_on 374 384 panel._set_save_flag(not panel.batch_on) 375 panel. populate_box(dict=self.model_list_box)385 panel.set_model_dictionary(self.model_dictionary) 376 386 panel.set_manager(self._manager) 377 387 panel.window_caption = caption
Note: See TracChangeset
for help on using the changeset viewer.