Changeset 0215e0a in sasview


Ignore:
Timestamp:
Apr 27, 2017 7:47:24 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
61a92d4
Parents:
180bd54
Message:

Experimental object factory for attaching fit pages to scripting/notebook

Location:
src/sas/qtgui
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py

    r83eb5208 r0215e0a  
    66 
    77import sas.qtgui.Utilities.GuiUtils as GuiUtils 
     8import sas.qtgui.ObjectFactory as ObjectFactory 
    89 
    910from FittingWidget import FittingWidget 
     
    7475        """ 
    7576        tab     = FittingWidget(parent=self.parent, data=data, id=self.maxIndex+1) 
     77        # Add this tab to the object factory so it can be retrieved by scripting/jupyter 
     78        ObjectFactory.addObject(self.tabName(), tab) 
    7679        self.tabs.append(tab) 
    7780        self.maxIndex += 1 
     
    9396        if len(self.tabs) <= 1: 
    9497            return 
     98        ObjectFactory.deleteObject(self.tabs[index].accessibleName()) 
    9599        del self.tabs[index] 
    96100        self.removeTab(index) 
Note: See TracChangeset for help on using the changeset viewer.