Exemple #1
0
def getSelectedStatus(zone):
    """Return the selected status of a zone in plotter.
    Usage: status=getSelectedStatus(zone)"""
    return CPlot.getSelectedStatus(zone)
# - getSelectedStatus (array) -
import Generator as G
import CPlot
import time

a1 = G.cart((0, 0, 0), (1, 1, 1), (5, 5, 5))
a2 = G.cart((7, 0, 0), (1, 1, 1), (3, 3, 3))
CPlot.display([a1, a2])

time.sleep(5.)
ret = CPlot.getSelectedStatus(0)
if ret == 1: print('Zone 0 is selected.')
else:
    print('Zone 0 is not selected.')