DoubleEdit (hwx.gui)¶
A widget that can display/edit a double.
- Inherits:
Method Details¶
-
get(self)
Gets the value converted to base units.
-
set(self, text)
Sets the value converted to user units with the units label.
| param text: | The text can be a string with the value and units or else only the double value. |
|---|---|
| type text: | str, double |
-
validate(self, widget)
Validates whether the value entered is a double and convert to base units.
| param widget: | Widget where the value is entered. |
|---|---|
| type widget: | Widget |
| returns: | True if the widget value entered is an int, otherwise False. |
| rtype: | bool |