import gui_base from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QApplication import sys # GUI constructor from generated gui_base file # doesn't really need to exist but its here now class GUI(QtWidgets.QMainWindow, gui_base.Ui_MainWindow): def __init__(self, parent=None): super().__init__(parent) self.setupUi(self) # test code def main(): app = QApplication(sys.argv) gui = ExampleApp() gui.show() app.exec_() if __name__ == '__main__': main()