UI: text keyword argument to label
Prepare for keyword only args
This commit is contained in:
@@ -848,7 +848,7 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta):
|
||||
layout = self.layout
|
||||
|
||||
if not searchpaths:
|
||||
layout.label("* Missing Paths *")
|
||||
layout.label(text="* Missing Paths *")
|
||||
|
||||
# collect paths
|
||||
files = []
|
||||
|
||||
@@ -214,7 +214,7 @@ class PropertyPanel:
|
||||
rna_item, context_member = rna_idprop_context_value(context, self._context_path, self._property_type)
|
||||
tot = len(rna_item.keys())
|
||||
if tot:
|
||||
self.layout().label("%d:" % tot)
|
||||
self.layout().label(text="%d:" % tot)
|
||||
"""
|
||||
|
||||
def draw(self, context):
|
||||
|
||||
Reference in New Issue
Block a user