Skip to content

File serverinfo.pyw returns TypeError: object.__init__() takes no parameters #3

@lskrinjar

Description

@lskrinjar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions