Народ help вот такой код: (все срисовано 1:1 с видеокурса - но выдает такую ошибку?)
NameError: name 'QMainWindow' is not defined
import sys
from PyQt5 import QtGui, QtCore, QtWidgets
from des import *
class GUI(QtWidgets, QMainWindow):
def __init__(self, parent=None):
super().__init__()
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
mywin = GUI()
mywin.show()
sys.exit(app.exec_())
NameError: name 'QMainWindow' is not defined
import sys
from PyQt5 import QtGui, QtCore, QtWidgets
from des import *
class GUI(QtWidgets, QMainWindow):
def __init__(self, parent=None):
super().__init__()
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
mywin = GUI()
mywin.show()
sys.exit(app.exec_())