[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53355] trunk/blender: This commit frees list ui items from their dependencies to Panel, and hence from all the limitations this implied (mostly, the " only one list per panel" one).

Bastien Montagne montagne29 at wanadoo.fr
Sat Dec 29 00:36:24 CET 2012


Yes, all lists now use it… See e.g. the 'properties_material.py', 
'properties_data_mesh.py', etc. (release/scripts/startup/bl_ui). You can 
also have a look at release/scripts/addons/render_copy_settings/panel.py…

Note that if you only need the default list (i.e. icon+name of each 
item), you do not have to create and register your own UIList subclass, 
just use the "UI_UL_list" one.

On 29/12/2012 00:29, Matt Ebb wrote:
> On Fri, Dec 28, 2012 at 8:20 PM, Bastien Montagne<montagne29 at wanadoo.fr>wrote:
>
>> This UIList has a draw_item callback which allows to customize items'
>> drawing from python, that all addons can now use. Incidentally, this also
>> greatly simplifies the C code of this widget, as we do not code any
>> "special case" here anymore!
>
> Hi, is there some example python code for these changes?
>
> thanks
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



More information about the Bf-committers mailing list