Changeset 0f5fe6b in sasview


Ignore:
Timestamp:
Apr 2, 2009 5:43:27 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
28caa03
Parents:
fe886ee
Message:

working on close and reopen fit page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    rdcf29d7 r0f5fe6b  
    471471            if event.GetId() in value: 
    472472                id, page_info,fitproblem = value 
    473                  
    474             if page_info.page_name !="Model Page": 
    475                 page = self.fit_panel.add_fit_page(data= page_info.data, 
    476                                                     page_info=page_info) 
    477                 if fitproblem != None: 
    478                     self.page_finder[page]=fitproblem 
    479             else: 
    480                 model= page_info.model 
    481                 self.fit_panel.add_model_page(model,model.name,topmenu=False, 
    482                                               page_info=page_info) 
    483             break 
     473         
     474                if page_info.page_name !="Model Page": 
     475                    page = self.fit_panel.add_fit_page(data= page_info.data, 
     476                                                        page_info=page_info) 
     477                    if fitproblem != None: 
     478                        self.page_finder[page]=fitproblem 
     479                else: 
     480                    model= page_info.model 
     481                    self.fit_panel.add_model_page(model,model.name,topmenu=False, 
     482                                                  page_info=page_info) 
     483                    break 
    484484         
    485485         
Note: See TracChangeset for help on using the changeset viewer.