I am trying to understand PyQt QAbstractItemModel and when I run file serverinfo.pyw I get the following error: Does anyone else have this problem or how can I fix this?
Traceback (most recent call last):
File "C:_\sandbox\pyqt\chap16\serverinfoV1.py", line 143, in
nesting, "*")
File "C:\sandbox\pyqt\chap16\serverinfoV1.py", line 110, in init
separator)
File "C:\sandbox\pyqt\chap16\serverinfoV1.py", line 66, in init
model = ServerModel(self)
File "C:\sandbox\pyqt\chap16\serverinfoV1.py", line 34, in init
super(ServerModel, self).init(parent)
File "C:\sandbox\pyqt\chap16\treeoftable.py", line 116, in init
self.root = BranchNode("")
File "C:_\sandbox\pyqt\chap16\treeoftable.py", line 23, in init
super(BranchNode, self).init(parent)
TypeError: object.init() takes no parameters
I am trying to understand PyQt QAbstractItemModel and when I run file serverinfo.pyw I get the following error: Does anyone else have this problem or how can I fix this? Traceback (most recent call last): File "C:_\sandbox\pyqt\chap16\serverinfoV1.py", line 143, in
nesting, "*")
File "C: \sandbox\pyqt\chap16\serverinfoV1.py", line 110, in init
separator)
File "C:\sandbox\pyqt\chap16\serverinfoV1.py", line 66, in init
model = ServerModel(self)
File "C:\sandbox\pyqt\chap16\serverinfoV1.py", line 34, in init
super(ServerModel, self).init(parent)
File "C:\sandbox\pyqt\chap16\treeoftable.py", line 116, in init
self.root = BranchNode("")
File "C:_\sandbox\pyqt\chap16\treeoftable.py", line 23, in init
super(BranchNode, self).init(parent)
TypeError: object.init() takes no parameters