NXMessageBox Class¶
Enumerations¶
| NXMessageBoxDialogType Enumeration | Describes type of message box. |
Method Detail¶
Show¶
-
NXMessageBox.Show¶ Overloaded method Show
Show(title, msgboxType, message)Show(title, msgboxType, messages)
-------------------------------------Show message box.
Signature
Show(title, msgboxType, message)Parameters: - title (str) – Title
- msgboxType (
NXOpen.NXMessageBoxDialogType) – Message box type - message (str) – Message
Returns: Return value from Message Box. If of type
NXMessageBoxDialogType.Questionthen the value will be 1 for yes or 2 for no. Otherwise the returned value will be -2. :rtype: int
New in version NX5.0.0.
License requirements: None.
-------------------------------------Show message box.
Signature
Show(title, msgboxType, messages)Parameters: - title (str) – Title
- msgboxType (
NXOpen.NXMessageBoxDialogType) – Message box type - messages (list of str) – Multi-line message
Returns: Return value from Message Box. If of type
NXMessageBoxDialogType.Questionthen the value will be 1 for yes or 2 for no. Otherwise the returned value will be -2. :rtype: int
New in version NX5.0.0.
License requirements: None.
-------------------------------------