With the exception of LWMessageFuncs::askName(), all LWMessageFuncs methods allow you to display one or two lines of text, with the second line being set to None if it is not used.
Depending on the user-defined alert level, the arguments are displayed either in a separate dialog with an OK button, or in a status area on the main window. The remaining functions allow you to ask the user questions, and they differ in the choice of responses available to the user. The possible return values are:
3 | 2 | 1 | 0 | |
---|---|---|---|---|
okCancel | Ok | Cancel | ||
yesNo | Yes | No | ||
yesNoCan | Yes | No | Cancel | |
yesNoAll | Yes to All | Yes | No | Cancel |
Bases: object
Proxy of C++ PCore::LWMessageFuncs class
Asks the user for a string in a standard dialog box with OK and Cancel buttons. The initial name is the default. If the user cancels the dialog, the resulting name will be None.