Ask Your Question

Revision history [back]

Take a look at the implementation of CAPIApplication.ShowMessageDialog in wingapi.py. That's basically what you want but you need access to the variable dlg afterwards to close the message window from your code so can't call the API.

There are also some internals that might be useful if you want to show a progress bar & status text, and we'll look at exposing that in the API in the future. If youd have the Wing sources and want to look at that, it's CDetailsProgressDialog in src/guiutils/dialogs.py.

Take a look at the implementation of CAPIApplication.ShowMessageDialog in wingapi.py. That's basically what you want but you need access to the variable dlg afterwards to close the message window from your code so you can't call the API. To close the dialog, call dlg.Close(). You may also want to specify and implement a Cancel button, of course.

There are also some internals that might be useful if you want to show a progress bar & status text, and we'll look at exposing that in the API in the future. If youd have the Wing sources and want to look at that, it's CDetailsProgressDialog in src/guiutils/dialogs.py.