Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 836 Bytes

ctl_numeric_field.rst

File metadata and controls

38 lines (26 loc) · 836 Bytes

Class CtlNumericField

Introduction

Class for working with numeric field 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: CtlNumericField, *args, **kwargs
) -> None:
    pass

or

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

Class

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