Skip to content

TypeError: __init__() missing 1 required positional argument: 'window' #1

@jayvdb

Description

@jayvdb
> PYTHONPATH=${PWD} python3 main.pyw
Traceback (most recent call last):
  File "main.pyw", line 10, in <module>
    sys.exit( main() )
  File "main.pyw", line 6, in main
    app = Application(sys.argv)
  File "/home/jayvdb/projects/pg/db-client/application.py", line 17, in __init__
    self.markup = appMarkup
  File "/home/jayvdb/projects/pg/db-client/application.py", line 29, in markup
    self.view.markup = value
  File "/home/jayvdb/projects/pg/db-client/widgets.py", line 211, in markup
    self.layout.markup = value
  File "/home/jayvdb/projects/pg/db-client/widgets.py", line 78, in markup
    self.window.addNode(node['id'], generateNode(node['type'], self.window, self, node['data']))
  File "/home/jayvdb/projects/pg/db-client/helpers.py", line 3, in __call__
    self[key](*args)
  File "/home/jayvdb/projects/pg/db-client/widgets.py", line 54, in __init__
    BaseNode.__init__(self, window, parent, data, node_type, *args)
  File "/home/jayvdb/projects/pg/db-client/widgets.py", line 19, in __init__
    self.process_data(data)
  File "/home/jayvdb/projects/pg/db-client/widgets.py", line 86, in process_data
    self.markup = data['markup']
  File "/home/jayvdb/projects/pg/db-client/widgets.py", line 78, in markup
    self.window.addNode(node['id'], generateNode(node['type'], self.window, self, node['data']))
  File "/home/jayvdb/projects/pg/db-client/helpers.py", line 3, in __call__
    self[key](*args)
  File "/home/jayvdb/projects/pg/db-client/widgets.py", line 161, in __init__
    super(QTabWidget, self).__init__()
TypeError: __init__() missing 1 required positional argument: 'window'

Using python3-qt5-5.13.2

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