diff options
Diffstat (limited to 'source/blender/python/api2_2x/doc/Draw.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/Draw.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/doc/Draw.py b/source/blender/python/api2_2x/doc/Draw.py index 97e22797902..18234754315 100644 --- a/source/blender/python/api2_2x/doc/Draw.py +++ b/source/blender/python/api2_2x/doc/Draw.py @@ -357,14 +357,12 @@ def PupTreeMenu( menu ): """ Create a popup menu tree. - Each item in the list is: a menu item - (str, event); a separator - None; - or submenu - (str, [...]). + 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. To add a title to the - main menu, end the first entry str with '%t' - the event is ignored. + Submenus list uses the same syntax as the menu list. Example:: - result = Draw.PupTreeMenu( [ ("Title%t", 0), ("Menu Item 1", 10), ("Menu Item 2", 12), ("SubMenu", [("Menu Item 3", 100), ("MenuItem4", 101) ] ) ] ) + 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 |