From d3a72033f6804f2803502c133c40d5aa3891b4f9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 28 Aug 2018 12:38:54 +1000 Subject: 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. --- release/scripts/startup/bl_ui/properties_data_curve.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_data_curve.py') diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py index 4002568fb7d..671cff4ebb4 100644 --- a/release/scripts/startup/bl_ui/properties_data_curve.py +++ b/release/scripts/startup/bl_ui/properties_data_curve.py @@ -328,16 +328,16 @@ class DATA_PT_font(CurveButtonsPanelText, Panel): text = context.curve char = context.curve.edit_format - row = layout.split(percentage=0.25) + row = layout.split(factor=0.25) row.label(text="Regular") row.template_ID(text, "font", open="font.open", unlink="font.unlink") - row = layout.split(percentage=0.25) + row = layout.split(factor=0.25) row.label(text="Bold") row.template_ID(text, "font_bold", open="font.open", unlink="font.unlink") - row = layout.split(percentage=0.25) + row = layout.split(factor=0.25) row.label(text="Italic") row.template_ID(text, "font_italic", open="font.open", unlink="font.unlink") - row = layout.split(percentage=0.25) + row = layout.split(factor=0.25) row.label(text="Bold & Italic") row.template_ID(text, "font_bold_italic", open="font.open", unlink="font.unlink") -- cgit v1.2.3