print()

A versatile print function similar to Python's built-in print.

It accepts a variable number of arguments (using a Python tuple) and prints their string representations to the PlanetCNC output panel.

The function converts the input arguments into a single string, splits it by newline characters, and outputs each line to the panel.

Syntax

planetcnc.print(args)

Parameters

Parameter Type Description
args tuple A tuple of one or more arguments to be printed. These arguments can be of various types; their string representations are concatenated.

Return Value

Examples

#! /usr/bin/env python 
 
import planetcnc
 
# Print a message to the PlanetCNC output panel, similar to Python's print.
planetcnc.print("Hello,", "world!", 123, "This is a test.")

See also

print
msg
msgerr
bubble