Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-08-28 05:34:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-28 05:34:51 +0300
commite9fb2feb2eaef92384b4bf7064fe2c61b1d3dad9 (patch)
tree1b41a7ae2d7c197276e78471a5206946a3d50ea8 /doc
parent60b24f2415233d6dd6feb0c463de59570d7835ff (diff)
UI: text keyword argument to label
Prepare for keyword only args
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/examples/bpy.types.Panel.1.py2
-rw-r--r--doc/python_api/examples/bpy.types.Panel.2.py4
-rw-r--r--doc/python_api/examples/bpy.types.UIList.2.py2
-rw-r--r--doc/python_api/examples/bpy.types.WindowManager.popup_menu.py2
4 files changed, 5 insertions, 5 deletions
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')