def __init__(self, rect, parent, window, document):
     super(PathRootItem, self).__init__(rect, parent)
     self._window = window
     self._document = document
     self._controller = ViewRootController(self, document)
     self._modelPart = None
     self._partItemForPart = {}  # Maps Part -> PartItem
     self._selectionFilterDict = {}
     self._initSelections()
示例#2
0
 def __init__(self, parent, document, modState):
     self._document = document
     self._controller = ViewRootController(self, document)
     self._modelPart = None
     self._partItems = {}
     self._modifyState = modState
     self._selectionFilterDict = {}
     self.oldSelectionStrandList = []
     self._selectedDict = {}
示例#3
0
 def __init__(self, rect, parent, window, document):
     super(SliceRootItem, self).__init__(rect, parent)
     self._window = window
     self._document = document
     self._controller = ViewRootController(self, document)
     self._instanceItems = {}
示例#4
0
 def resetDocumentAndController(self, document):
     """docstring for resetDocumentAndController"""
     self._document = document
     self._controller = ViewRootController(self, document)
     if len(self._instanceItems) > 0:
         raise ImportError
 def resetDocumentAndController(self, document):
     """docstring for resetDocumentAndController"""
     self._document = document
     self._controller = ViewRootController(self, document)