Search code examples
pythonpyqtqmessagebox

PyQt close QMessageBox


So I have a QMessageBox that is not closable by the user. I want it to stay active until some work is done, and then close automatically.

I tried MsgBox.close(), but it doesn't work. How do I close that MsgBox? Thanks in advance


Solution

  • Finally found an answer. Just used MsgBox.done(1) instead of close. Thanks