The first argument is an explanatory string which is printed on the pop-up. If this argument is null or empty, a default message is used. Recall that passing 0 is equivalent to passing a null string.
The second argument is a string providing default text which appears in the entry area when the pop-up appears. If this argument is null or empty there will be no default text.
The third argument is a string giving text that will appear on the affirmation button. If null or empty, the button will show a default label.
The fourth argument is a boolean that when nonzero, a multi-line text input widget will be used. Otherwise, a single-line input widget will be used.
The first argument is a string providing explanatory text. The second argument provides the initial numeric value. The minval and maxval arguments are the minimum and maximum allowed values. The delta argument is the delta to increment or decrement when the user presses the up/down buttons. These parameters are all real values. The numdgt is an integer value which sets how many places to the right of a decimal point are shown.
If the user presses Apply, the pop-up disappears, and this function returns the current value. If the user presses the Dismiss button or otherwise destroys the widget, the script will halt.