I used your code, slightly modified (line 5, 'parent=None' and line 10, 'pass'):
I suppose I must use something like: super(EPNCComboModel, self).__init__(parent) ?
from PyQt4.QtCore import QObject from PyQt4.QtGui import QAbstractProxyModel class EPNCComboModel(QObject) : def __init__(self, parent=None): def __init__(parent): self.parent = parent def QAbstractProxyModel(self, EPNCComboModel): pass # when used here, self.parent will reference the instance in __init__Now I get the error: "RuntimeError: super-class __init__() of type EPNCComboModel was never called"
I suppose I must use something like: super(EPNCComboModel, self).__init__(parent) ?