Feb-27-2021, 12:10 AM
Feb-27-2021, 12:33 AM
Don't name your file that you're editing the same name as a module. It will break the import.
You want to import elements from PyQt5, but your local file is PyQt5.py. It's looking for the libraries inside that file.
You want to import elements from PyQt5, but your local file is PyQt5.py. It's looking for the libraries inside that file.
Feb-27-2021, 08:35 AM
(Feb-27-2021, 12:33 AM)bowlofred Wrote: [ -> ]Don't name your file that you're editing the same name as a module. It will break the import.You're absolutely right! I've broken a golden rule
You want to import elements from PyQt5, but your local file is PyQt5.py. It's looking for the libraries inside that file.

What threw me off is the fact the code worked in Visual Studio. Thank you!