Callbacks¶
|
|
|
|
|
Details¶
- Parameters:
newitem (
Dbusmenu.Menuitem
) – TheDbusmenu.Menuitem
that was createdparent (
Dbusmenu.Menuitem
) – The parent of newitem orNone
if noneclient (
Dbusmenu.Client
) – A pointer to theDbusmenu.Client
- Return type:
The type handler is called when a dbusmenu item is created with a matching type as setup in
Dbusmenu.Client.add_type_handler
Return value:
True
if the type has been handled.False
if this function was somehow unable to handle it.
- Parameters:
mi (
Dbusmenu.Menuitem
) – Menu item that should be shownuser_data (
object
orNone
) – Extra user data sent with the function
Callback prototype for a callback that is called when the menu should be shown.
- Parameters:
mi (
Dbusmenu.Menuitem
) – Menu item that should be built fromproperties (
str
orNone
) – A list of properties that should be the only ones in the resulting variant structure
- Returns:
A variant representing this item and its children
- Return type:
This is the function that is called to represent this menu item as a variant. Should call its own children.