================== TextEdit (hwx.gui) ================== A TextEdit Widget. It is used to display and modify formatted and HTML text. It can be editable or not. Ctrl+Wheel zooms in/out. Inherits: - :ref:`Widget (hwx.gui)` ---------- Properties ---------- +-----------+-----------+-----------+ | html_ | readonly_ | text_ | +-----------+-----------+-----------+ -------------- Public Methods -------------- +-------------------------------+ | onKeyPress_ (self, event) | +-------------------------------+ | onWheelHandler_ (self, event) | +-------------------------------+ ---------------- Property Details ---------------- .. _html: .. method:: html The HTML formatted text. .. _readonly: .. method:: readonly Returns and sets whether text/value can be edited. .. _text: .. method:: text The text to display. -------------- Method Details -------------- .. _onKeyPress: .. method:: onKeyPress(self, event) Callback method when a key is pressed on the TextEdit widget. adds a new line, lets add for onCommand. :param event: Event to get key pressed. :type event: KeyEvent .. _onWheelHandler: .. method:: onWheelHandler(self, event) Callback method when the mouse wheel is rotated inside the TextEdit widget. Ctrl+Wheel Zooms in/out. :param event: The key event to capture the ctrl pressed and mouse wheel event to determine if is used zoom in or out. :type event: KeyEvent, MouseEvent