from gui_qt.Qt import QtWidgets from gui_qt._py.tnmh_dialog import Ui_Dialog class TgCalculator(QtWidgets.QDialog, Ui_Dialog): def __init__(self, management, parent=None): super().__init__(parent=parent) self.setupUi(self) self._management = management print('hello there') if __name__ == '__main__': app = QtWidgets.QApplication([]) w = TgCalculator(None) w.show() app.exec()