I created a project using PyQt5. This code attempts to display a window:
import sys
from PyQt5 import QtWidgets
def Pencere():
app = QtWidgets.QApplication(sys.argv)
pencere = QtWidgets.QWidget()
pencere.setWindowTitle("PyQt5 Class 1")
pencere.show()
sys.exit(app.exec_())
I can run this code in PyCharm, and I receive no errors. But no window is displayed.