def sheetSlider(name, initialValue=None, update=None, below=0): """ 'prints' a slider 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 -> an optional 'update' function that's called when change happens -> whether this element should be positioned 'below' the box or to the right (the default) """ r = OutputInsertsOnSheet.printSlider(name, getSelf(), update, below) if (OutputInsertsOnSheet.lastWasNew and initialValue): r.set(initialValue) return r