Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.13 KB

ctl_text_edit.rst

File metadata and controls

49 lines (33 loc) · 1.13 KB

Class CtlTextEdit

Introduction

Class for working with text edit controls in a dialog.

EventArgsCallbackT

All :py:protocol:`~ooodev.utils.type_var.EventArgsCallbackT` callbacks include control_src as a keyword argument.

A callback can be in the format of:

def on_some_event(
    src: Any, event: EventArgs, control_src: CtlTextEdit, *args, **kwargs
) -> None:
    pass

or

def on_some_event(src: Any, event: EventArgs, *args, **kwargs) -> None:
    # can get control from kwargs
    ctl = cast(CtlTextEdit, kwargs['control_src'])

Example

.. cssclass:: screen_shot

    .. image:: https://user-images.githubusercontent.com/4193389/284018833-91fdd4ac-a2c2-4105-a32b-922480240a12.png
        :alt: Tab and Dialog Example
        :align: center

For an example see Tab and Tree Dialog Example

Class

.. autoclass:: ooodev.dialog.dl_control.CtlTextEdit
    :members:
    :undoc-members:
    :show-inheritance:
    :inherited-members: