Unsolved Import def (of class MainWindow) for another file .py
-
When I trie import a def, I recieve this output (image). How I can import?
-
Hi and welcome to devnet,
From your code, you are not creating a QApplication object before your widget.
-
Thank you :) .
I'm noob. Do you can teach how I do this?
-
@Logan12 There are many examples and documentation: https://build-system.fman.io/pyqt5-tutorial
-
@Logan12
You are using PyCharm, and it does not always catch the errors. Try doing this:
Check that option and you will see a proper error traceback