Ignore:
Timestamp:
Apr 28, 2017 7:26:55 AM (8 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:
28a09b0
Parents:
0215e0a
Message:

Minor UI resizing.
Refactored ObjectFactory?

File:
1 edited

Legend:

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

    r0215e0a r61a92d4  
    66 
    77import sas.qtgui.Utilities.GuiUtils as GuiUtils 
    8 import sas.qtgui.ObjectFactory as ObjectFactory 
     8import sas.qtgui.Utilities.ObjectLibrary as ObjectLibrary 
    99 
    1010from FittingWidget import FittingWidget 
     
    7575        """ 
    7676        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) 
     77        # Add this tab to the object library so it can be retrieved by scripting/jupyter 
     78        ObjectLibrary.addObject(self.tabName(), tab) 
    7979        self.tabs.append(tab) 
    8080        self.maxIndex += 1 
     
    9696        if len(self.tabs) <= 1: 
    9797            return 
    98         ObjectFactory.deleteObject(self.tabs[index].accessibleName()) 
     98        ObjectLibrary.deleteObjectByRef(self.tabs[index]) 
    9999        del self.tabs[index] 
    100100        self.removeTab(index) 
Note: See TracChangeset for help on using the changeset viewer.