ContextMenuItem
Data class for context menu items.
Attributes:
| Name | Type | Description |
|---|---|---|
type |
str
|
Type of menu item ('command', 'checkbutton', 'radiobutton', 'separator'). |
kwargs |
dict
|
Additional keyword arguments for the item. |
__init__
__init__(type: str, **kwargs) -> None
Initialize a context menu item.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
type
|
str
|
Type of menu item ('command', 'checkbutton', 'radiobutton', 'separator'). |
required |
**kwargs
|
Additional arguments passed to the widget. |
{}
|