Mising a method in QCursor

Answered

I'm getting the following error below when my code run the following command self.cur.execute() in PyCharm

AttributeError: 'QCursor' object has no attribute 'execute'

Do I need to install someting in Pyqt5 to make this work?

2 comments

Hi,

Do you get the same error when running the script from the system terminal (outside of PyCharm) using the same interpreter?

0

No, I didn't see the same error, but it turned out that I had syntax error on a previous lines in the code and once I fixed that this problem went away.

Thank you for response.

0

Please sign in to leave a comment.