Changeset 491d0fc in sasview


Ignore:
Timestamp:
Dec 21, 2011 9:22:17 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
490b281
Parents:
ed8fa6a3
Message:

moved the set_custom_combo to fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/pyconsole.py

    r7c8d3093 r491d0fc  
    180180            cancel = True 
    181181        return cancel 
    182      
    183      
    184     def update_custom_combo(self): 
    185         """ 
    186         Update custom model combo box in fit_panel 
    187         """ 
    188         try: 
    189             page = self.panel.get_current_page() 
    190             temp = self.panel.reset_pmodel_list() 
    191             if temp: 
    192                 page.model_list_box = temp 
    193                 current_val = page.formfactorbox.GetValue() 
    194                 pos = page.formfactorbox.GetSelection() 
    195                 page._show_combox_helper() 
    196                 page.formfactorbox.SetSelection(pos) 
    197                 page.formfactorbox.SetValue(current_val) 
    198         except: 
    199             pass 
    200182         
    201183    def OnRun(self, event): 
     
    230212            if self._manager != None and self.panel != None: 
    231213                self._manager.set_edit_menu_helper(self.parent) 
    232                 wx.CallAfter(self.update_custom_combo) 
     214                # Update custom model list in fitpage combobox 
     215                wx.CallAfter(self._manager.update_custom_combo) 
    233216     
    234217    def _check_changed(self):    
Note: See TracChangeset for help on using the changeset viewer.