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()
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 = {}
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 = {}
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)