def reciveSignalfromOs(self, frame, signal): msg = QMessageBox(self) msg.show(self) # This will be held to exit forom program if msg.accept(): exit(1)