import sys
from PyQt5.QtWidgets import QMainWindow, QApplication
from Ui_Form import Ui_Form # Замените на импорт вашего класса
class MainWindow(QMainWindow, Ui_Form):
def __init__(self):
super().__init__()
self.setupUi()
app = QApplication(sys.argv)
main_window = MainWindow()
main_window.show()
sys.exit(app.exec_())