show()

Controls the visibility of the main window of the PlanetCNC application.

This function allows the Python script to explicitly set the main window as visible or hidden.

When called without any arguments, it defaults to showing the window.

Syntax

planetcnc.show()
planetcnc.show(visible)

Parameters

Parameter Type Description
visible bool (optional)

Return Value

Examples

#! /usr/bin/env python 
 
import planetcnc
import time
 
# Explicitly hide the main window.
planetcnc.show(False)
time.sleep(1)
 
# Explicitly show the main window.
planetcnc.show(True)
time.sleep(1)
 
# Simply call hide() without arguments to hide the window.
planetcnc.hide()
time.sleep(1)
 
# Or simply call show() without arguments to show the window.
planetcnc.show()

See also

is_visible
show
hide
set_progress
set_status