![]() |
Deluge Firmware 1.3.0
Build date: 2025.04.16
|
Public Member Functions | |
__init__ (self, str clazz, str cpp_name, list[str] arg_template, Iterable[MultiModeMenuMode] modes, Optional[str] name=None, Optional[str] title=None) | |
visit (self, visitor) | |
![]() | |
__init__ (self, str clazz, str cpp_name, list[str] arg_template, Optional[str] description, Optional[str] name=None, Optional[str] title=None, Optional[str] available_when=None) | |
template_args (self) | |
Public Attributes | |
modes = modes | |
![]() | |
cpp_name = cpp_name | |
clazz = clazz | |
title = name | |
name = title | |
arg_template = arg_template | |
description = description | |
available_when = None | |
A menu that changes its title and operation depending on context. :param clazz: The C++ class to use for this menu item. :param cpp_name: The variable name to use when emitting C++ code. :param arg_template: A list of Python format strings which will be used to generate the C++ initializer arguments. :param title: The key in the language map for the header of this menu item when it's opened. :param modes: The menus this submenu selects from. :param name: The key in the langauge map for the string to be rendered when this menu item is presented for selection in a submenu. A value of None (the default) causes this to default to the same value as ``title``.
dmui.dsl.MultiModeMenu.visit | ( | self, | |
visitor ) |
Reimplemented from dmui.dsl.Menu.