Addwidget Pyqt6. The class contains addWidget () method. I can't addWidget(widget[, s