Import def (of class MainWindow) for another file .py
Unsolved
Qt for Python
-
wrote on 24 May 2020, 19:38 last edited by
-
Hi and welcome to devnet,
From your code, you are not creating a QApplication object before your widget.
-
wrote on 24 May 2020, 19:53 last edited by
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
-
Qt Champion 2021wrote on 1 Jun 2020, 15:03 last edited by Jaime02 6 Jan 2020, 15:04
@Logan12
You are using PyCharm, and it does not always catch the errors. Try doing this: