0

I just installed PyQt5 using pip3. When I try and import it, this doesn't throw any errors:

from PyQt5.QtWidgets import *

However, when I try and actually access the library:

app = QApplication(sys.argv)

I get the "Undefined Variable" error on QApplication.

I've also tried importing like this:

from PyQt5.QtWidgets import QApplication

which gives me the "No Name QApplication in Module" error.

This is frustrating me to no end, since I literally just installed the library, AND when I type in the import commands my IDE gives me predictive text, showing that the library is being detected.

pppery
  • 3,731
  • 22
  • 33
  • 46
vcable
  • 509
  • 1
  • 5
  • 17

0 Answers0