hide()

Hides the main window of the PlanetCNC application. This function is a convenience wrapper that sets the main window's visibility to false.

Syntax

planetcnc.hide()

Parameters

Parameter Type Description
None

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