UI: text keyword argument to label

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

View File

@@ -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'

View File

@@ -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)

View File

@@ -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'

View File

@@ -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')