Bases: PyQt4.QtGui.QFrame
A widget designed to handle numeric scalar values. It allows interaction based on single digit as well as normal value edition.
Slot executed when an arrow button is pressed from the button group
@param[in] b (_ArrowButton) the button which was pressed
Clears the warning style. If not in warning mode, nothing is done.
getDecDigitCount(self) -> int
Gets the number of decimal digits this widget displays
@return (int) the number of decimal digits this widget displays
Slot called when the user finishes editing
Gets the number of decimal digits this widget displays
@return (int) the number of decimal digits this widget displays
Gets the total number of digits this widget displays
@return (int) the total number of digits this widget displays
Gets the widget object used when the user manually sets the value
@return (QWidget) the widget used for editing
Gets the number of integer digits this widget displays
@return (int) the number of integer digits this widget displays
Gets the maximum allowed value
@return (float) the maximum allowed value
Gets the minimum allowed value
@return (float) the minimum allowed value
Gives the previous value of this widget
@return (float) the previous value of this widget
Gets the current value of this widget
@return (float) the value currently displayed by the widget
Gets the current value string of this widget
@return (str) the value currently displayed by the widget
Forces the edition widget to be hidden
getIntDigitCount(self) -> int
Gets the number of integer digits this widget displays
@return (int) the number of integer digits this widget displays
Exectuted when the user presses a key. F2 enters/leaves edition mode. ESC leaves edition mode
getMaxValue(self) -> float
Gets the maximum allowed value
@return (float) the maximum allowed value
getMinValue(self) -> float
Gets the minimum allowed value
@return (float) the minimum allowed value
Executed when user presses double click. This widget shows the edition widget when this happens
Resets the number of decimal digits this widget displays to DefaultDecDigitCount
Resets the number of integer digits this widget displays to DefaultIntDigitCount
Resets the maximum allowed value to the maximum possible according to the current total number of digits
Resets the minimum allowed value to the minimum possible according to the current total number of digits
Resets the value of this widget to 0.0
Sets the number of decimal digits this widget displays
@param[in] n (int) the number of decimal digits to display
Updates the displayed digits.
@param[in] int_nb(int) number of integer digits @param[in] dec_nb(int) number of decimal digits
Sets the number of integer digits this widget displays
@param[in] n (int) the number of integer digits to display
Sets the maximum allowed value for the widget
@param[in] v (float) the new maximum allowed value
Sets the minimum allowed value for the widget
@param[in] v (float) the new minimum allowed value
Sets the rounding function to use when calling _setValue(). This allows you to filter invalid user input
@param[in] roundFunc (callable) the rounding function to use
Sets the value of this widget. Send a ‘valueChanged(double)’ Qt signal
@param[in] v (float) the value to be set
Activates the warning style for this widget. This means a violet border and a tooltip with the given message.
@param[in] msg (str) the message to be displayed as tooltip
Forces the edition widget to be displayed
getValue(self) -> float
Gets the current value of this widget
@return (float) the value currently displayed by the widget