Webapp
Menu
Menu API available from the Webapp library.
18 config keys · 9 public methods
Import
from Xenonix.Webapp import Menu
Configuration
Use Config(...) with these keys where the class exposes configuration.
| Config key |
Default |
Common values |
What it controls |
Name |
False |
Any valid value |
Object name used for lookup, labels, or public access. |
Layout |
{} |
Any valid value |
Layout setting for Menu. |
Disable |
False |
Any valid value |
Disable setting for Menu. |
Font_Size |
12 |
Any valid value |
Font Size setting for Menu. |
Font_Weight |
'normal' |
Any valid value |
Font Weight setting for Menu. |
Font_Family |
'Helvetica' |
Any valid value |
Font Family setting for Menu. |
Foreground |
'#000000' |
Any valid value |
Text/foreground color. |
Background |
'#ffffff' |
Any valid value |
Background color. |
Active_Foreground |
'#000000' |
Any valid value |
Active Foreground setting for Menu. |
Active_Background |
'#d9d9d9' |
Any valid value |
Active Background setting for Menu. |
Border_Color |
'#000000' |
Any valid value |
Border color. |
Border_Size |
0 |
Any valid value |
Border thickness. |
Border_Radius |
0 |
Any valid value |
Corner radius. |
Shadow_X |
0 |
Any valid value |
Horizontal shadow offset. |
Shadow_Y |
0 |
Any valid value |
Vertical shadow offset. |
Shadow_Blur |
0 |
Any valid value |
Shadow blur amount. |
Shadow_Spread |
0 |
Any valid value |
Shadow spread amount. |
Shadow_Color |
'transparent' |
Any valid value |
Shadow color. |
Public methods
Create
Creates a new Menu instance.
Create(Main, *Args, **Kwargs)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Main |
Required |
Any valid value |
Main value used by the operation. |
Args |
*args |
Any valid value |
Args value used by the operation. |
Kwargs |
**kwargs |
Any valid value |
Kwargs value used by the operation. |
Output
Creates a new Menu object.
Create
Runs the Create operation for Menu.
Create()
Arguments
No arguments.
Output
Runs the operation. Some methods update the object in place.
Delete
Removes the requested item.
Delete()
Arguments
No arguments.
Output
Runs the operation. Some methods update the object in place.
Close
Applies a morphology-style image operation.
Close()
Arguments
No arguments.
Output
Returns success/status or the operation result.
Get
Runs the Get operation for Menu.
Get()
Arguments
No arguments.
Output
Returns the calculated result.
Set
Runs the Set operation for Menu.
Set(Value=False)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Value |
False |
Any valid value |
Value to set or process. |
Output
Returns the calculated result.
Open
Applies a morphology-style image operation.
Open(Widget=False, Left=False, Top=False, Event=False)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Widget |
False |
Any valid value |
Turns widget on or off. |
Left |
False |
Any valid value |
Turns left on or off. |
Top |
False |
Any valid value |
Turns top on or off. |
Event |
False |
Any valid value |
Turns event on or off. |
Output
Returns success/status or the operation result.
Config_Get
Reads one or more configuration values by name.
Config_Get(*Input)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Input |
*args |
Any valid value |
Input value used by the operation. |
Output
Returns selected configuration values.
Config
Changes one or more supported settings. Pass only the configuration keys you want to update.
Config(**Input)
Arguments
| Argument |
Default |
Accepted values |
What it does |
Input |
**kwargs |
Any valid value |
Input value used by the operation. |
Output
Updates configuration values on the object.