def __init__(self, model, ctrl, parent=None): View.__init__(self, ctrl, parent) # ctrl is an ArmyListCtrl self._model = model # Detachment self._initChildren() self._initLayout() self._initConnections() self.UpdateContent()
def __init__(self, ctrl, parent=None): View.__init__(self, ctrl, parent) self._attachedPreview = None self._lastIndex = 0 self._lastFilename = None self.setWindowTitle((self.ctrl.model.Data().CustomName() + "*")) self._initChildren() self._initLayout() self._initConnections() self.detachmentsTw.setCurrentIndex(0) self.ctrl.Revalidate()