Esempio n. 1
0
def sheetLazy(name, initialValue=None, below=0):
	""" 'prints' a lazy-box to the sheet.

	takes four parameters:
	-> a name for this UI element
	-> an optional 'initial value" which is a number between 0 and 1.0
	-> whether this element should be positioned 'below' the box or to the right (the default)
	"""

	r = OutputInsertsOnSheet.printLazy(name, getSelf(), below)
	if (OutputInsertsOnSheet.lastWasNew and initialValue):
		r.set(initialValue)
	return r