def show_message(self): msgBox = QMessageBox() msgBox.setText(self.help_text + " ") # The spaces keep the window from being too narrow. msgBox.setInformativeText(self.informative_text) msgBox.adjustSize() msgBox.exec_()