Type error: argument 1 has 1 unexpected type ‘QPushButton’
I’m just starting to learning Python and Pyqt6 recently and I’m working on a small project. I have no idea why this error occurs, I try to check the button’s name and the function name multiple times.
Here’s the error:(https://i.sstatic.net/BHrE60Rz.jpg)
The code (the simplify version I make when I try to figure out the problem)
(https://i.sstatic.net/2fYQIJtM.jpg)