diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-09-20 07:40:16 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-09-20 07:40:16 +0400 |
commit | c0303d78b4c25a095208d33a7d809ebb3db79404 (patch) | |
tree | 050c46f3e310c9b7a04e0ce7403216b8b061f698 /source/blender/python/api2_2x/doc/Draw.py | |
parent | 7a510b7240b6441fdbcc43b98b13a2c3127e0b0a (diff) |
Exppython:
- Object: implemented getBoundBox and makeDisplayList methods
- NMesh and Object: small internal changes for nicer behavior
- Draw: added function PupMenu
- Docs: updated for the additions above
Auto build tiny fix: added the imbuf include dir to source/creator/Makefile.am
Diffstat (limited to 'source/blender/python/api2_2x/doc/Draw.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/Draw.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/doc/Draw.py b/source/blender/python/api2_2x/doc/Draw.py index 17c363efb60..db29cf95d67 100644 --- a/source/blender/python/api2_2x/doc/Draw.py +++ b/source/blender/python/api2_2x/doc/Draw.py @@ -152,13 +152,14 @@ def PupMenu(name, maxrow = None): L{Menu}: options are followed by a format code and separated by the '|' character. Valid format codes are: - %t - The option should be used as the title of the pop-up; - - %l - insert a separating line; + - %l - insert a separating line (only works if 'maxrow' isn't given); - %xB{N} - Chosen this option, PupMenu should return the integer B{N}. Example:: - name = "OK?%t|QUIT BLENDER" # if no %xN integer is set, indices start from 1 + name = "OK?%t|QUIT BLENDER" # if no %xN int is set, indices start from 1 result = Draw.PupMenu(name) - if result: Draw.PupMenu("Do you really think we'd let scripts close Blender?%t|Yes|No") + if result: + Draw.PupMenu("Really?%t|Yes|No") @type name: string @param name: The format string to define the contents of the button. |