UI: text keyword argument to label

Prepare for keyword only args
This commit is contained in:
2018-08-28 12:34:51 +10:00
parent 60b24f2415
commit e9fb2feb2e
39 changed files with 187 additions and 187 deletions

View File

@@ -67,7 +67,7 @@ class PHYSICS_PT_add(PhysicButtonsPanel, Panel):
row = layout.row(align=True)
row.alignment = 'RIGHT'
row.label("Enable physics for:")
row.label(text="Enable physics for:")
flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=True)
@@ -184,7 +184,7 @@ def point_cache_ui(self, context, cache, enabled, cachetype):
if not is_saved:
col = layout.column(align=True)
col.alignment = 'RIGHT'
col.label("Options are disabled until the file is saved")
col.label(text="Options are disabled until the file is saved")
flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=True)
flow.enabled = enabled and is_saved