UI: text keyword argument to label
Prepare for keyword only args
This commit is contained in:
@@ -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'
|
||||
|
@@ -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)
|
||||
|
@@ -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'
|
||||
|
@@ -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')
|
||||
|
Reference in New Issue
Block a user