39 lines
1.4 KiB
HTML
39 lines
1.4 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head>
|
|
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>PyGUI - MenuList class</title></head>
|
|
<body>
|
|
<h1>class <span style="font-family: monospace;">MenuList(list)</span></h1>
|
|
|
|
A MenuList is a specialised list subclass for holding Menu instances, for use as the <span style="font-family: monospace;">menus</span>
|
|
property of an Application or Window. It provides ways of finding menus
|
|
and menu items by command name, which allows you to modify the standard
|
|
menus without making platform-specific assumptions about their layout.<br>
|
|
|
|
<h2>Methods</h2>
|
|
|
|
<div style="margin-left: 40px;">
|
|
<dl>
|
|
<dt>
|
|
<span style="font-family: monospace;">menu_with_command(</span><span style="font-style: italic;">command_name</span><span style="font-family: monospace;">)</span>
|
|
</dt>
|
|
<dd>Returns the <a href="Menu.html">Menu</a> containing the item with the specified command name, or None if there is no such menu.<br>
|
|
<br>
|
|
</dd>
|
|
<dt><span style="font-family: monospace;">item_with_command(</span><span style="font-style: italic;">command_name</span><span style="font-family: monospace;">)</span></dt>
|
|
<dd>Returns the <a href="MenuItem.html">MenuItem</a> having the specified command name, or None if there is no such item.</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
<dl>
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
---<br>
|
|
|
|
<br>
|
|
</body></html> |