Info Messages

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
class lwsdk.LWMessageFuncs(self)

Bases: object

Proxy of C++ PCore::LWMessageFuncs class

 askName(char title, char label, char initial_name) → char

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.

 error(char line_a, char line_b)
 info(char line_a, char line_b)
 okCancel(char title, char line_a, char line_b) → int
 warning(char line_a, char line_b)
 yesNo(char title, char line_a, char line_b) → int
 yesNoAll(char title, char line_a, char line_b) → int
 yesNoCan(char title, char line_a, char line_b) → int

Previous topic

Channel Information

Next topic

Image List

This Page