SOLVED How to close a dialog box by event

I want to display what the document name that I am currently processing with my plugin. Can I use a gui.MessageDialog, or is there a better way? If I do use a gui.MessageDialog, how do I close it automatically when I move on to process the next document?

Hi @visualride, it's actually not possible to control the close state of a MessageDialog. The only possible way is to create your own Dialog through a GeDialog and control it with GeDialog::Open GeDialog::Close

Moreover, with a GeDialog, you can define a Timer, so after a given time you can decide to close your Dialog.

You can find an example in our GitHub repository Py-MemoryViewer.pyp.

If you have any question, please let me know.
Cheers,
Maxime.

Hi @visualride, it's actually not possible to control the close state of a MessageDialog. The only possible way is to create your own Dialog through a GeDialog and control it with GeDialog::Open GeDialog::Close

Moreover, with a GeDialog, you can define a Timer, so after a given time you can decide to close your Dialog.

You can find an example in our GitHub repository Py-MemoryViewer.pyp.

If you have any question, please let me know.
Cheers,
Maxime.

That should work. Thanks for the clarification and pointer to the example!