from PyQt5 import QtWidgets, uic class AstrodataGUI(QtWidgets.QMainWindow): def __init__(self): super(AstrodataGUI, self).__init__() uic.loadUi("astrodatagui.ui", self) self.show()