Ignore:
Timestamp:
Jan 16, 2018 4:50:31 AM (6 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:
47d7d2d
Parents:
676f137
Message:

Context menus for tab and constraint list widgets.
Dynamic bindings of add/remove for FPs and the C&S widget

File:
1 edited

Legend:

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

    r676f137 rbe8f4b0  
    1818    """ 
    1919    """ 
     20    tabsModifiedSignal = QtCore.pyqtSignal() 
    2021    name = "Fitting" # For displaying in the combo box in DataExplorer 
    2122    def __init__(self, parent=None, data=None): 
     
    117118        self.maxIndex += 1 
    118119        self.addTab(tab, tab_name) 
     120        self.tabsModifiedSignal.emit() 
    119121 
    120122    def addConstraintTab(self): 
     
    122124        Add a new C&S fitting tab 
    123125        """ 
    124         tab     = ConstraintWidget(parent=self.parent) 
     126        tab     = ConstraintWidget(parent=self) 
    125127        # Add this tab to the object library so it can be retrieved by scripting/jupyter 
    126128        tab_name = self.getCSTabName() # TODO update the tab name scheme 
     
    182184            self.removeTab(index) 
    183185            del self.tabs[index] 
     186            self.tabsModifiedSignal.emit() 
    184187        except IndexError: 
    185188            # The tab might have already been deleted previously 
Note: See TracChangeset for help on using the changeset viewer.