Python api addition PupTreeMenu() - for apricot
This commit is contained in:
@@ -353,6 +353,23 @@ def PupMenu(name, maxrow = None):
|
||||
@return: the chosen entry number or -1 if none was chosen.
|
||||
"""
|
||||
|
||||
def PupTreeMenu( menu ):
|
||||
"""
|
||||
Create a popup menu tree.
|
||||
|
||||
Each item in the list is a menu item - (str, event), separator - None or submenu - (str, [...]).
|
||||
|
||||
Submenus list uses the same syntax as the menu list.
|
||||
|
||||
Example::
|
||||
result = Draw.PupTreeMenu( [ ("Menu Item 1", 10), ("Menu Item 2", 12), ("SubMenu", [("Menu Item 3", 100), ("MenuItem4", 101) ] ) ] )
|
||||
|
||||
@type menu: string
|
||||
@param menu: A menu list
|
||||
@rtype: int
|
||||
@return: the chosen entry number or -1 if none was chosen.
|
||||
"""
|
||||
|
||||
def PupIntInput(text, default, min, max):
|
||||
"""
|
||||
Create an integer number input pop-up.
|
||||
|
||||
Reference in New Issue
Block a user