==================== DoubleEdit (hwx.gui) ==================== A widget that can display/edit a double. Inherits: - :ref:`LineEdit (hwx.gui)` -------------- Public Methods -------------- +-------------------------------------+ | addChildren_ (self, children) | +-------------------------------------+ | destroy_ (self) | +-------------------------------------+ | enableGlobalActions_ (self, enable) | +-------------------------------------+ | get_ (self) | +-------------------------------------+ | getMousePosition_ (self) | +-------------------------------------+ | getRelativeMousePosition_ (self) | +-------------------------------------+ | hide_ (self) | +-------------------------------------+ | saveAsPng_ (self, fname) | +-------------------------------------+ | set_ (self, value) | +-------------------------------------+ | setF1HelpTopic_ (self, helptopic) | +-------------------------------------+ | setProperties_ (self, kwds) | +-------------------------------------+ | show_ (self) | +-------------------------------------+ | validate_ (self, widget) | +-------------------------------------+ -------------- Method Details -------------- .. _addChildren: .. method:: addChildren(self, children) Add child widgets/layouts into this widget. Widget children get layed out using a VBoxLayout. Typically, you'll pass the parent/children into the constructor instead of calling this function directly. :param children: :type children: list[Widget] | Layout .. _destroy: .. method:: destroy(self) Deletes this and all its children. .. _enableGlobalActions: .. method:: enableGlobalActions(self, enable) Sets the state of Global Actions. Disable the global actions to get key events. :param enable: Determines whether to enable or disable global actions. :type enable: bool .. _get: .. method:: get(self) Gets the value converted to base units. .. _getMousePosition: .. method:: getMousePosition(self) Returns the mouse position. .. _getRelativeMousePosition: .. method:: getRelativeMousePosition(self) Returns the mouse position relative to this widget. .. _hide: .. method:: hide(self) Hides the widget. .. _saveAsPng: .. method:: saveAsPng(self, fname) Saves the widget as a .png file. :param fname: The file name for the .png :type fname: str :returns: True if it was saved succesfully, False otherwise. :rtype: bool .. _set: .. method:: set(self, value) Sets the value converted to user units with the units label. :param value: A float value or a string with the units. :type value: str, float .. _setF1HelpTopic: .. method:: setF1HelpTopic(self, helptopic) Popup web-browser helps when the user hits F1 when over this. :param helptopic: Topic name user needs help in. :type helptopic: str .. _setProperties: .. method:: setProperties(self, kwds) Internal method called from constructors. .. _show: .. method:: show(self) Shows the widget. .. _validate: .. method:: 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