Ask Your Question
1

modeless message window

asked 2022-06-17 08:37:54 -0500

steve1964's avatar

updated 2022-07-15 08:42:03 -0500

How can I create a temporary modeless message window from an extension plugin? I just need something to show a window with a custom text, that stays visible until I manually destroy it after some task has been completed.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-06-17 09:57:01 -0500

updated 2022-06-17 10:08:14 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2022-06-17 08:37:54 -0500

Seen: 86 times

Last updated: Jun 21 '22