def __init__(self): QtWidgets.QMainWindow.__init__(self) self.ui = Ui_MainWindow() self.ui.setupUi(self) self.user_type = '' # Object Setup self.ui.label_computer.setText('The quick brown fox') self.code_of_last_pressed_key = 63