Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.15 KB

ctl_group_box.rst

File metadata and controls

49 lines (33 loc) · 1.15 KB

Class CtlGroupBox

Introduction

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

or

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

Example

.. cssclass:: screen_shot

    .. image:: https://user-images.githubusercontent.com/4193389/283243452-94e5910a-86fb-4d45-ad47-2cb21b266ac4.png
        :alt: Radio Button Example Screen Shot
        :align: center

For an example see Tab and List Box Dialog Example

Class

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