diff options
Diffstat (limited to 'doc/python_api/examples/bpy.types.UIList.1.py')
-rw-r--r-- | doc/python_api/examples/bpy.types.UIList.1.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/python_api/examples/bpy.types.UIList.1.py b/doc/python_api/examples/bpy.types.UIList.1.py index 97c9bb40480..88f6b0999cd 100644 --- a/doc/python_api/examples/bpy.types.UIList.1.py +++ b/doc/python_api/examples/bpy.types.UIList.1.py @@ -1,6 +1,7 @@ """ Basic UIList Example -+++++++++++++++++++ +++++++++++++++++++++ + This script is the UIList subclass used to show material slots, with a bunch of additional commentaries. Notice the name of the class, this naming convention is similar as the one for panels or menus. @@ -73,8 +74,8 @@ class UIListPanelExample(bpy.types.Panel): # with no custom draw code, use "UI_UL_list"). layout.template_list("MATERIAL_UL_matslots_example", "", obj, "material_slots", obj, "active_material_index") - # The second one can usually be left as an empty string. It's an additional ID used to distinguish lists in case you - # use the same list several times in a given area. + # The second one can usually be left as an empty string. + # It's an additional ID used to distinguish lists in case you use the same list several times in a given area. layout.template_list("MATERIAL_UL_matslots_example", "compact", obj, "material_slots", obj, "active_material_index", type='COMPACT') |