From e9fb2feb2eaef92384b4bf7064fe2c61b1d3dad9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 28 Aug 2018 12:34:51 +1000 Subject: UI: text keyword argument to label Prepare for keyword only args --- doc/python_api/examples/bpy.types.Panel.1.py | 2 +- doc/python_api/examples/bpy.types.Panel.2.py | 4 ++-- doc/python_api/examples/bpy.types.UIList.2.py | 2 +- doc/python_api/examples/bpy.types.WindowManager.popup_menu.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/python_api/examples/bpy.types.Panel.1.py b/doc/python_api/examples/bpy.types.Panel.1.py index 13a9f53fa7b..b409f8dadea 100644 --- a/doc/python_api/examples/bpy.types.Panel.1.py +++ b/doc/python_api/examples/bpy.types.Panel.1.py @@ -34,7 +34,7 @@ class ObjectSelectPanel(bpy.types.Panel): row.prop(obj, "hide_render") box = layout.box() - box.label("Selection Tools") + box.label(text="Selection Tools") box.operator("object.select_all").action = 'TOGGLE' row = box.row() row.operator("object.select_all").action = 'INVERT' diff --git a/doc/python_api/examples/bpy.types.Panel.2.py b/doc/python_api/examples/bpy.types.Panel.2.py index 261430f1396..2c860e3e1a7 100644 --- a/doc/python_api/examples/bpy.types.Panel.2.py +++ b/doc/python_api/examples/bpy.types.Panel.2.py @@ -21,7 +21,7 @@ class PanelOne(View3DPanel, bpy.types.Panel): bl_label = "Panel One" def draw(self, context): - self.layout.label("Small Class") + self.layout.label(text="Small Class") class PanelTwo(View3DPanel, bpy.types.Panel): @@ -29,7 +29,7 @@ class PanelTwo(View3DPanel, bpy.types.Panel): bl_label = "Panel Two" def draw(self, context): - self.layout.label("Also Small Class") + self.layout.label(text="Also Small Class") bpy.utils.register_class(PanelOne) diff --git a/doc/python_api/examples/bpy.types.UIList.2.py b/doc/python_api/examples/bpy.types.UIList.2.py index a02a0530a66..81bbec11d9a 100644 --- a/doc/python_api/examples/bpy.types.UIList.2.py +++ b/doc/python_api/examples/bpy.types.UIList.2.py @@ -76,7 +76,7 @@ class MESH_UL_vgroups_slow(bpy.types.UIList): subrow.prop(self, "use_filter_empty_reverse", text="", icon=icon) row = layout.row(align=True) - row.label("Order by:") + row.label(text="Order by:") row.prop(self, "use_order_name", toggle=True) row.prop(self, "use_order_importance", toggle=True) icon = 'TRIA_UP' if self.use_filter_orderby_invert else 'TRIA_DOWN' diff --git a/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py b/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py index e6329f677f7..670444b8283 100644 --- a/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py +++ b/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py @@ -8,7 +8,7 @@ import bpy def draw(self, context): - self.layout.label("Hello World") + self.layout.label(text="Hello World") bpy.context.window_manager.popup_menu(draw, title="Greeting", icon='INFO') -- cgit v1.2.3