Blender Git Loki

Git Commits -> Revision ab8ccaa

Revision ab8ccaa by Campbell Barton (master)
August 11, 2010, 15:11 (GMT)
python declarative UI
- remove XML testing feature
- add 2 modules: bpyml - generic, bpyml_ui - blender spesific. nothing uses these now.

==bpyml_ui module==
defines BPyML_BaseUI and its draw() function which uses the bpyml member of the class instance self.draw_data & self.draw_header_data.

This way declarative ui is opt-in and easy to use by using BPyML_BaseUI as a mix-in class.

==bpyml module==

This module translates a python like XML representation into XML
or simple python blender/ui function calls.

sometag(arg=10) [
another(),
another(key="value")
]

# converts into ...

<sometag arg="10">
<another/>
<another key="value" />
</sometag>

Commit Details:

Full Hash: ab8ccaa7098f6fee887f2a249fddada7864cd6c5
SVN Revision: 31238
Parent Commit: 2a72eb8
Lines Changed: +307, -268

2 Added Paths:

/release/scripts/modules/bpyml.py (+204, -0) (View)
/release/scripts/modules/bpyml_ui.py (+100, -0) (View)

2 Deleted Paths:

/release/scripts/modules/bpy_xml_ui.py (+0, -151)
/release/scripts/ui/properties_render_test.xml (+0, -79)

3 Modified Paths:

/release/scripts/modules/bpy/utils.py (+0, -35) (Diff)
/source/blender/makesrna/intern/rna_color.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_fluidsim.c (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021