def __init__(self): super().__init__() self._set = {'foo', 'bar'} self._model = QtGui.QStandardItemModel() self._model.appendRow(self)