예제 #1
0
파일: views.py 프로젝트: dheller1/kowsim
 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()
예제 #2
0
파일: views.py 프로젝트: dheller1/kowsim
 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()