RNA: UILayout.split(..) 'percentage' to 'factor'

Misleading name since it's between 0..1.

Use as a keyword argument to prepare for keyword only args.

Also document that leaving unset has special behavior.
This commit is contained in:
Campbell Barton
2018-08-28 12:38:54 +10:00
parent e9fb2feb2e
commit d3a72033f6
21 changed files with 132 additions and 129 deletions

View File

@@ -165,7 +165,7 @@ def draw(layout, context, context_member, property_type, use_edit=True):
box = row.box()
if use_edit:
split = box.split(percentage=0.75)
split = box.split(factor=0.75)
row = split.row(align=True)
else:
row = box.row(align=True)