addons-contrib: add missing text= keyword after label
authorNBurn <7nburn@gmail.com>
Wed, 23 Jan 2019 20:26:22 +0000 (15:26 -0500)
committerNBurn <7nburn@gmail.com>
Wed, 23 Jan 2019 20:26:22 +0000 (15:26 -0500)
28 files changed:
add_dimension.py
add_mesh_icicle_snowflake/add_mesh_icicle_gen.py
add_mesh_space_tree/__init__.py
amaranth/render/samples_scene.py
animation_motion_trail.py
camera_overscan.py
cmu_mocap_browser/__init__.py
curve_tools/Properties.py
data_overrides/override.py
io_import_LRO_Lola_MGS_Mola_img.py
io_import_lipSync_Importer.py
io_scene_cod/__init__.py
io_scene_fpx/fpx_ui.py
lamp_geographical_sun.py
lighting_hdri_shortcut/__init__.py
node_presets.py
np_station/__init__.py
object_color_rules.py
object_particle_hair_net.py
oscurart_mesh_cache_tools.py
render_to_print.py
space_view3d_align_tools.py
space_view3d_cursor_control/history.py
space_view3d_paint_bprojection.py
space_view3d_quickPrefs.py
sun_position/hdr.py
sun_position/map.py
ui_splash_tips/__init__.py

index 6644c5d..199f970 100644 (file)
@@ -2738,7 +2738,7 @@ class DimensionAdd(bpy.types.Panel):
             endvertex = bpy.context.scene.cursor_location
             layout = self.layout
             col = layout.column()
-            col.label("Note:")
+            col.label(text="Note:")
             row = layout.row()
             props1 = row.operator("curve.dimension", text = 'Add linear note')
             props1.Dimension_Change = False
@@ -2759,7 +2759,7 @@ class DimensionAdd(bpy.types.Panel):
             props2.Dimension_parent = obj.name
 
             col = layout.column()
-            col.label("Distance to 3D cursor:")
+            col.label(text="Distance to 3D cursor:")
             row = layout.row()
             props3 = row.operator("curve.dimension", text = 'Add linear dimension')
             props3.Dimension_Change = False
@@ -2782,7 +2782,7 @@ class DimensionAdd(bpy.types.Panel):
             props4.Dimension_parent = obj.name
 
             col = layout.column()
-            col.label("Radius to 3D cursor:")
+            col.label(text="Radius to 3D cursor:")
             row = layout.row()
             props7 = row.operator("curve.dimension", text = 'Add linear radius')
             props7.Dimension_Change = False
@@ -2805,7 +2805,7 @@ class DimensionAdd(bpy.types.Panel):
             props8.Dimension_parent = obj.name
 
             col = layout.column()
-            col.label("Diameter to 3D cursor:")
+            col.label(text="Diameter to 3D cursor:")
             row = layout.row()
             props9 = row.operator("curve.dimension", text = 'Add linear diameter')
             props9.Dimension_Change = False
@@ -2836,7 +2836,7 @@ class DimensionAdd(bpy.types.Panel):
 
             layout = self.layout
             col = layout.column()
-            col.label("Distance:")
+            col.label(text="Distance:")
             row = layout.row()
             props1 = row.operator("curve.dimension", text = 'Add linear dimension')
             props1.Dimension_Change = False
@@ -2859,7 +2859,7 @@ class DimensionAdd(bpy.types.Panel):
             props2.Dimension_parent = obj.name
 
             col = layout.column()
-            col.label("Radius:")
+            col.label(text="Radius:")
             row = layout.row()
             props3 = row.operator("curve.dimension", text = 'Add linear radius')
             props3.Dimension_Change = False
@@ -2882,7 +2882,7 @@ class DimensionAdd(bpy.types.Panel):
             props4.Dimension_parent = obj.name
 
             col = layout.column()
-            col.label("Diameter:")
+            col.label(text="Diameter:")
             row = layout.row()
             props5 = row.operator("curve.dimension", text = 'Add linear diameter')
             props5.Dimension_Change = False
@@ -2914,7 +2914,7 @@ class DimensionAdd(bpy.types.Panel):
 
             layout = self.layout
             col = layout.column()
-            col.label("Angle:")
+            col.label(text="Angle:")
             row = layout.row()
             props1 = row.operator("curve.dimension", text = 'Add Linear angle dimension')
             props1.Dimension_Change = False
index 3ddc20f..f1781ab 100644 (file)
@@ -110,15 +110,15 @@ class IcicleGenerator(bpy.types.Operator):
         layout = self.layout
         col = layout.column(align=True)
 
-        col.label("Radius:")
+        col.label(text="Radius:")
         col.prop(self, "minR")
         col.prop(self, "maxR")
 
-        col.label("Depth:")
+        col.label(text="Depth:")
         col.prop(self, "minD")
         col.prop(self, "maxD")
 
-        col.label("Base:")
+        col.label(text="Base:")
         col.prop(self, "verts")
         col.prop(self, "addCap", text="")
 
index 45d6dc5..12171b6 100644 (file)
@@ -1022,12 +1022,12 @@ class SCATree(bpy.types.Operator):
         col2 = columns.column()
 
         box = col1.box()
-        box.label("Generation Settings:")
+        box.label(text="Generation Settings:")
         box.prop(self, 'randomSeed')
         box.prop(self, 'maxIterations')
 
         box = col1.box()
-        box.label("Shape Settings:")
+        box.label(text="Shape Settings:")
         box.prop(self, 'numberOfEndpoints')
         box.prop(self, 'internodeLength')
         box.prop(self, 'influenceRange')
@@ -1037,10 +1037,10 @@ class SCATree(bpy.types.Operator):
         box.prop(self, 'tropism')
 
         newbox = col2.box()
-        newbox.label("Crown shape")
+        newbox.label(text="Crown shape")
         newbox.prop(self, 'useGroups')
         if self.useGroups:
-            newbox.label("Object groups defining crown shape")
+            newbox.label(text="Object groups defining crown shape")
             groupbox = newbox.box()
             groupbox.prop(self, 'crownGroup')
             groupbox = newbox.box()
@@ -1050,7 +1050,7 @@ class SCATree(bpy.types.Operator):
             groupbox.alert = (self.exclusionGroup == self.crownGroup)
             groupbox.prop(self, 'exclusionGroup')
         else:
-            newbox.label("Simple ellipsoid defining crown shape")
+            newbox.label(text="Simple ellipsoid defining crown shape")
             newbox.prop(self, 'crownSize')
             newbox.prop(self, 'crownShape')
             newbox.prop(self, 'crownOffset')
@@ -1064,7 +1064,7 @@ class SCATree(bpy.types.Operator):
         box.prop(self, 'newEndPointsPer1000')
 
         box = col2.box()
-        box.label("Skin options:")
+        box.label(text="Skin options:")
         box.prop(self, 'noModifiers')
         if not self.noModifiers:
             box.prop(self, 'skinMethod')
@@ -1073,7 +1073,7 @@ class SCATree(bpy.types.Operator):
         layout.prop(self, 'addLeaves', icon='MESH_DATA')
         if self.addLeaves:
             box = layout.box()
-            box.label("Leaf Settings:")
+            box.label(text="Leaf Settings:")
             box.prop(self, 'pLeaf')
             box.prop(self, 'bLeaf')
             box.prop(self, 'leafSize')
@@ -1085,7 +1085,7 @@ class SCATree(bpy.types.Operator):
         layout.prop(self, 'addObjects', icon='MESH_DATA')
         if self.addObjects:
             box = layout.box()
-            box.label("Object Settings:")
+            box.label(text="Object Settings:")
             box.prop(self, 'objectName')
             box.prop(self, 'pObject')
             box.prop(self, 'bObject')
@@ -1095,7 +1095,7 @@ class SCATree(bpy.types.Operator):
             box.prop(self, 'objectMaxConnections')
 
         box = layout.box()
-        box.label("Debug Settings:")
+        box.label(text="Debug Settings:")
         box.prop(self, 'showMarkers')
         if self.showMarkers:
             box.prop(self, 'markerScale')
index 37dd5ea..1efd5d5 100644 (file)
@@ -155,7 +155,7 @@ def render_cycles_scene_samples(self, context):
 
             for rl in scene.render.layers:
                 row = col.row(align=True)
-                row.label(rl.name, icon="BLANK1")
+                row.label(text=rl.name, icon="BLANK1")
                 row.prop(
                     rl, "samples", text="%s" %
                     "Samples" if rl.samples > 0 else "Automatic (%s)" %
@@ -186,7 +186,7 @@ def render_cycles_scene_samples(self, context):
                         if s.render.engine == "CYCLES":
                             cscene = s.cycles
 
-                            row.label(s.name, icon="BLANK1")
+                            row.label(text=s.name, icon="BLANK1")
                             row.prop(cscene, "aa_samples",
                                      text="AA Samples")
                         else:
index 954599e..cb28304 100644 (file)
@@ -1645,7 +1645,7 @@ class MotionTrailPanel(bpy.types.Panel):
             row.prop(context.window_manager.motion_trail, "path_display",
                 icon="RIGHTARROW", text="", emboss=False)
 
-        row.label("Path options")
+        row.label(text="Path options")
 
         if context.window_manager.motion_trail.path_display:
             col.prop(context.window_manager.motion_trail, "path_style",
index 34c81a2..ab4df77 100644 (file)
@@ -137,7 +137,7 @@ def RO_Menu(self, context):
             row.enabled = False
         row.operator("scene.co_duplicate_camera", icon="RENDER_STILL")
     else:
-        row.label("No active Camera type in the Scene", icon='INFO')
+        row.label(text="No active Camera type in the Scene", icon='INFO')
 
 
 class camera_overscan_props(PropertyGroup):
index 19912c0..66dfc2d 100644 (file)
@@ -111,8 +111,8 @@ class CMUMocapMotionBrowser(bpy.types.Panel):
         fps = motion['fps']
         ifps = fps // cml.frame_skip
         row = layout.row()
-        row.column().label("Original: {0:d} fps.".format(fps))
-        row.column().label("Importing: {0:d} fps.".format(ifps))
+        row.column().label(text="Original: {0:d} fps.".format(fps))
+        row.column().label(text="Importing: {0:d} fps.".format(ifps))
         layout.prop(cml, "frame_skip")
         layout.prop(cml, "cloud_scale")
         remote_fname = library.motion_url.format(sidx, midx)
index a4df45b..f4dd191 100644 (file)
@@ -36,7 +36,7 @@ class CurveTools2SelectedObjectHeader(bpy.types.Header):
 
         layout = self.layout
         row = layout.row()
-        row.label("Sel:", nrSelectedObjects)
+        row.label(text="Sel:", nrSelectedObjects)
 
 
 class CurveTools2SelectedObject(bpy.types.PropertyGroup):
index 117b82b..0ed7f08 100644 (file)
@@ -79,7 +79,7 @@ class Override(PropertyGroup):
     def draw_custom_props(self, context, layout):
         for prop in self.custom_properties:
             row = layout.row(align=True)
-            row.label(prop.name, icon='DOT')
+            row.label(text=prop.name, icon='DOT')
             row.prop(prop, '["{}"]'.format(escape_identifier("value")), text="")
 
         row = layout.row()
index e198e54..ff35e2b 100644 (file)
@@ -473,35 +473,35 @@ class Img_Importer(bpy.types.Panel):
             col = layout.column()
             split = col.split(align=True)
             if Message != "":
-                split.label("Message: " + Message)
+                split.label(text="Message: " + Message)
         else:
             col = layout.column()
             split = col.split(align=True)
-            split.label("Minimum Latitude: " + str(MINIMUM_LATITUDE) + " deg")
-            split.label("Maximum Latitude: " + str(MAXIMUM_LATITUDE) + " deg")
+            split.label(text="Minimum Latitude: " + str(MINIMUM_LATITUDE) + " deg")
+            split.label(text="Maximum Latitude: " + str(MAXIMUM_LATITUDE) + " deg")
 
             split = col.split(align=True)
-            split.label("Westernmost Longitude: " + str(WESTERNMOST_LONGITUDE) + " deg")
-            split.label("Easternmost Longitude: " + str(EASTERNMOST_LONGITUDE) + " deg")
+            split.label(text="Westernmost Longitude: " + str(WESTERNMOST_LONGITUDE) + " deg")
+            split.label(text="Easternmost Longitude: " + str(EASTERNMOST_LONGITUDE) + " deg")
 
             split = col.split(align=True)
-            split.label("Lines: " + str(LINES))
-            split.label("Line samples: " + str(LINE_SAMPLES))
+            split.label(text="Lines: " + str(LINES))
+            split.label(text="Line samples: " + str(LINE_SAMPLES))
 
             split = col.split(align=True)
-            split.label("Sample type: " + str(SAMPLE_TYPE))
-            split.label("Sample bits: " + str(SAMPLE_BITS))
+            split.label(text="Sample type: " + str(SAMPLE_TYPE))
+            split.label(text="Sample bits: " + str(SAMPLE_BITS))
 
             split = col.split(align=True)
-            split.label("Unit: " + UNIT)
-            split.label("Map resolution: " + str(MAP_RESOLUTION) + " pix/deg")
+            split.label(text="Unit: " + UNIT)
+            split.label(text="Map resolution: " + str(MAP_RESOLUTION) + " pix/deg")
 
             split = col.split(align=True)
-            split.label("Radius: " + str(OFFSET) + " " + RadiusUM)
-            split.label("Scale: " + str(SCALING_FACTOR))
+            split.label(text="Radius: " + str(OFFSET) + " " + RadiusUM)
+            split.label(text="Scale: " + str(SCALING_FACTOR))
 
             split = col.split(align=True)
-            split.label("Target: ")
+            split.label(text="Target: ")
             split.label(TARGET_NAME)
 
             col = layout.column()
@@ -511,7 +511,7 @@ class Img_Importer(bpy.types.Panel):
             if bpy.context.scene.FromLat < bpy.context.scene.ToLat:
                 col = layout.column()
                 split = col.split(align=True)
-                split.label("Warning: Northernmost must be greater than Southernmost")
+                split.label(text="Warning: Northernmost must be greater than Southernmost")
 
             col = layout.column()
             split = col.split(align=True)
@@ -520,7 +520,7 @@ class Img_Importer(bpy.types.Panel):
             if bpy.context.scene.FromLong > bpy.context.scene.ToLong:
                 col = layout.column()
                 split = col.split(align=True)
-                split.label("Warning: Easternmost must be greater than Westernmost")
+                split.label(text="Warning: Easternmost must be greater than Westernmost")
 
             col = layout.column()
             split = col.split(align=True)
@@ -534,7 +534,7 @@ class Img_Importer(bpy.types.Panel):
             if Message != "":
                 col = layout.column()
                 split = col.split(align=True)
-                split.label("Message: " + Message)
+                split.label(text="Message: " + Message)
 
             if bpy.context.scene.fpath.upper().endswith(("IMG", "LBL")):  # Check if is selected the correct file
                 VertNumbers = (((RealLat(bpy.context.scene.FromLat) - RealLat(bpy.context.scene.ToLat)) * MAP_RESOLUTION) + 1) * ((RealLong(bpy.context.scene.ToLong) - RealLong(bpy.context.scene.FromLong)) * MAP_RESOLUTION + 1)
@@ -543,7 +543,7 @@ class Img_Importer(bpy.types.Panel):
             #If I have 4 or plus vertex and at least 2 row and at least 2 point, I can import
             if VertNumbers > 3 and (RealLat(bpy.context.scene.FromLat) > RealLat(bpy.context.scene.ToLat)) and (RealLong(bpy.context.scene.FromLong) < RealLong(bpy.context.scene.ToLong)):  # If I have 4 or plus vertex I can import
                 split = col.split(align=True)
-                split.label("Map resolution on the equator: ")
+                split.label(text="Map resolution on the equator: ")
                 split.label(str(2 * math.pi * OFFSET / 360 / MAP_RESOLUTION) + " " + RadiusUM + "/pix")
                 col = layout.column()
                 split = col.split(align=True)
@@ -553,7 +553,7 @@ class Img_Importer(bpy.types.Panel):
                 split.label("Real Westernmost Long.: " + str(RealLong(bpy.context.scene.FromLong)) + " deg")
                 split.label("Real Easternmost Long.: " + str(RealLong(bpy.context.scene.ToLong)) + "deg")
                 split = col.split(align=True)
-                split.label("Numbers of vertex to be imported: " + str(int(VertNumbers)))
+                split.label(text="Numbers of vertex to be imported: " + str(int(VertNumbers)))
                 col.separator()
                 col.operator('import.lro_and_mgs', text='Import')
                 col.separator()
index 9342a0f..08dd221 100644 (file)
@@ -426,13 +426,13 @@ class LipSyncUI(bpy.types.Panel):
             if obj.type == "MESH":
                 split = col.split(align=True)
                 split.label(text="The active object is: ", icon="OBJECT_DATA")
-                split.label(obj.name, icon="EDITMODE_HLT")
+                split.label(text=obj.name, icon="EDITMODE_HLT")
 
             elif obj.type == "ARMATURE":  # bone needs to be selected
                 if obj.mode == "POSE":    # mode needs to be pose
                     split = col.split(align=True)
                     split.label(text="The active object is: ", icon="ARMATURE_DATA")
-                    split.label(obj.name, icon="EDITMODE_HLT")
+                    split.label(text=obj.name, icon="EDITMODE_HLT")
                 else:
                     col.label(text="You need to select Pose mode!", icon="OBJECT_DATA")
             else:
@@ -453,11 +453,11 @@ class LipSyncUI(bpy.types.Panel):
                 col.prop(scn.regMenuTypes, "fpath")
 
                 split = col.split(align=True)
-                split.label("Key Value :")
+                split.label(text="Key Value :")
                 split.prop(scn.regMenuTypes, "skscale")
 
                 split = col.split(align=True)
-                split.label("Frame Offset :")
+                split.label(text="Frame Offset :")
                 split.prop(scn.regMenuTypes, "offset")
 
                 split = col.split(align=True)
@@ -471,11 +471,11 @@ class LipSyncUI(bpy.types.Panel):
             elif scn.regMenuTypes.enumFileTypes == '1':
                 col.prop(scn.regMenuTypes, "fpath")
                 split = col.split(align=True)
-                split.label("Key Value :")
+                split.label(text="Key Value :")
                 split.prop(scn.regMenuTypes, "skscale")
 
                 split = col.split(align=True)
-                split.label("Frame Offset :")
+                split.label(text="Frame Offset :")
                 split.prop(scn.regMenuTypes, "offset")
 
                 col.operator('lipsync.go', text='Plot Keys to the Timeline')
@@ -488,11 +488,11 @@ class LipSyncUI(bpy.types.Panel):
             # specific panel
             if scn.regMenuTypes.enumBlinkTypes == '0':
                 split = col.split(align=True)
-                split.label("Key Value :")
+                split.label(text="Key Value :")
                 split.prop(scn.regMenuTypes, "skscale")
 
                 split = col.split(align=True)
-                split.label("Frame Offset :")
+                split.label(text="Frame Offset :")
                 split.prop(scn.regMenuTypes, "offset")
 
                 split = col.split(align=True)
@@ -506,11 +506,11 @@ class LipSyncUI(bpy.types.Panel):
             # Random panel
             elif scn.regMenuTypes.enumBlinkTypes == '1':
                 split = col.split(align=True)
-                split.label("Key Value :")
+                split.label(text="Key Value :")
                 split.prop(scn.regMenuTypes, "skscale")
 
                 split = col.split(align=True)
-                split.label("Frame Start :")
+                split.label(text="Frame Start :")
                 split.prop(scn.regMenuTypes, "offset")
 
                 split = col.split(align=True)
index 106c3d2..d7bd112 100644 (file)
@@ -278,7 +278,7 @@ class ExportXmodel(bpy.types.Operator, ExportHelper):
             sub.prop(self, "use_vertex_colors_alpha")
 
         col = layout.column(align=True)
-        col.label("Advanced:")
+        col.label(text="Advanced:")
 
         col = layout.column(align=True)
         col.prop(self, "use_vertex_cleanup")
@@ -414,7 +414,7 @@ class ExportXanim(bpy.types.Operator, ExportHelper):
             icon = 'ERROR'
 
         col = layout.column(align=True)
-        col.label("Armature: %s" % armature_info, icon)
+        col.label(text="Armature: %s" % armature_info, icon)
 
         col = layout.column(align=True)
         col.prop(self, "use_selection", "Selection only (%i bones)" % bones_selected)
index f709f08..50e8a59 100644 (file)
@@ -142,10 +142,10 @@ class FpxUI:
 
 def NotImplemented(layout):
     box = layout.box()
-    box.label(fpx_str['LABEL_NAME_NOT_IMPLEMENTED'], icon='ERROR')
+    box.label(text=fpx_str['LABEL_NAME_NOT_IMPLEMENTED'], icon='ERROR')
     flow = box.column_flow()
-    flow.label(fpx_str['LABEL_NAME_NOT_IMPLEMENTED_1'])
-    flow.label(fpx_str['LABEL_NAME_NOT_IMPLEMENTED_2'])
+    flow.label(text=fpx_str['LABEL_NAME_NOT_IMPLEMENTED_1'])
+    flow.label(text=fpx_str['LABEL_NAME_NOT_IMPLEMENTED_2'])
 
 ###############################################################################
 class FptEmptyItemProperties(PropertyGroup):
@@ -355,7 +355,7 @@ class FpmImportOperator(Operator, ImportHelper):
         layout = self.layout
 
         box = layout.box()
-        box.label(fpx_str['LABEL_NAME_OPTIONS'], icon=FpxUI.ICON_OPTIONS)
+        box.label(text=fpx_str['LABEL_NAME_OPTIONS'], icon=FpxUI.ICON_OPTIONS)
         flow = box.column_flow()
         flow.prop(self, 'verbose', icon='SPEAKER')
         flow = box.column_flow()
@@ -409,7 +409,7 @@ class FpmImportOperator(Operator, ImportHelper):
     @staticmethod
     def draw_model_options(cls, layout):
         box = layout.box()
-        box.label(fpx_str['LABEL_NAME_MODEL_OPTIONS'], icon=FpxUI.ICON_MODEL)
+        box.label(text=fpx_str['LABEL_NAME_MODEL_OPTIONS'], icon=FpxUI.ICON_MODEL)
         if FpxUI.USE_MODEL_FILTER_COLLISION in cls.use_model_filter:
             NotImplemented(box)
         flow = box.column_flow()
@@ -568,7 +568,7 @@ class FplImportOperator(Operator, ImportHelper):
         layout = self.layout
 
         box = layout.box()
-        box.label(fpx_str['LABEL_NAME_OPTIONS'], icon=FpxUI.ICON_OPTIONS)
+        box.label(text=fpx_str['LABEL_NAME_OPTIONS'], icon=FpxUI.ICON_OPTIONS)
         flow = box.column_flow()
         flow.prop(self, 'verbose', icon='SPEAKER')
         flow = box.column_flow()
@@ -620,7 +620,7 @@ class FplImportOperator(Operator, ImportHelper):
     @staticmethod
     def draw_library_options(cls, layout):
         box = layout.box()
-        box.label(fpx_str['LABEL_NAME_LIBRARYL_OPTIONS'], icon='IMPORT')
+        box.label(text=fpx_str['LABEL_NAME_LIBRARYL_OPTIONS'], icon='IMPORT')
         if FpxUI.USE_LIBRARY_FILTER_DMDFONT in cls.use_library_filter \
                 or FpxUI.USE_LIBRARY_FILTER_SOUND in cls.use_library_filter \
                 or FpxUI.USE_LIBRARY_FILTER_MUSIC in cls.use_library_filter \
@@ -853,20 +853,20 @@ class FptImportOperator(Operator, ImportHelper):
         layout = self.layout
 
         box = layout.box()
-        box.label(fpx_str['LABEL_NAME_OPTIONS'], icon=FpxUI.ICON_OPTIONS)
+        box.label(text=fpx_str['LABEL_NAME_OPTIONS'], icon=FpxUI.ICON_OPTIONS)
         flow = box.column_flow()
         flow.prop(self, 'verbose', icon='SPEAKER')
         flow = box.column_flow()
         flow.prop(self, 'keep_temp', icon='GHOST')
 
-        box.label(fpx_str['LABEL_NAME_EXTERNAL_DATA'], icon=FpxUI.ICON_EXTERNAL_DATA)
+        box.label(text=fpx_str['LABEL_NAME_EXTERNAL_DATA'], icon=FpxUI.ICON_EXTERNAL_DATA)
         flow = box.column_flow()
         flow.prop(self, 'path_libraries', icon='FILEBROWSER', text="")
         flow.prop(self, 'path_dmdfonts', icon='IMASEL', text="")
         flow.prop(self, 'path_tables', icon='FILE_FOLDER', text="")
 
         box = layout.box()
-        box.label(fpx_str['LABEL_NAME_TABLE_OPTIONS'], icon=FpxUI.ICON_MODEL)
+        box.label(text=fpx_str['LABEL_NAME_TABLE_OPTIONS'], icon=FpxUI.ICON_MODEL)
         #if self.convert_to_mesh:
         #    NotImplemented(box)
         flow = box.column_flow()
index 5cac89f..bd615c6 100644 (file)
@@ -551,7 +551,7 @@ class SUNGEO_PT_lamp_settings(Panel):
 
         cl = context.lamp
         if not (cl and cl.type == 'SUN'):
-            layout.label("Sun lamp is not active", icon="INFO")
+            layout.label(text="Sun lamp is not active", icon="INFO")
             return
 
         geosunproperties = cl.GeoSunProperties
index 1c4600b..b97f4bc 100644 (file)
@@ -508,7 +508,7 @@ class hdri_map(bpy.types.Panel):
             row = layout.row()
             box = layout.box()
             row = box.row()
-            row.label("Light sources")
+            row.label(text="Light sources")
             row = box.row()
             row.prop(scene, "light_strength")
             row.prop(scene, "main_light_strength")
index b6b8923..b2c8517 100644 (file)
@@ -179,7 +179,7 @@ class NODE_MT_template_add(Menu):
 
         dirpath = node_search_path(context)
         if dirpath == "":
-            layout.label("Set search dir in the addon-prefs")
+            layout.label(text="Set search dir in the addon-prefs")
             return
 
         for filepath, group_name in node_template_cache(context):
index 701f628..df9afeb 100644 (file)
@@ -76,7 +76,7 @@ class NP020BasePanel(bpy.types.Panel):
 
         row = self.layout.row(True)
         col = row.column(True)
-        col.label(" Create:",icon = "MESH_CUBE")
+        col.label(text=" Create:",icon = "MESH_CUBE")
         col.separator()
         col.operator('object.np_020_float_poly', icon='MESH_DATA', text='float_poly')
         col.operator('object.np_020_float_rectangle', icon='MESH_PLANE', text='float_rectangle')
@@ -85,7 +85,7 @@ class NP020BasePanel(bpy.types.Panel):
         self.layout.separator()
         row = self.layout.row(True)
         col = row.column(True)
-        col.label(" Modify:",icon = "MODIFIER")
+        col.label(text=" Modify:",icon = "MODIFIER")
         col.separator()
         col.operator('object.np_020_point_move', icon='MAN_TRANS', text='point_move')
         col.operator('object.np_020_point_copy', icon='ROTACTIVE', text='point_copy')
@@ -99,7 +99,7 @@ class NP020BasePanel(bpy.types.Panel):
         self.layout.separator()
         row = self.layout.row(True)
         col = row.column(True)
-        col.label(" Transfer:",icon = 'BRUSH_DATA')
+        col.label(text=" Transfer:",icon = 'BRUSH_DATA')
         col.separator()
         col.operator('object.np_020_shader_brush', icon='MOD_DYNAMICPAINT', text='shader_brush')
 
@@ -107,7 +107,7 @@ class NP020BasePanel(bpy.types.Panel):
         self.layout.separator()
         row = self.layout.row(True)
         col = row.column(True)
-        col.label(" Measure:",icon = "ALIGN")
+        col.label(text=" Measure:",icon = "ALIGN")
         col.separator()
         col.operator('object.np_020_point_distance', icon='ARROW_LEFTRIGHT', text='point_distance')
 
index 9c9078a..2851f31 100644 (file)
@@ -119,7 +119,7 @@ class rule_draw:
 
     @staticmethod
     def _generic_match_name(layout, rule):
-        layout.label("Match Name:")
+        layout.label(text="Match Name:")
         row = layout.row(align=True)
         row.prop(rule, "match_name", text="")
         row.prop(rule, "use_match_regex", text="", icon='SORTALPHA')
@@ -153,7 +153,7 @@ class rule_draw:
     @staticmethod
     def EXPR(layout, rule):
         col = layout.column()
-        col.label("Scripted Expression:")
+        col.label(text="Scripted Expression:")
         col.prop(rule, "match_expr", text="")
 
 
index db632ca..77b4cf1 100644 (file)
@@ -917,13 +917,13 @@ class HairNetPanel(bpy.types.Panel):
         if not self.headObj.hnIsEmitter:
             box = layout.box()
             row = box.row()
-            row.label("Hair Object:")
-            row.label("Master Hair System:")
+            row.label(text="Hair Object:")
+            row.label(text="Master Hair System:")
             for thisHairObject in self.hairObjList:
                 row = box.row()
                 row.prop_search(thisHairObject, 'hnMasterHairSystem',  bpy.data, "particles", text = thisHairObject.name)
                 row = box.row()
-                row.label("Guide Subdivisions:")
+                row.label(text="Guide Subdivisions:")
                 row.prop(thisHairObject, 'hnSproutHairs', text = "Subdivide U")
 #                 row.prop(thisHairObject, 'hnSubdivideHairSections', text = "Subdivide V")
 
@@ -937,14 +937,14 @@ class HairNetPanel(bpy.types.Panel):
 
 
                 row = box.row()
-                row.label("Master Hair System")
+                row.label(text="Master Hair System")
                 row = box.row()
                 row.prop_search(self.headObj, 'hnMasterHairSystem',  bpy.data, "particles", text = self.headObj.name)
 
             except:
                 pass
             row = box.row()
-            row.label("Guide Subdivisions:")
+            row.label(text="Guide Subdivisions:")
             row.prop(self.headObj, 'hnSproutHairs', text = "Subdivide U")
 
         row = layout.row()
index 8034dd9..2e81451 100644 (file)
@@ -127,7 +127,7 @@ class OscEPc2ExporterPanel(View3DMCPanel, Panel):
         row.prop(scene, "pc_pc2_folder", text="Folder")
         row.operator("buttons.set_meshcache_folder", icon='FILEBROWSER', text="Select Folder Path")
         row = layout.box().column(align=1)
-        row.label("EXPORTER:")
+        row.label(text="EXPORTER:")
         row.operator("group.linked_group_to_local", text="Linked To Local", icon="LINKED")
         row.operator("object.remove_subsurf_modifier", text="Remove Gen Modifiers", icon="MOD_SUBSURF")
         row.prop(scene.mesh_cache_tools_settings, "array", text="Array")
@@ -155,11 +155,11 @@ class OscEPc2ExporterPanel(View3DMCPanel, Panel):
         row.operator("export_shape.pc2_selection", text="Export!", icon="POSE_DATA")
         row.prop(scene, "pc_pc2_world_space", text="World Space")
         row = layout.box().column(align=1)
-        row.label("IMPORTER:")
+        row.label(text="IMPORTER:")
         row.operator("import_shape.pc2_selection", text="Import", icon="POSE_DATA")
         row.operator("object.modifier_mesh_cache_up", text="MC Top", icon="TRIA_UP")
         row = layout.box().column(align=1)
-        row.label("PROXY AUTO LOAD:")
+        row.label(text="PROXY AUTO LOAD:")
         row.operator("scene.pc_auto_load_proxy_create", text="Create List", icon="GROUP")
         row.operator("scene.pc_auto_load_proxy_remove", text="Remove List", icon="X")
 
index 5b9a10a..d5e508b 100644 (file)
@@ -256,8 +256,8 @@ class RENDER_PT_print(Panel):
         row5.prop(ps, "height_px")
 
         col.separator()
-        row6.label("Inch Width: %.2f" % (ps.width_cm / 2.54))
-        row6.label("Inch Height: %.2f" % (ps.height_cm / 2.54))
+        row6.label(text="Inch Width: %.2f" % (ps.width_cm / 2.54))
+        row6.label(text="Inch Height: %.2f" % (ps.height_cm / 2.54))
         col.separator()
 
         row7.operator("render.apply_size", icon="RENDER_STILL")
index 3ddf362..1b1d5b1 100644 (file)
@@ -1046,7 +1046,7 @@ class AlignUi(Panel):
             row = layout.row()
             row.label(text="Active object is: ", icon='OBJECT_DATA')
             box = layout.box()
-            box.label(obj.name, icon='EDITMODE_HLT')
+            box.label(text=obj.name, icon='EDITMODE_HLT')
 
         col = layout.column()
         col.label(text="Align Loc + Rot:", icon='MANIPUL')
index 31e55ed..734443e 100644 (file)
@@ -229,7 +229,7 @@ class VIEW3D_PT_cursor_history(Panel):
         cc = context.scene.cursor_history
 
         row = layout.row()
-        row.label("Navigation: ")
+        row.label(text="Navigation: ")
 
         GUI.drawIconButton_poll(
                 cc.historyPosition[0] > 0, row, 'PLAY_REVERSE',
index c679bea..1c781b4 100644 (file)
@@ -2123,15 +2123,15 @@ class Shortcuts_Pref(AddonPreferences):
             row = layout.row()
             col = row.column()
 
-            col.label("Hotkey List:")
-            col.label("Shift + left mouse - Intuitive Scale")
-            col.label("G + mouse move to translate the projection plane")
-            col.label("R + mouse move to rotate the projection plane")
-            col.label("Ctrl + S + mouse move to scale the projection plane")
-            col.label("U + mouse move to scale the projection plane UV")
-            col.label("Y + mouse move to offset the projection plane UV")
-            col.label("C - clear all")
-            col.label("Q - toggle alpha of the projection plane")
+            col.label(text="Hotkey List:")
+            col.label(text="Shift + left mouse - Intuitive Scale")
+            col.label(text="G + mouse move to translate the projection plane")
+            col.label(text="R + mouse move to rotate the projection plane")
+            col.label(text="Ctrl + S + mouse move to scale the projection plane")
+            col.label(text="U + mouse move to scale the projection plane UV")
+            col.label(text="Y + mouse move to offset the projection plane UV")
+            col.label(text="C - clear all")
+            col.label(text="Q - toggle alpha of the projection plane")
 
 
 @persistent
index cd5f22e..1da4bda 100644 (file)
@@ -808,20 +808,20 @@ class PANEL(bpy.types.Panel):
                 if scn.importexport:
                     split = box.split(percentage=0.5)
                     col = split.column()
-                    col.label("Import Directory or File")
+                    col.label(text="Import Directory or File")
                     col.prop(scn, 'gllightpreset_importfile')
                     col.prop(scn, 'gllightpreset_importdirectory')
-                    col.label("Export Directory or File")
+                    col.label(text="Export Directory or File")
                     col.prop(scn, 'gllightpreset_exportfile')
                     col.prop(scn, 'gllightpreset_exportdirectory')
 
                     split = split.split()
                     col = split.column()
 
-                    col.label("")
+                    col.label(text="")
                     col.operator("gllightpreset.action", icon="IMPORT", text="Import File").button="import"
                     col.operator("gllightpreset.action", icon="IMPORT", text="Import All").button="importall"
-                    col.label("")
+                    col.label(text="")
                     col.operator("gllightpreset.action", icon="EXPORT", text="Export Selection").button="export"
                     col.operator("gllightpreset.action", icon="EXPORT", text="Export All").button="exportall"
 
index 383ba24..464a7be 100644 (file)
@@ -911,26 +911,26 @@ class SunPos_HdrHelp(bpy.types.Operator):
         return wm.invoke_popup(self, width=400, height=200)
 
     def draw(self, context):
-        self.layout.label("Available commands:")
+        self.layout.label(text="Available commands:")
 
         row = self.layout.row()
         split = row.split(percentage=.26)
         colL = split.column()
         colR = split.column()
-        colL.label("Esc or Right Mouse ")
+        colL.label(text="Esc or Right Mouse ")
         colR.label("Close map or text.")
-        colL.label("Left Mouse")
-        colR.label("Move crosshair.")
-        colL.label("G or MiddleMouse")
+        colL.label(text="Left Mouse")
+        colR.label(text="Move crosshair.")
+        colL.label(text="G or MiddleMouse")
         colR.label("Pan mode. Grab and move map or text.")
-        colL.label("Ctrl Middlemouse")
-        colR.label("Mouse zoom to point.")
+        colL.label(text="Ctrl Middlemouse")
+        colR.label(text="Mouse zoom to point.")
         self.layout.label("--- The following are changed by moving " +
                           "the mouse or using the scroll wheel.")
-        self.layout.label("--- Use Ctrl for coarse increments or Alt for fine.")
+        self.layout.label(text="--- Use Ctrl for coarse increments or Alt for fine.")
         row = self.layout.row()
         split = row.split(percentage=.25)
         colL = split.column()
         colR = split.column()
-        colL.label("Scroll wheel")
-        colR.label("Zoom to point.")
+        colL.label(text="Scroll wheel")
+        colR.label(text="Zoom to point.")
index 5669aea..c74f413 100644 (file)
@@ -1237,46 +1237,46 @@ class SunPos_Help(bpy.types.Operator):
         return wm.invoke_popup(self, width=400, height=200)
 
     def draw(self, context):
-        self.layout.label("Available map commands:")
+        self.layout.label(text="Available map commands:")
 
         row = self.layout.row()
         split = row.split(percentage=.27)
         colL = split.column()
         colR = split.column()
-        colL.label("Esc or Right Mouse ")
+        colL.label(text="Esc or Right Mouse ")
         colR.label("Close map or text.")
-        colL.label("Left Mouse")
-        colR.label("Move crosshair.")
-        colL.label("G or MiddleMouse")
+        colL.label(text="Left Mouse")
+        colR.label(text="Move crosshair.")
+        colL.label(text="G or MiddleMouse")
         colR.label("Pan mode. Grab and move map or text.")
-        colL.label("Ctrl Middlemouse")
-        colR.label("Mouse zoom to point.")
-        colL.label("C")
+        colL.label(text="Ctrl Middlemouse")
+        colR.label(text="Mouse zoom to point.")
+        colL.label(text="C")
         colR.label("Invert text color.")
-        colL.label("R")
-        colR.label("Toggle through thickness of the radiating rise/set lines.")
-        colL.label("S")
-        colR.label("Show statistics data. Move with pan command.")
+        colL.label(text="R")
+        colR.label(text="Toggle through thickness of the radiating rise/set lines.")
+        colL.label(text="S")
+        colR.label(text="Show statistics data. Move with pan command.")
         self.layout.label("----- The following are changed by moving " +
                           "the mouse or using the scroll wheel.")
-        self.layout.label("----- Use Ctrl for coarse increments or Alt for fine.")
+        self.layout.label(text="----- Use Ctrl for coarse increments or Alt for fine.")
         row = self.layout.row()
         split = row.split(percentage=.25)
         colL = split.column()
         colR = split.column()
-        colL.label("Scroll wheel")
-        colR.label("Zoom to point.")
-        colL.label("T")
-        colR.label("Time mode.")
-        colL.label("D")
-        colR.label("Day mode.")
-        colL.label("O")
-        colR.label("Change map opacity.")
-        colL.label("X")
-        colR.label("Lock latitude and change longitude.")
-        colL.label("Y")
-        colR.label("Lock longitude and change latitude.")
-        colL.label("A")
-        colR.label("Show analemma if object group is set.")
-        colL.label("E")
-        colR.label("Show ecliptic if object group is set.")
+        colL.label(text="Scroll wheel")
+        colR.label(text="Zoom to point.")
+        colL.label(text="T")
+        colR.label(text="Time mode.")
+        colL.label(text="D")
+        colR.label(text="Day mode.")
+        colL.label(text="O")
+        colR.label(text="Change map opacity.")
+        colL.label(text="X")
+        colR.label(text="Lock latitude and change longitude.")
+        colL.label(text="Y")
+        colR.label(text="Lock longitude and change latitude.")
+        colL.label(text="A")
+        colR.label(text="Show analemma if object group is set.")
+        colL.label(text="E")
+        colR.label(text="Show ecliptic if object group is set.")
index be379bc..68feff1 100644 (file)
@@ -86,7 +86,7 @@ def menu_func(self, context):
     tip, url = find_random_tip()
     tip = tip.split("\\n")
     row = layout.row()
-    row.label("Tip: " + tip[0])
+    row.label(text="Tip: " + tip[0])
     if url:
         row.operator("wm.url_open", text="", icon='URL').url = url_prefix + url
     for tip_line in tip[1:]: