msg()

Displays a message using the PlanetCNC message manager.

The function converts its arguments to a string and then shows a message alert with an information icon.

Syntax

planetcnc.msg(args)

Parameters

Parameter Type Description
args tuple A tuple of one or more arguments. The arguments are converted to a single string (using their string representation) which will be displayed as the message.

Return Value

Examples

#! /usr/bin/env python 
 
import planetcnc
 
# Display a message and retrieve the count.
count = planetcnc.msg("This is an informational message.", "Additional info can be added here.")
print("Message count:", count)

See also

msg
msgerr

msg_show

msg_count
msg_is_active

msg_click_ok
msg_click_cancel

bubble