def _message_box(self, title, text): msg_box = QtGui.QMessageBox(self) msg_box.setWindowTitle(title) msg_box.setText(text) return msg_box.exec_()