def winsetup(self): msgbox = QMessageBox(self) msgbox.setWindowIcon(QIcon('img/note.png')) msgbox.resize(300, 80) msgbox.setWindowTitle('ADLMIDI pyGUI') text = "<center><b>ADLMIDI cannot be found!</b></center><br>" + "Please check that " + "<b>" + binary + "</b>" + " is in the same folder as this program." msgbox.setText(text) msgbox.show()