You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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\serverinfo_V1.py", line 143, in
nesting, "*")
File "C:\sandbox\pyqt\chap16\serverinfo_V1.py", line 110, in init
separator)
File "C:\sandbox\pyqt\chap16\serverinfo_V1.py", line 66, in init
model = ServerModel(self)
File "C:\sandbox\pyqt\chap16\serverinfo_V1.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
The text was updated successfully, but these errors were encountered:
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\serverinfo_V1.py", line 143, in
nesting, "*")
File "C:\sandbox\pyqt\chap16\serverinfo_V1.py", line 110, in init
separator)
File "C:\sandbox\pyqt\chap16\serverinfo_V1.py", line 66, in init
model = ServerModel(self)
File "C:\sandbox\pyqt\chap16\serverinfo_V1.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
The text was updated successfully, but these errors were encountered: