Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 822 Bytes

ctl_time_field.rst

File metadata and controls

38 lines (26 loc) · 822 Bytes

Class CtlTimeField

Introduction

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

or

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

Class

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