From 49c1b409286937d00a63fbf4cfb1f820a75a80c0 Mon Sep 17 00:00:00 2001 From: NBurn <7nburn@gmail.com> Date: Wed, 23 Jan 2019 15:03:09 -0500 Subject: [PATCH] addons: add missing text= keyword after label --- add_advanced_objects_menu/copy2.py | 6 ++-- add_advanced_objects_menu/cubester.py | 20 ++++++------ add_advanced_objects_menu/rope_alpha.py | 8 ++--- add_advanced_objects_menu/trilighting.py | 10 +++--- add_advanced_objects_panels/__init__.py | 28 ++++++++-------- .../delaunay_voronoi.py | 2 +- add_advanced_objects_panels/drop_to_ground.py | 32 +++++++++---------- .../object_laplace_lightning.py | 2 +- .../oscurart_constellation.py | 2 +- .../unfold_transition.py | 2 +- add_curve_extra_objects/__init__.py | 2 +- add_curve_extra_objects/beveltaper_curve.py | 2 +- add_mesh_extra_objects/add_mesh_round_cube.py | 10 +++--- add_mesh_extra_objects/add_mesh_vertex.py | 4 +-- .../geodesic_domes/third_domes_panel_271.py | 18 +++++------ .../mesh_discombobulator.py | 22 ++++++------- animation_animall.py | 10 +++--- ant_landscape/ant_functions.py | 2 +- archimesh/achm_books_maker.py | 8 ++--- archimesh/achm_column_maker.py | 6 ++-- archimesh/achm_curtain_maker.py | 8 ++--- archimesh/achm_door_maker.py | 6 ++-- archimesh/achm_kitchen_maker.py | 6 ++-- archimesh/achm_lamp_maker.py | 8 ++--- archimesh/achm_main_panel.py | 12 +++---- archimesh/achm_roof_maker.py | 4 +-- archimesh/achm_room_maker.py | 4 +-- archimesh/achm_shelves_maker.py | 6 ++-- archimesh/achm_stairs_maker.py | 4 +-- archimesh/achm_venetian_maker.py | 6 ++-- archimesh/achm_window_maker.py | 8 ++--- archimesh/achm_window_panel.py | 6 ++-- btrace/__init__.py | 2 +- btrace/bTrace_props.py | 12 +++---- camera_turnaround.py | 10 +++--- development_iskeyfree.py | 4 +-- io_convert_image_to_mesh_img/mesh/dtm.py | 2 +- .../ui/terrainpanel.py | 6 ++-- io_export_after_effects.py | 6 ++-- io_export_paper_model.py | 4 +-- io_import_gimp_image_to_scene.py | 6 ++-- io_online_sketchfab/__init__.py | 6 ++-- io_scene_ms3d/ms3d_ui.py | 8 ++--- lighting_dynamic_sky.py | 8 ++--- materials_library_vx/__init__.py | 2 +- materials_utils/__init__.py | 22 ++++++------- measureit/measureit_main.py | 2 +- mesh_auto_mirror.py | 2 +- mesh_carver.py | 32 +++++++++---------- mesh_extra_tools/face_inset_fillet.py | 2 +- mesh_extra_tools/mesh_cut_faces.py | 4 +-- mesh_extra_tools/mesh_edges_length.py | 8 ++--- mesh_extra_tools/mesh_edgetools.py | 10 +++--- mesh_extra_tools/mesh_filletplus.py | 6 ++-- mesh_extra_tools/mesh_pen_tool.py | 4 +-- .../mesh_select_tools/mesh_index_select.py | 4 +-- .../mesh_select_tools/mesh_info_select.py | 4 +-- mesh_extra_tools/pkhg_faces.py | 2 +- mesh_extra_tools/split_solidify.py | 8 ++--- mesh_extra_tools/vertex_align.py | 4 +-- mesh_inset/__init__.py | 2 +- mocap/__init__.py | 24 +++++++------- object_fracture_cell/__init__.py | 16 +++++----- object_fracture_crack/operator.py | 6 ++-- object_skinify.py | 4 +-- paint_palette.py | 4 +-- render_povray/__init__.py | 6 ++-- render_povray/nodes.py | 6 ++-- render_povray/ui.py | 2 +- sequencer_kinoraw_tools/proxy_tools.py | 8 ++--- sequencer_kinoraw_tools/random_editor.py | 2 +- sequencer_kinoraw_tools/recursive_loader.py | 4 +-- sequencer_kinoraw_tools/ui.py | 8 ++--- space_view3d_brush_menus/brush_menu.py | 16 +++++----- space_view3d_brush_menus/curve_menu.py | 4 +-- space_view3d_brush_menus/dyntopo_menu.py | 6 ++-- space_view3d_brush_menus/stroke_menu.py | 6 ++-- space_view3d_brush_menus/texture_menu.py | 16 +++++----- space_view3d_display_tools/__init__.py | 12 +++---- space_view3d_stored_views/ui.py | 4 +-- 80 files changed, 310 insertions(+), 310 deletions(-) diff --git a/add_advanced_objects_menu/copy2.py b/add_advanced_objects_menu/copy2.py index 9806ad0d0..14dd312fb 100644 --- a/add_advanced_objects_menu/copy2.py +++ b/add_advanced_objects_menu/copy2.py @@ -110,11 +110,11 @@ class Copy2(Operator): layout = self.layout layout.prop(self, "copyfromobject") - layout.label("to:") + layout.label(text="to:") layout.prop(self, "copytype", expand=True) - layout.label("Primary axis:") + layout.label(text="Primary axis:") layout.prop(self, "priaxes", expand=True) - layout.label("Secondary axis:") + layout.label(text="Secondary axis:") layout.prop(self, "secaxes", expand=True) if self.copytype == "E": layout.prop(self, "edgescale") diff --git a/add_advanced_objects_menu/cubester.py b/add_advanced_objects_menu/cubester.py index f93adbb85..0b75285a9 100644 --- a/add_advanced_objects_menu/cubester.py +++ b/add_advanced_objects_menu/cubester.py @@ -723,7 +723,7 @@ class CubeSterPanel(Panel): if adv_obj.cubester_audio_image == "image": box = layout.box() box.prop(adv_obj, "cubester_load_type") - box.label("Image To Convert:") + box.label(text="Image To Convert:") box.prop_search(adv_obj, "cubester_image", bpy.data, "images") box.prop(adv_obj, "cubester_load_image") @@ -806,7 +806,7 @@ class CubeSterPanel(Panel): box.prop(adv_obj, "cubester_use_image_color", icon="COLOR") if not adv_obj.cubester_use_image_color or adv_obj.cubester_audio_image == "audio": - box.label("Image To Use For Colors:") + box.label(text="Image To Use For Colors:") box.prop_search(adv_obj, "cubester_color_image", bpy.data, "images") box.prop(adv_obj, "cubester_load_color_image") @@ -819,11 +819,11 @@ class CubeSterPanel(Panel): box = layout.box() if adv_obj.cubester_mesh_style == "blocks": - box.label("Approximate Cube Count: " + str(rows * columns)) - box.label("Expected Verts/Faces: " + str(rows * columns * 8) + " / " + str(rows * columns * 6)) + box.label(text="Approximate Cube Count: " + str(rows * columns)) + box.label(text="Expected Verts/Faces: " + str(rows * columns * 8) + " / " + str(rows * columns * 6)) else: - box.label("Approximate Point Count: " + str(rows * columns)) - box.label("Expected Verts/Faces: " + str(rows * columns) + " / " + str(rows * (columns - 1))) + box.label(text="Approximate Point Count: " + str(rows * columns)) + box.label(text="Expected Verts/Faces: " + str(rows * columns) + " / " + str(rows * (columns - 1))) # blocks and plane generation time values if adv_obj.cubester_mesh_style == "blocks": @@ -844,10 +844,10 @@ class CubeSterPanel(Panel): time = (points * slope) + intercept + (points * block_infl) + \ (images_found / adv_obj.cubester_skip_images * frame_infl) + intercept2 - box.label("Images To Be Used: " + str(int(images_found / adv_obj.cubester_skip_images))) + box.label(text="Images To Be Used: " + str(int(images_found / adv_obj.cubester_skip_images))) else: # audio based mesh - box.label("Audio Track Length: " + str(adv_obj.cubester_audio_file_length) + " frames") + box.label(text="Audio Track Length: " + str(adv_obj.cubester_audio_file_length) + " frames") block_infl, frame_infl, intercept = 0.0948, 0.0687566, -25.85985 time = (points * block_infl) + (adv_obj.cubester_audio_file_length * frame_infl) + intercept @@ -860,7 +860,7 @@ class CubeSterPanel(Panel): time_mod = "min" time = round(time, 3) - box.label("Expected Time: " + str(time) + " " + time_mod) + box.label(text="Expected Time: " + str(time) + " " + time_mod) # advanced if adv_obj.cubester_audio_image == "image": @@ -873,7 +873,7 @@ class CubeSterPanel(Panel): box.prop(adv_obj, "cubester_random_weights", icon="RNDCURVE") if not adv_obj.cubester_random_weights: - box.label("RGBA Channel Weights", icon="COLOR") + box.label(text="RGBA Channel Weights", icon="COLOR") col = box.column(align=True) col.prop(adv_obj, "cubester_weight_r") col.prop(adv_obj, "cubester_weight_g") diff --git a/add_advanced_objects_menu/rope_alpha.py b/add_advanced_objects_menu/rope_alpha.py index b7d6d8dde..a73792828 100644 --- a/add_advanced_objects_menu/rope_alpha.py +++ b/add_advanced_objects_menu/rope_alpha.py @@ -483,13 +483,13 @@ class ClothRope(Operator): box = layout.box() col = box.column(align=True) - col.label("Rope settings:") + col.label(text="Rope settings:") rowsub0 = col.row() rowsub0.prop(self, "ropelength", text="Length") rowsub0.prop(self, "ropesegments", text="Segments") rowsub0.prop(self, "radiusrope", text="Radius") - col.label("Quality Settings:") + col.label(text="Quality Settings:") col.prop(self, "resrope", text="Resolution curve") col.prop(self, "qcr", text="Quality Collision") col.prop(self, "substeps", text="Substeps") @@ -795,7 +795,7 @@ class BallRope(Operator): box = layout.box() col = box.column(align=True) - col.label("Rope settings:") + col.label(text="Rope settings:") rowsub0 = col.row() rowsub0.prop(self, "hidecubes", text="Hide Link Cubes") @@ -811,7 +811,7 @@ class BallRope(Operator): rowsub3.prop(self, "grados", text="Degrees") rowsub3.prop(self, "separacion", text="Separation Link Cubes") - col.label("Quality Settings:") + col.label(text="Quality Settings:") col.prop(self, "resrope", text="Resolution Rope") col.prop(self, "massball", text="Ball Mass") col.prop(self, "worldsteps", text="World Steps") diff --git a/add_advanced_objects_menu/trilighting.py b/add_advanced_objects_menu/trilighting.py index e14ec0e1e..000df5a74 100644 --- a/add_advanced_objects_menu/trilighting.py +++ b/add_advanced_objects_menu/trilighting.py @@ -89,26 +89,26 @@ class TriLighting(Operator): def draw(self, context): layout = self.layout - layout.label("Position:") + layout.label(text="Position:") col = layout.column(align=True) col.prop(self, "height") col.prop(self, "distance") - layout.label("Light:") + layout.label(text="Light:") col = layout.column(align=True) col.prop(self, "energy") col.prop(self, "contrast") - layout.label("Orientation:") + layout.label(text="Orientation:") col = layout.column(align=True) col.prop(self, "leftangle") col.prop(self, "rightangle") col.prop(self, "backangle") col = layout.column() - col.label("Key Light Type:") + col.label(text="Key Light Type:") col.prop(self, "primarytype", text="") - col.label("Fill + Back Type:") + col.label(text="Fill + Back Type:") col.prop(self, "secondarytype", text="") def execute(self, context): diff --git a/add_advanced_objects_panels/__init__.py b/add_advanced_objects_panels/__init__.py index 9cc2e6fc0..9e2cb0304 100644 --- a/add_advanced_objects_panels/__init__.py +++ b/add_advanced_objects_panels/__init__.py @@ -166,11 +166,11 @@ class AdvancedObjPreferences1(AddonPreferences): sub_box = row.box() sub_box.prop(self, "enable_all", emboss=False, icon="VISIBLE_IPO_ON", icon_only=True) - row.label("Enable All") + row.label(text="Enable All") row = split.row() row.alignment = "RIGHT" - row.label("Disable All") + row.label(text="Disable All") sub_box = row.box() sub_box.prop(self, "disable_all", emboss=False, icon="VISIBLE_IPO_OFF", icon_only=True) @@ -191,36 +191,36 @@ class AdvancedObjPreferences1(AddonPreferences): op = sub.operator('wm.context_toggle', text='', icon=icon, emboss=False) op.data_path = 'addon_prefs.show_expanded_' + mod_name - sub.label('{}: {}'.format(info['category'], info['name'])) + sub.label(text='{}: {}'.format(info['category'], info['name'])) sub = row.row() sub.alignment = 'RIGHT' if info.get('warning'): - sub.label('', icon='ERROR') + sub.label(text='', icon='ERROR') sub.prop(self, 'use_' + mod_name, text='') # The second stage if expand: if info.get('description'): split = col.row().split(percentage=0.15) - split.label('Description:') - split.label(info['description']) + split.label(text='Description:') + split.label(text=info['description']) if info.get('location'): split = col.row().split(percentage=0.15) - split.label('Location:') - split.label(info['location']) + split.label(text='Location:') + split.label(text=info['location']) if info.get('author'): split = col.row().split(percentage=0.15) - split.label('Author:') - split.label(info['author']) + split.label(text='Author:') + split.label(text=info['author']) if info.get('version'): split = col.row().split(percentage=0.15) - split.label('Version:') - split.label('.'.join(str(x) for x in info['version']), + split.label(text='Version:') + split.label(text='.'.join(str(x) for x in info['version']), translate=False) if info.get('warning'): split = col.row().split(percentage=0.15) - split.label('Warning:') - split.label(' ' + info['warning'], icon='ERROR') + split.label(text='Warning:') + split.label(text=' ' + info['warning'], icon='ERROR') tot_row = int(bool(info.get('wiki_url'))) if tot_row: diff --git a/add_advanced_objects_panels/delaunay_voronoi.py b/add_advanced_objects_panels/delaunay_voronoi.py index 4494b5d54..67169ff62 100644 --- a/add_advanced_objects_panels/delaunay_voronoi.py +++ b/add_advanced_objects_panels/delaunay_voronoi.py @@ -110,7 +110,7 @@ class ToolsPanelDelaunay(Panel): box = layout.box() col = box.column(align=True) - col.label("Point Cloud:") + col.label(text="Point Cloud:") col.operator("delaunay.triangulation") col.operator("voronoi.tesselation") diff --git a/add_advanced_objects_panels/drop_to_ground.py b/add_advanced_objects_panels/drop_to_ground.py index 0735f242c..735af80a6 100644 --- a/add_advanced_objects_panels/drop_to_ground.py +++ b/add_advanced_objects_panels/drop_to_ground.py @@ -308,27 +308,27 @@ class Drop_help(Operator): def draw(self, context): layout = self.layout - layout.label("General Info:") - layout.label("The Active Object has to be of a Mesh, Font,") - layout.label("Metaball, Curve or Surface type and") - layout.label("be at the lowest Z location") - layout.label("The option Use Origins must be enabled to drop") - layout.label("objects that are not of a Mesh or DupliGroup type") - layout.label("The Active Object has to be big enough to catch them") - layout.label("To check that, use the Orthographic Top View") + layout.label(text="General Info:") + layout.label(text="The Active Object has to be of a Mesh, Font,") + layout.label(text="Metaball, Curve or Surface type and") + layout.label(text="be at the lowest Z location") + layout.label(text="The option Use Origins must be enabled to drop") + layout.label(text="objects that are not of a Mesh or DupliGroup type") + layout.label(text="The Active Object has to be big enough to catch them") + layout.label(text="To check that, use the Orthographic Top View") layout.separator() - layout.label("To use:") + layout.label(text="To use:") if self.is_all is False: - layout.label("Select objects to drop") - layout.label("Then Shift Select the object to be the ground") - layout.label("Drops Selected Object to the Active one") + layout.label(text="Select objects to drop") + layout.label(text="Then Shift Select the object to be the ground") + layout.label(text="Drops Selected Object to the Active one") else: - layout.label("Select the ground Mesh and press Drop all") - layout.label("The unselected Objects will be moved straight") - layout.label("down the Z axis, so they have to be above") - layout.label("the Selected / Active one to fall") + layout.label(text="Select the ground Mesh and press Drop all") + layout.label(text="The unselected Objects will be moved straight") + layout.label(text="down the Z axis, so they have to be above") + layout.label(text="the Selected / Active one to fall") def execute(self, context): return {'FINISHED'} diff --git a/add_advanced_objects_panels/object_laplace_lightning.py b/add_advanced_objects_panels/object_laplace_lightning.py index 15e6730f9..32d7b3f46 100644 --- a/add_advanced_objects_panels/object_laplace_lightning.py +++ b/add_advanced_objects_panels/object_laplace_lightning.py @@ -1354,7 +1354,7 @@ class OBJECT_PT_fslg(Panel): col = layout.column() col.operator("object.setup_objects_operator", text="Create Setup objects") - col.label("Origin object") + col.label(text="Origin object") col.prop_search(winmgr, "OOB", context.scene, "objects") box = layout.box() diff --git a/add_advanced_objects_panels/oscurart_constellation.py b/add_advanced_objects_panels/oscurart_constellation.py index dfa33269a..796c38fe5 100644 --- a/add_advanced_objects_panels/oscurart_constellation.py +++ b/add_advanced_objects_panels/oscurart_constellation.py @@ -125,7 +125,7 @@ class Constellation_Operator_Panel(Panel): box = layout.box() col = box.column(align=True) - col.label("Constellation:") + col.label(text="Constellation:") col.operator("mesh.constellation", text="Cross Section") col.prop(adv_obj, "constellation_limit") diff --git a/add_advanced_objects_panels/unfold_transition.py b/add_advanced_objects_panels/unfold_transition.py index f832c21dd..562f6a6c8 100644 --- a/add_advanced_objects_panels/unfold_transition.py +++ b/add_advanced_objects_panels/unfold_transition.py @@ -304,7 +304,7 @@ class PanelFOLD(Panel): col = box.column() col.operator("object.set_up_fold", text="1. Set Up Unfold") col.separator() - col.label("Unfold Mode:") + col.label(text="Unfold Mode:") col.prop(adv_obj, "unfold_modo") col.prop(adv_obj, "unfold_flip") diff --git a/add_curve_extra_objects/__init__.py b/add_curve_extra_objects/__init__.py index 2622401b4..383058132 100644 --- a/add_curve_extra_objects/__init__.py +++ b/add_curve_extra_objects/__init__.py @@ -172,7 +172,7 @@ class CurveExtraObjectsAddonPreferences(AddonPreferences): box.label(text="Spirals:") if self.update_spiral_presets: - box.label(self.update_spiral_presets_msg, icon="FILE_TICK") + box.label(text=self.update_spiral_presets_msg, icon="FILE_TICK") else: box.prop(self, "update_spiral_presets") diff --git a/add_curve_extra_objects/beveltaper_curve.py b/add_curve_extra_objects/beveltaper_curve.py index 016a0bc48..7f09a3a0f 100644 --- a/add_curve_extra_objects/beveltaper_curve.py +++ b/add_curve_extra_objects/beveltaper_curve.py @@ -284,7 +284,7 @@ class add_tapercurve(Operator): layout = self.layout col = layout.column(align=True) - col.label("Settings:") + col.label(text="Settings:") split = layout.split(percentage=0.95, align=True) split.active = not self.link2 col = split.column(align=True) diff --git a/add_mesh_extra_objects/add_mesh_round_cube.py b/add_mesh_extra_objects/add_mesh_round_cube.py index 6c39e7992..f8fd34805 100644 --- a/add_mesh_extra_objects/add_mesh_round_cube.py +++ b/add_mesh_extra_objects/add_mesh_round_cube.py @@ -421,18 +421,18 @@ class AddRoundCube(Operator, object_utils.AddObjectHelper): row = box.row() row.alignment = 'CENTER' row.scale_y = 0.1 - row.label('Divisions') + row.label(text='Divisions') row = box.row() col = row.column() col.alignment = 'RIGHT' - col.label('Arc:') + col.label(text='Arc:') col.prop(self, 'arc_div', text='') - col.label('[ {} ]'.format(self.arcdiv)) + col.label(text='[ {} ]'.format(self.arcdiv)) col = row.column() col.alignment = 'RIGHT' - col.label('Linear:') + col.label(text='Linear:') col.prop(self, 'lin_div', text='') - col.label('[ {:.3g} ]'.format(self.lindiv)) + col.label(text='[ {:.3g} ]'.format(self.lindiv)) box.row().prop(self, 'div_type') row = box.row() row.active = self.arcdiv % 2 diff --git a/add_mesh_extra_objects/add_mesh_vertex.py b/add_mesh_extra_objects/add_mesh_vertex.py index eac3d742f..da4eb33a1 100644 --- a/add_mesh_extra_objects/add_mesh_vertex.py +++ b/add_mesh_extra_objects/add_mesh_vertex.py @@ -104,7 +104,7 @@ class AddSymmetricalEmpty(Operator): layout.prop(mirror, "use_clip", text="Use Clipping") - layout.label("Mirror Axis") + layout.label(text="Mirror Axis") row = layout.row(align=True) row.prop(mirror, "use_x") row.prop(mirror, "use_y") @@ -128,7 +128,7 @@ class AddSymmetricalVert(Operator): layout.prop(mirror, "use_clip", text="Use Clipping") - layout.label("Mirror Axis") + layout.label(text="Mirror Axis") row = layout.row(align=True) row.prop(mirror, "use_x") row.prop(mirror, "use_y") diff --git a/add_mesh_extra_objects/geodesic_domes/third_domes_panel_271.py b/add_mesh_extra_objects/geodesic_domes/third_domes_panel_271.py index e3ea4009b..0e557be58 100644 --- a/add_mesh_extra_objects/geodesic_domes/third_domes_panel_271.py +++ b/add_mesh_extra_objects/geodesic_domes/third_domes_panel_271.py @@ -831,7 +831,7 @@ class GenerateGeodesicDome(Operator): col.prop(self, "orientation") col.prop(self, "tri_hex_star") col.prop(self, "spherical_flat") - col.label("Geodesic Object Parameters:") + col.label(text="Geodesic Object Parameters:") row = layout.row() row.prop(self, "frequency") row = layout.row() @@ -851,7 +851,7 @@ class GenerateGeodesicDome(Operator): row = layout.row() row.prop(self, "dual") elif tmp == 'Torus': - col.label("Torus Parameters") + col.label(text="Torus Parameters") row = layout.row() row.prop(self, "ures") row = layout.row() @@ -874,7 +874,7 @@ class GenerateGeodesicDome(Operator): row = layout.row() elif tmp == 'Sphere': - col.label("Sphere Parameters") + col.label(text="Sphere Parameters") row = layout.row() row.prop(self, "bures") row = layout.row() @@ -894,7 +894,7 @@ class GenerateGeodesicDome(Operator): row = layout.row() row.prop(self, "bvellipse") elif tmp == 'Parabola': - col.label("Parabola Parameters") + col.label(text="Parabola Parameters") row = layout.row() row.prop(self, "paxres") row = layout.row() @@ -910,7 +910,7 @@ class GenerateGeodesicDome(Operator): row = layout.row() row.prop(self, "pagphase") elif tmp == 'Cylinder': - col.label("Cylinder Parameters") + col.label(text="Cylinder Parameters") col.prop(self, "cyxres") col.prop(self, "cyyres") col.prop(self, "cyxsz") @@ -919,7 +919,7 @@ class GenerateGeodesicDome(Operator): col.prop(self, "cygap") col.prop(self, "cygphase") elif tmp == 'Grid': - col.label("Grid Parameters") + col.label(text="Grid Parameters") row = layout.row() row.prop(self, "grxres") row = layout.row() @@ -941,7 +941,7 @@ class GenerateGeodesicDome(Operator): if (self.uact is False) and (self.vact is False): row.label(text="No checkbox active", icon="INFO") else: - row.label("Superform Parameters") + row.label(text="Superform Parameters") if self.uact: row = layout.row() row.prop(self, "um") @@ -983,13 +983,13 @@ class GenerateGeodesicDome(Operator): row = layout.row() if self.hubimpmesh == "None": row = layout.row() - row.label("Name of a hub to use") + row.label(text="Name of a hub to use") row = layout.row() row.prop(self, "hubimpmesh") row = layout.row() if self.hmeshname == "None": row = layout.row() - row.label("Name of mesh to be filled in") + row.label(text="Name of mesh to be filled in") row = layout.row() row.prop(self, "hmeshname") row = layout.row() diff --git a/add_mesh_extra_objects/mesh_discombobulator.py b/add_mesh_extra_objects/mesh_discombobulator.py index 4fcbf5937..82d50e075 100644 --- a/add_mesh_extra_objects/mesh_discombobulator.py +++ b/add_mesh_extra_objects/mesh_discombobulator.py @@ -636,7 +636,7 @@ class discombobulator_dodads_list(Menu): layout = self.layout doodle = len(bpy.context.scene.discomb.DISC_doodads) - layout.label("Saved doodads : {}".format(doodle)) + layout.label(text="Saved doodads : {}".format(doodle)) layout.separator() if doodle > 0: for name in bpy.context.scene.discomb.DISC_doodads: @@ -654,19 +654,19 @@ class discombob_help(Menu): layout.label(text="Usage Information:", icon="INFO") layout.separator() layout.label(text="Quads only, not Triangles or Ngons", icon="ERROR") - layout.label("Works only with Mesh object that have faces") + layout.label(text="Works only with Mesh object that have faces") layout.separator() - layout.label("Select a face or faces") - layout.label("Press Discombobulate to create greebles") - layout.label("In object mode, still needs a selection in Edit Mode") + layout.label(text="Select a face or faces") + layout.label(text="Press Discombobulate to create greebles") + layout.label(text="In object mode, still needs a selection in Edit Mode") layout.separator() - layout.label("Doodads - additional objects layered on the mesh surface") + layout.label(text="Doodads - additional objects layered on the mesh surface") layout.label("(Similar to dupliverts - but as one separate object)") layout.separator() layout.label(text="Limitations:", icon="MOD_EXPLODE") - layout.label("Be careful with the repeat protusions setting") + layout.label(text="Be careful with the repeat protusions setting") layout.label("(Runs reqursively)") - layout.label("If possible, avoid using on a high polycount base mesh") + layout.label(text="If possible, avoid using on a high polycount base mesh") layout.label("(It can run out of memory and take a long time to compute)") @@ -690,7 +690,7 @@ class VIEW3D_OT_tools_discombobulate(Operator): row = layout.row() row.menu('HELP_MT_discombobulator', icon='INFO') box = layout.box() - box.label("Protusions settings") + box.label(text="Protusions settings") row = box.row() row.prop(context.scene.discomb, 'doprots') row = box.row() @@ -713,7 +713,7 @@ class VIEW3D_OT_tools_discombobulate(Operator): row = box.row() row.prop(context.scene.discomb, "repeatprot") box = layout.box() - box.label("Doodads settings") + box.label(text="Doodads settings") row = box.row() is_doodad = context.scene.discomb.dodoodads row.prop(context.scene.discomb, 'dodoodads') @@ -744,7 +744,7 @@ class VIEW3D_OT_tools_discombobulate(Operator): text="List of saved Doodads ({})".format(doodle)) box = layout.box() - box.label("Materials settings") + box.label(text="Materials settings") row = box.row() row.prop(context.scene.discomb, 'topProtMat') row = box.row() diff --git a/animation_animall.py b/animation_animall.py index de02192c2..d6c58cd0a 100644 --- a/animation_animall.py +++ b/animation_animall.py @@ -191,20 +191,20 @@ class VIEW3D_PT_animall(Panel): row = split.row() if ShapeKeyIndex > 0: - row.label(ShapeKey.name, icon="SHAPEKEY_DATA") + row.label(text=ShapeKey.name, icon="SHAPEKEY_DATA") row.prop(ShapeKey, "value", text="") row.prop(Obj, "show_only_shape_key", text="") if ShapeKey.value < 1: row = layout.row() - row.label('Maybe set "%s" to 1.0?' % ShapeKey.name, icon="INFO") + row.label(text='Maybe set "%s" to 1.0?' % ShapeKey.name, icon="INFO") elif ShapeKey: - row.label("Can not key on Basis Shape", icon="ERROR") + row.label(text="Can not key on Basis Shape", icon="ERROR") else: - row.label("No active Shape Key", icon="ERROR") + row.label(text="No active Shape Key", icon="ERROR") if context.window_manager.key_points and context.window_manager.key_shape: row = layout.row() - row.label('"Points" and "Shape" are redundant?', icon="INFO") + row.label(text='"Points" and "Shape" are redundant?', icon="INFO") class ANIM_OT_insert_keyframe_animall(Operator): diff --git a/ant_landscape/ant_functions.py b/ant_landscape/ant_functions.py index c815b7205..a20d2ff1b 100644 --- a/ant_landscape/ant_functions.py +++ b/ant_landscape/ant_functions.py @@ -1108,7 +1108,7 @@ class Eroder(bpy.types.Operator): box = layout.box() col = box.column(align=True) - col.label("River erosion") + col.label(text="River erosion") col.prop(self, 'IterRiver') col.prop(self, 'Kz') col.prop(self, 'Ks') diff --git a/archimesh/achm_books_maker.py b/archimesh/achm_books_maker.py index f7fa58eed..3a36bfac0 100644 --- a/archimesh/achm_books_maker.py +++ b/archimesh/achm_books_maker.py @@ -115,10 +115,10 @@ class AchmBooks(Operator): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() - box.label("Book size") + box.label(text="Book size") row = box.row() row.prop(self, 'width') row.prop(self, 'depth') @@ -127,7 +127,7 @@ class AchmBooks(Operator): row.prop(self, 'num', slider=True) box = layout.box() - box.label("Randomness") + box.label(text="Randomness") row = box.row() row.prop(self, 'rX', slider=True) row.prop(self, 'rY', slider=True) @@ -147,7 +147,7 @@ class AchmBooks(Operator): row.prop(self, 'rC', slider=True) else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ----------------------------------------------------- # Execute diff --git a/archimesh/achm_column_maker.py b/archimesh/achm_column_maker.py index e9b66639b..b9f5936e2 100644 --- a/archimesh/achm_column_maker.py +++ b/archimesh/achm_column_maker.py @@ -244,7 +244,7 @@ class AchmColumn(bpy.types.Operator): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() box.prop(self, 'model') # Circular @@ -311,7 +311,7 @@ class AchmColumn(bpy.types.Operator): row.prop(self, 'array_num_x') row.prop(self, 'array_num_y') if self.arc_top is True: - box.label("Use arch radio and thickness to set distances") + box.label(text="Use arch radio and thickness to set distances") if self.arc_top is False: row = box.row() @@ -327,7 +327,7 @@ class AchmColumn(bpy.types.Operator): box.prop(self, 'crt_mat') else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ----------------------------------------------------- # Execute diff --git a/archimesh/achm_curtain_maker.py b/archimesh/achm_curtain_maker.py index 0b4bb84be..c2dbb6f25 100644 --- a/archimesh/achm_curtain_maker.py +++ b/archimesh/achm_curtain_maker.py @@ -107,7 +107,7 @@ class AchmJapan(Operator): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() row = box.row() @@ -141,7 +141,7 @@ class AchmJapan(Operator): box.label("* Remember to verify fabric texture folder") else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ----------------------------------------------------- # Execute @@ -212,7 +212,7 @@ class AchmRoller(Operator): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() row = box.row() @@ -227,7 +227,7 @@ class AchmRoller(Operator): box.label("* Remember to verify fabric texture folder") else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ----------------------------------------------------- # Execute diff --git a/archimesh/achm_door_maker.py b/archimesh/achm_door_maker.py index baf3ac987..f3b42ded6 100644 --- a/archimesh/achm_door_maker.py +++ b/archimesh/achm_door_maker.py @@ -430,7 +430,7 @@ class AchmDoorObjectgeneratorpanel(Panel): layout = self.layout if bpy.context.mode == 'EDIT_MESH': - layout.label('Warning: Operator does not work in edit mode.', icon='ERROR') + layout.label(text='Warning: Operator does not work in edit mode.', icon='ERROR') else: myobjdat = o.DoorObjectGenerator[0] space = bpy.context.space_data @@ -438,7 +438,7 @@ class AchmDoorObjectgeneratorpanel(Panel): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() row = box.row() row.prop(myobjdat, 'frame_width') @@ -464,7 +464,7 @@ class AchmDoorObjectgeneratorpanel(Panel): box.prop(myobjdat, 'crt_mat') else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ------------------------------------------------------------------------------ diff --git a/archimesh/achm_kitchen_maker.py b/archimesh/achm_kitchen_maker.py index 994714b1b..9901c420c 100644 --- a/archimesh/achm_kitchen_maker.py +++ b/archimesh/achm_kitchen_maker.py @@ -479,7 +479,7 @@ class AchmKitchen(Operator): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() row = box.row() @@ -527,7 +527,7 @@ class AchmKitchen(Operator): box.prop(self, 'crt_mat') else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ----------------------------------------------------- # Execute @@ -564,7 +564,7 @@ class AchmKitchen(Operator): def add_cabinet(self, box, num, cabinet): doortype = cabinet.dType row = box.row() - row.label("Cabinet " + str(num)) + row.label(text="Cabinet " + str(num)) row.prop(cabinet, 'sX') row = box.row() diff --git a/archimesh/achm_lamp_maker.py b/archimesh/achm_lamp_maker.py index d9e7f64ec..1297d55e7 100644 --- a/archimesh/achm_lamp_maker.py +++ b/archimesh/achm_lamp_maker.py @@ -269,10 +269,10 @@ class AchmLamp(Operator): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() - box.label("Lamp base") + box.label(text="Lamp base") row = box.row() row.prop(self, 'preset') row = box.row() @@ -338,7 +338,7 @@ class AchmLamp(Operator): row.prop(self, 'bz12', slider=True) box = layout.box() - box.label("Lampshade") + box.label(text="Lampshade") row = box.row() row.prop(self, 'top_height') row.prop(self, 'top_segments') @@ -362,7 +362,7 @@ class AchmLamp(Operator): row.prop(self, 'objcol') else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ----------------------------------------------------- # Execute diff --git a/archimesh/achm_main_panel.py b/archimesh/achm_main_panel.py index eb3d77482..36bc2f635 100644 --- a/archimesh/achm_main_panel.py +++ b/archimesh/achm_main_panel.py @@ -411,7 +411,7 @@ class ArchimeshMainPanel(Panel): try: if 'RoomGenerator' in myobj: box = layout.box() - box.label("Room Tools", icon='MODIFIER') + box.label(text="Room Tools", icon='MODIFIER') row = box.row(align=False) row.operator("object.archimesh_cut_holes", icon='GRID') row.prop(scene, "archimesh_select_only") @@ -431,7 +431,7 @@ class ArchimeshMainPanel(Panel): try: if myobj["archimesh.sku"] is not None: box = layout.box() - box.label("Kitchen Tools", icon='MODIFIER') + box.label(text="Kitchen Tools", icon='MODIFIER') # Export row = box.row(align=False) row.operator("io_export.kitchen_inventory", text="Export inventory", icon='PASTEDOWN') @@ -442,7 +442,7 @@ class ArchimeshMainPanel(Panel): # Elements Buttons # ------------------------------ box = layout.box() - box.label("Elements", icon='GROUP') + box.label(text="Elements", icon='GROUP') row = box.row() row.operator("mesh.archimesh_room") row.operator("mesh.archimesh_column") @@ -462,7 +462,7 @@ class ArchimeshMainPanel(Panel): # Prop Buttons # ------------------------------ box = layout.box() - box.label("Props", icon='LIGHT_DATA') + box.label(text="Props", icon='LIGHT_DATA') row = box.row() row.operator("mesh.archimesh_books") row.operator("mesh.archimesh_light") @@ -476,7 +476,7 @@ class ArchimeshMainPanel(Panel): # OpenGL Buttons # ------------------------------ box = layout.box() - box.label("Display hints", icon='QUESTION') + box.label(text="Display hints", icon='QUESTION') row = box.row() if context.window_manager.archimesh_run_opengl is False: icon = 'PLAY' @@ -501,7 +501,7 @@ class ArchimeshMainPanel(Panel): # Grease pencil tools # ------------------------------ box = layout.box() - box.label("Pencil Tools", icon='MODIFIER') + box.label(text="Pencil Tools", icon='MODIFIER') row = box.row(align=False) row.operator("object.archimesh_pencil_room", icon='GREASEPENCIL') row = box.row(align=False) diff --git a/archimesh/achm_roof_maker.py b/archimesh/achm_roof_maker.py index 0cf6d2228..84564e759 100644 --- a/archimesh/achm_roof_maker.py +++ b/archimesh/achm_roof_maker.py @@ -95,7 +95,7 @@ class AchmRoof(Operator): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() box.prop(self, 'model') box.prop(self, 'roof_width') @@ -136,7 +136,7 @@ class AchmRoof(Operator): box.prop(self, 'crt_mat') else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ----------------------------------------------------- # Execute diff --git a/archimesh/achm_room_maker.py b/archimesh/achm_room_maker.py index 11a259be6..1ef5219d7 100644 --- a/archimesh/achm_room_maker.py +++ b/archimesh/achm_room_maker.py @@ -1589,7 +1589,7 @@ Object.RoomGenerator = CollectionProperty(type=RoomProperties) # Add wall parameters to the panel. # ----------------------------------------------------- def add_wall(idx, box, wall): - box.label("Wall " + str(idx)) + box.label(text="Wall " + str(idx)) row = box.row() row.prop(wall, 'w') row.prop(wall, 'a') @@ -1650,7 +1650,7 @@ class AchmRoomGeneratorPanel(Panel): layout = self.layout if bpy.context.mode == 'EDIT_MESH': - layout.label('Warning: Operator does not work in edit mode.', icon='ERROR') + layout.label(text='Warning: Operator does not work in edit mode.', icon='ERROR') else: room = o.RoomGenerator[0] row = layout.row() diff --git a/archimesh/achm_shelves_maker.py b/archimesh/achm_shelves_maker.py index c9351a075..89f83aa81 100644 --- a/archimesh/achm_shelves_maker.py +++ b/archimesh/achm_shelves_maker.py @@ -148,7 +148,7 @@ class AchmShelves(Operator): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() row = box.row() @@ -179,7 +179,7 @@ class AchmShelves(Operator): box.prop(self, 'crt_mat') else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ----------------------------------------------------- # Execute @@ -204,7 +204,7 @@ class AchmShelves(Operator): # ----------------------------------------------------- def add_shelves(self, box, num, sh): row = box.row() - row.label("Unit " + str(num)) + row.label(text="Unit " + str(num)) row.prop(sh, 'sX') row = box.row() diff --git a/archimesh/achm_stairs_maker.py b/archimesh/achm_stairs_maker.py index 2d687a72c..9b65bfbd1 100644 --- a/archimesh/achm_stairs_maker.py +++ b/archimesh/achm_stairs_maker.py @@ -146,7 +146,7 @@ class AchmStairs(Operator): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() row = box.row() @@ -183,7 +183,7 @@ class AchmStairs(Operator): box.prop(self, 'crt_mat') else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ----------------------------------------------------- # Execute diff --git a/archimesh/achm_venetian_maker.py b/archimesh/achm_venetian_maker.py index 01d0c4225..05dbdba37 100644 --- a/archimesh/achm_venetian_maker.py +++ b/archimesh/achm_venetian_maker.py @@ -410,7 +410,7 @@ class AchmVenetianObjectgeneratorpanel(Panel): layout = self.layout if bpy.context.mode == 'EDIT_MESH': - layout.label('Warning: Operator does not work in edit mode.', icon='ERROR') + layout.label(text='Warning: Operator does not work in edit mode.', icon='ERROR') else: myobjdat = o.VenetianObjectGenerator[0] space = bpy.context.space_data @@ -418,7 +418,7 @@ class AchmVenetianObjectgeneratorpanel(Panel): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() row = box.row() @@ -438,7 +438,7 @@ class AchmVenetianObjectgeneratorpanel(Panel): row.prop(myobjdat, 'objcol') else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ------------------------------------------------------------------------------ diff --git a/archimesh/achm_window_maker.py b/archimesh/achm_window_maker.py index a026232a5..64a9a3f8c 100644 --- a/archimesh/achm_window_maker.py +++ b/archimesh/achm_window_maker.py @@ -456,7 +456,7 @@ class AchmWindowObjectgeneratorpanel(Panel): layout = self.layout if bpy.context.mode == 'EDIT_MESH': - layout.label('Warning: Operator does not work in edit mode.', icon='ERROR') + layout.label(text='Warning: Operator does not work in edit mode.', icon='ERROR') else: myobjdat = o.WindowObjectGenerator[0] space = bpy.context.space_data @@ -464,13 +464,13 @@ class AchmWindowObjectgeneratorpanel(Panel): # Imperial units warning if bpy.context.scene.unit_settings.system == "IMPERIAL": row = layout.row() - row.label("Warning: Imperial units not supported", icon='COLOR_RED') + row.label(text="Warning: Imperial units not supported", icon='COLOR_RED') box = layout.box() row = box.row() row.prop(myobjdat, 'opentype') row = box.row() - row.label("Window size") + row.label(text="Window size") row = box.row() row.prop(myobjdat, 'width') row.prop(myobjdat, 'depth') @@ -519,7 +519,7 @@ class AchmWindowObjectgeneratorpanel(Panel): box.prop(myobjdat, 'crt_mat') else: row = layout.row() - row.label("Warning: Operator does not work in local view mode", icon='ERROR') + row.label(text="Warning: Operator does not work in local view mode", icon='ERROR') # ------------------------------------------------------------------------------ diff --git a/archimesh/achm_window_panel.py b/archimesh/achm_window_panel.py index 349117344..15cc0e08c 100644 --- a/archimesh/achm_window_panel.py +++ b/archimesh/achm_window_panel.py @@ -1806,7 +1806,7 @@ class AchmWindowEditPanel(Panel): layout = self.layout if bpy.context.mode == 'EDIT_MESH': - layout.label('Warning: Operator does not work in edit mode.', icon='ERROR') + layout.label(text='Warning: Operator does not work in edit mode.', icon='ERROR') else: myobject = o.WindowPanelGenerator[0] layout.prop(myobject, 'prs') @@ -1827,8 +1827,8 @@ class AchmWindowEditPanel(Panel): row.prop(myobject, 'mr3') row.prop(myobject, 'mr4') row = layout.row() - row.label('Frame') - row.label('Inner Frame') + row.label(text='Frame') + row.label(text='Inner Frame') row = layout.row() row.prop(myobject, 'mt1') row.prop(myobject, 'mt2') diff --git a/btrace/__init__.py b/btrace/__init__.py index dee32a3fb..fe0c47580 100644 --- a/btrace/__init__.py +++ b/btrace/__init__.py @@ -82,7 +82,7 @@ class btrace_preferences(AddonPreferences): def draw(self, context): layout = self.layout - layout.label("UI Options:") + layout.label(text="UI Options:") row = layout.row(align=True) row.prop(self, "expand_enum", text="UI Options", expand=True) diff --git a/btrace/bTrace_props.py b/btrace/bTrace_props.py index 68d7f0874..3f0fed747 100644 --- a/btrace/bTrace_props.py +++ b/btrace/bTrace_props.py @@ -587,7 +587,7 @@ class addTracerObjectPanel(Panel): def color_blender(): # Buttons for Color Blender row = box.row() - row.label("Color palette") + row.label(text="Color palette") row.prop(Btrace, "mmColors", text="") # Show Custom Colors if selected @@ -730,7 +730,7 @@ class addTracerObjectPanel(Panel): # Default option (can be expanded into help) if Btrace.btrace_toolmenu == 'tool_help': row = layout.row() - row.label("Pick an option", icon="HELP") + row.label(text="Pick an option", icon="HELP") # Object Trace elif Btrace.btrace_toolmenu == 'tool_objectTrace': @@ -817,14 +817,14 @@ class addTracerObjectPanel(Panel): row.prop(Btrace, "fol_sel_option", expand=True) row = box.row() if Btrace.fol_sel_option == 'RANDOM': - row.label("Random Select of Total") + row.label(text="Random Select of Total") row.prop(Btrace, "fol_perc_verts", text="%") if Btrace.fol_sel_option == 'CUSTOM': - row.label("Choose selection in Edit Mode") + row.label(text="Choose selection in Edit Mode") if Btrace.fol_sel_option == 'ALL': - row.label("Select All items") + row.label(text="Select All items") col = box.column(align=True) - col.label("Time Options", icon="TIME") + col.label(text="Time Options", icon="TIME") col.prop(Btrace, "particle_step") row = col.row(align=True) row.prop(Btrace, "fol_start_frame") diff --git a/camera_turnaround.py b/camera_turnaround.py index 36393f3ab..f9e20b62f 100644 --- a/camera_turnaround.py +++ b/camera_turnaround.py @@ -277,7 +277,7 @@ class PanelUI(Panel): bpy.context.scene.camera.name except AttributeError: row = layout.row(align=False) - row.label("No defined camera for scene", icon="INFO") + row.label(text="No defined camera for scene", icon="INFO") return if context.active_object is not None: @@ -287,11 +287,11 @@ class PanelUI(Panel): row.operator("object.rotate_around", icon='OUTLINER_DATA_CAMERA') box = row.box() box.scale_y = 0.5 - box.label(buf, icon='MESH_DATA') + box.label(text=buf, icon='MESH_DATA') row = layout.row(align=False) row.prop(scene, "camera") - layout.label("Rotation:") + layout.label(text="Rotation:") row = layout.row(align=True) row.prop(scene, "frame_start") row.prop(scene, "frame_end") @@ -308,7 +308,7 @@ class PanelUI(Panel): split.prop(turn_camera, "inverse_z", toggle=True) col = layout.column(align=True) - col.label("Options:") + col.label(text="Options:") row = col.row(align=True) row.prop(turn_camera, "back_forw", toggle=True) row.prop(turn_camera, "reset_cam_anim", toggle=True) @@ -324,7 +324,7 @@ class PanelUI(Panel): else: buf = "No valid object selected" - layout.label(buf, icon='MESH_DATA') + layout.label(text=buf, icon='MESH_DATA') # ------------------------------------------------------ diff --git a/development_iskeyfree.py b/development_iskeyfree.py index 8fddbb3e1..3c9b1773a 100644 --- a/development_iskeyfree.py +++ b/development_iskeyfree.py @@ -245,11 +245,11 @@ class UIControlPanel(Panel): cmd = mychecker.getlast() if cmd is not None: row = layout.row() - row.label("Current uses of " + str(cmd), icon="PARTICLE_DATA") + row.label(text="Current uses of " + str(cmd), icon="PARTICLE_DATA") for e in mylist: if oldcontext != e[0]: box = layout.box() - box.label(e[0], icon="UNPINNED") + box.label(text=e[0], icon="UNPINNED") oldcontext = e[0] row = box.row(align=True) diff --git a/io_convert_image_to_mesh_img/mesh/dtm.py b/io_convert_image_to_mesh_img/mesh/dtm.py index a6ab6e30f..497ebb2b7 100644 --- a/io_convert_image_to_mesh_img/mesh/dtm.py +++ b/io_convert_image_to_mesh_img/mesh/dtm.py @@ -130,7 +130,7 @@ class DTM: def _get_data_start(self): """Gets the start position of the DTM data block""" label_length = self.label['RECORD_BYTES'] - num_labels = self.label.get('LABEL_RECORDS', 1) + num_labels = self.label.get(text='LABEL_RECORDS', 1) return int(label_length * num_labels) def _process_invalid_data(self, data): diff --git a/io_convert_image_to_mesh_img/ui/terrainpanel.py b/io_convert_image_to_mesh_img/ui/terrainpanel.py index 2fc0d0b2a..8a2bece3b 100644 --- a/io_convert_image_to_mesh_img/ui/terrainpanel.py +++ b/io_convert_image_to_mesh_img/ui/terrainpanel.py @@ -100,19 +100,19 @@ class TerrainPanel(Panel): metadata_panel = layout.box() dtm_resolution = metadata_panel.row() - dtm_resolution.label('Current Resolution: ') + dtm_resolution.label(text='Current Resolution: ') dtm_resolution.label('{:9,.2%}'.format( obj['DTM_RESOLUTION'] )) mesh_scale = metadata_panel.row() - mesh_scale.label('Current Scale: ') + mesh_scale.label(text='Current Scale: ') mesh_scale.label('{:9,.2f} m/post'.format( obj['MESH_SCALE'] )) dtm_scale = metadata_panel.row() - dtm_scale.label('Original Scale: ') + dtm_scale.label(text='Original Scale: ') dtm_scale.label('{:9,.2f} m/post'.format( obj['MAP_SCALE'] )) diff --git a/io_export_after_effects.py b/io_export_after_effects.py index 462efbabc..65c60f5cc 100644 --- a/io_export_after_effects.py +++ b/io_export_after_effects.py @@ -740,13 +740,13 @@ class ExportJsx(bpy.types.Operator, ExportHelper): box = layout.box() box.label('Size fo AE Comp (pixels per 1 BU)') box.prop(self, 'ae_size') - box.label('Animation:') + box.label(text='Animation:') box.prop(self, 'include_animation') - box.label('Include Cameras and Objects:') + box.label(text='Include Cameras and Objects:') box.prop(self, 'include_active_cam') box.prop(self, 'include_selected_cams') box.prop(self, 'include_selected_objects') - box.label("Include Tracking Data:") + box.label(text="Include Tracking Data:") box.prop(self, 'include_cam_bundles') # box.prop(self, 'include_ob_bundles') diff --git a/io_export_paper_model.py b/io_export_paper_model.py index 1c471a8f7..a5818339a 100644 --- a/io_export_paper_model.py +++ b/io_export_paper_model.py @@ -2379,7 +2379,7 @@ class VIEW3D_PT_paper_model_tools(bpy.types.Panel): layout.operator("export_mesh.paper_model") col = layout.column(align=True) - col.label("Customization:") + col.label(text="Customization:") col.operator("mesh.unfold") if context.mode == 'EDIT_MESH': @@ -2432,7 +2432,7 @@ class VIEW3D_PT_paper_model_islands(bpy.types.Panel): row.prop(list_item, "abbreviation") else: layout.label(text="Not unfolded") - layout.box().label("Use the 'Unfold' tool") + layout.box().label(text="Use the 'Unfold' tool") sub = layout.column(align=True) sub.active = bool(mesh and mesh.paper_island_list) sub.prop(sce.paper_model, "display_islands", icon='RESTRICT_VIEW_OFF') diff --git a/io_import_gimp_image_to_scene.py b/io_import_gimp_image_to_scene.py index a79a5844a..f7b8233c7 100644 --- a/io_import_gimp_image_to_scene.py +++ b/io_import_gimp_image_to_scene.py @@ -613,18 +613,18 @@ class GIMPImageToScene(bpy.types.Operator): layout = self.layout box = layout.box() - box.label('3D Layers:', icon='SORTSIZE') + box.label(text='3D Layers:', icon='SORTSIZE') box.prop(self, 'SetCamera', icon='OUTLINER_DATA_CAMERA') box.prop(self, 'OpacityMode', icon='GHOST') if self.OpacityMode == 'COMPO' and self.SetupCompo == False: - box.label('Tip: Enable Node Compositing', icon='INFO') + box.label(text='Tip: Enable Node Compositing', icon='INFO') box.prop(self, 'AlphaMode', icon='IMAGE_RGB_ALPHA') box.prop(self, 'ShadelessMats', icon='SHADING_SOLID') box.prop(self, 'LayerOffset') box.prop(self, 'LayerScale') box = layout.box() - box.label('Compositing:', icon='RENDERLAYERS') + box.label(text='Compositing:', icon='RENDERLAYERS') box.prop(self, 'SetupCompo', icon='NODETREE') if self.SetupCompo: box.prop(self, 'GroupUntagged', icon='IMAGE_ZDEPTH') diff --git a/io_online_sketchfab/__init__.py b/io_online_sketchfab/__init__.py index 729202550..5448d470e 100644 --- a/io_online_sketchfab/__init__.py +++ b/io_online_sketchfab/__init__.py @@ -308,12 +308,12 @@ class VIEW3D_PT_sketchfab(Panel): load_token() layout = self.layout - layout.label("Export:") + layout.label(text="Export:") col = layout.box().column(align=True) col.prop(props, "models") col.prop(props, "lights") - layout.label("Model info:") + layout.label(text="Model info:") col = layout.box().column(align=True) col.prop(props, "title") col.prop(props, "description") @@ -322,7 +322,7 @@ class VIEW3D_PT_sketchfab(Panel): if props.private: col.prop(props, "password") - layout.label("Sketchfab account:") + layout.label(text="Sketchfab account:") col = layout.box().column(align=True) col.prop(props, "token") row = col.row() diff --git a/io_scene_ms3d/ms3d_ui.py b/io_scene_ms3d/ms3d_ui.py index c6db5d508..501950619 100644 --- a/io_scene_ms3d/ms3d_ui.py +++ b/io_scene_ms3d/ms3d_ui.py @@ -366,7 +366,7 @@ class Ms3dImportOperator(Operator, ImportHelper): layout = self.layout box = layout.box() - box.label(ms3d_str['LABEL_NAME_OPTIONS'], icon=Ms3dUi.ICON_OPTIONS) + box.label(text=ms3d_str['LABEL_NAME_OPTIONS'], icon=Ms3dUi.ICON_OPTIONS) box.prop(self, 'verbose', icon='SPEAKER') box = layout.box() @@ -375,7 +375,7 @@ class Ms3dImportOperator(Operator, ImportHelper): box.prop(self, 'use_extended_normal_handling') box = layout.box() - box.label(ms3d_str['LABEL_NAME_ANIMATION'], icon=Ms3dUi.ICON_ANIMATION) + box.label(text=ms3d_str['LABEL_NAME_ANIMATION'], icon=Ms3dUi.ICON_ANIMATION) box.prop(self, 'use_animation') if (self.use_animation): box.prop(self, 'rotation_mode', icon=Ms3dUi.ICON_ROTATION_MODE, @@ -560,7 +560,7 @@ class Ms3dExportOperator(Operator, ExportHelper): box = layout.box() flow = box.column_flow() - flow.label(ms3d_str['LABEL_NAME_OPTIONS'], icon=Ms3dUi.ICON_OPTIONS) + flow.label(text=ms3d_str['LABEL_NAME_OPTIONS'], icon=Ms3dUi.ICON_OPTIONS) flow.prop(self, 'verbose', icon='SPEAKER') box = layout.box() @@ -568,7 +568,7 @@ class Ms3dExportOperator(Operator, ExportHelper): flow.label(ms3d_str['LABEL_NAME_PROCESSING'], icon=Ms3dUi.ICON_PROCESSING) row = flow.row() - row.label(ms3d_str['PROP_NAME_ACTIVE'], icon='ROTACTIVE') + row.label(text=ms3d_str['PROP_NAME_ACTIVE'], icon='ROTACTIVE') row.label(blender_context.active_object.name) ##flow.prop(self, 'object_name') flow.prop(self, 'use_blender_names') diff --git a/lighting_dynamic_sky.py b/lighting_dynamic_sky.py index 2fd0b2838..1204d5384 100644 --- a/lighting_dynamic_sky.py +++ b/lighting_dynamic_sky.py @@ -432,21 +432,21 @@ def draw_world_settings(col, context): col.label(text="one called {}".format(stored_name), icon="BLANK1") return - col.label("World: %s" % stored_name) + col.label(text="World: %s" % stored_name) col.separator() - col.label("Scene Control") + col.label(text="Scene Control") col.prop(bgp, "default_value", text="Brightness") col.prop(so2, "default_value", text="Shadow color saturation") - col.label("Sky Control") + col.label(text="Sky Control") col.prop(m, "default_value", text="Sky color") col.prop(n, "default_value", text="Horizon Color") col.prop(c, "default_value", text="Cloud color") col.prop(o, "default_value", text="Cloud opacity") col.prop(d, "default_value", text="Cloud density") - col.label("Sun Control") + col.label(text="Sun Control") col.prop(suc, "default_value", text="") col.prop(so, "default_value", text="Sun value") col.prop(sof, "default_value", text="Soft hard") diff --git a/materials_library_vx/__init__.py b/materials_library_vx/__init__.py index 626f5e3fd..b12b91241 100644 --- a/materials_library_vx/__init__.py +++ b/materials_library_vx/__init__.py @@ -1144,7 +1144,7 @@ class MATLIB_PT_vxPanel(Panel): if matlib.active_material: row.label(matlib.active_material.category) else: - row.label("") + row.label(text="") # # #search if not matlib.hide_search: diff --git a/materials_utils/__init__.py b/materials_utils/__init__.py index 5e3fba053..dc1b6035d 100644 --- a/materials_utils/__init__.py +++ b/materials_utils/__init__.py @@ -828,7 +828,7 @@ class VIEW3D_OT_show_mat_preview(Operator): "*Only available in Solid Shading*" if c_render_engine("Cycles") else other_render ) - layout.label(no_col_label, icon="INFO") + layout.label(text=no_col_label, icon="INFO") return color_txt = "Viewport Color:" if c_render_engine("Cycles") else "Diffuse" @@ -863,7 +863,7 @@ class VIEW3D_OT_show_mat_preview(Operator): col.separator() col.prop(mat, "alpha") col.separator() - col.label("Viewport Alpha:") + col.label(text="Viewport Alpha:") col.prop(mat.game_settings, "alpha_blend", text="") layout.separator() @@ -952,7 +952,7 @@ class VIEW3D_OT_set_new_material_name(Operator): scene = context.scene.mat_specials box = layout.box() - box.label("Base name:") + box.label(text="Base name:") box.prop(scene, "set_material_name", text="", icon="SYNTAX_ON") layout.separator() layout.prop(scene, "use_tweak") @@ -1656,12 +1656,12 @@ def draw_ui_list_popups(self, context, obj_data=False): icon="INFO") sub_split = col.split(percentage=0.7, align=True) sub_box_1 = sub_split.box() - sub_box_1.label("Name") + sub_box_1.label(text="Name") sub_split_2 = sub_split.split(percentage=0.5, align=True) sub_box_2 = sub_split_2.box() - sub_box_2.label("Fake") + sub_box_2.label(text="Fake") sub_box_3 = sub_split_2.box() - sub_box_3.label("Lib") + sub_box_3.label(text="Lib") col.template_list( "VIEW3D_UL_assign_material_popup_ui", @@ -1994,9 +1994,9 @@ class MATERIAL_MT_scenemassive_opt(Menu): layout.prop(scene, "enable_report", text="Enable Report in the UI") use_separator(self, context) - layout.label("Set the Bake Resolution") + layout.label(text="Set the Bake Resolution") res = str(scene.img_bake_size) - layout.label("Current Setting is : %s" % (res + "x" + res), icon='INFO') + layout.label(text="Current Setting is : %s" % (res + "x" + res), icon='INFO') use_separator(self, context) layout.prop(scene, "img_bake_size", icon='NODE_SEL', expand=True) @@ -2035,7 +2035,7 @@ class MATERIAL_PT_scenemassive(Panel): row.menu("scenemassive.opt", text="Advanced Options", icon='SCRIPTWIN') box = col.box() - box.label("Save Directory") + box.label(text="Save Directory") split = box.split(0.85) split.prop(sc.mat_specials, "conv_path", text="", icon="RENDER_RESULT") split.operator("material.check_converter_path", @@ -2376,7 +2376,7 @@ class VIEW3D_MT_material_utils_pref(AddonPreferences): col_m = layout.column(align=True) box = col_m.box() - box.label("Save Directory") + box.label(text="Save Directory") split = box.split(0.85) split.prop(sc.mat_specials, "conv_path", text="", icon="RENDER_RESULT") split.operator( @@ -2393,7 +2393,7 @@ class VIEW3D_MT_material_utils_pref(AddonPreferences): col.prop(self, "show_separators") col = split.column(align=True) - col.label("Apply / Select Material mode:") + col.label(text="Apply / Select Material mode:") col.prop(self, "set_add_material_menu", expand=True) box = col_m.box() diff --git a/measureit/measureit_main.py b/measureit/measureit_main.py index aa5ded6d5..d6e14dc7d 100644 --- a/measureit/measureit_main.py +++ b/measureit/measureit_main.py @@ -469,7 +469,7 @@ class MEASUREIT_PT_Edit(Panel): units = scene.measureit_units box = layout.box() - box.label("Totals", icon='SOLO_ON') + box.label(text="Totals", icon='SOLO_ON') final = 0 for idx in range(len(tot)): if ac[idx] is True: diff --git a/mesh_auto_mirror.py b/mesh_auto_mirror.py index f9a8aa49c..bffa94781 100644 --- a/mesh_auto_mirror.py +++ b/mesh_auto_mirror.py @@ -190,7 +190,7 @@ class BisectMirror(Panel): if obj and obj.type == 'MESH': layout.operator("object.automirror", icon="MOD_MIRROR") - layout.label("Options:") + layout.label(text="Options:") layout.prop(auto_m, "axis", text="Mirror Axis", expand=True) layout.prop(auto_m, "orientation", text="Orientation") layout.prop(auto_m, "threshold", text="Threshold") diff --git a/mesh_carver.py b/mesh_carver.py index 266b426be..542f87844 100644 --- a/mesh_carver.py +++ b/mesh_carver.py @@ -604,46 +604,46 @@ class CarverPrefs(bpy.types.AddonPreferences): split = box.split(align=True) box = split.box() col = box.column(align=True) - col.label("Object Creation:") + col.label(text="Object Creation:") col.prop(scene, "Key_Create", text="") - col.label("Auto bevel update:") + col.label(text="Auto bevel update:") col.prop(scene, "Key_Update", text="") - col.label("Boolean operation type:") + col.label(text="Boolean operation type:") col.prop(scene, "Key_Bool", text="") - col.label("Brush Depth:") + col.label(text="Brush Depth:") col.prop(scene, "Key_BrushDepth", text="") box = split.box() col = box.column(align=True) - col.label("Brush Mode:") + col.label(text="Brush Mode:") col.prop(scene, "Key_Brush", text="") - col.label("Help display:") + col.label(text="Help display:") col.prop(scene, "Key_Help", text="") - col.label("Instantiate object:") + col.label(text="Instantiate object:") col.prop(scene, "Key_Instant", text="") - col.label("Random rotation:") + col.label(text="Random rotation:") col.prop(scene, "Key_Randrot", text="") box = split.box() col = box.column(align=True) - col.label("Close polygonal shape:") + col.label(text="Close polygonal shape:") col.prop(scene, "Key_Close", text="") - col.label("Apply operation:") + col.label(text="Apply operation:") col.prop(scene, "Key_Apply", text="") - col.label("Scale object:") + col.label(text="Scale object:") col.prop(scene, "Key_Scale", text="") - col.label("Subdiv add:") + col.label(text="Subdiv add:") col.prop(scene, "Key_Subadd", text="") box = split.box() col = box.column(align=True) - col.label("Gap rows:") + col.label(text="Gap rows:") col.prop(scene, "Key_Gapy", text="") - col.label("Gap columns:") + col.label(text="Gap columns:") col.prop(scene, "Key_Gapx", text="") - col.label("Depth / Solidify:") + col.label(text="Depth / Solidify:") col.prop(scene, "Key_Depth", text="") - col.label("Subdiv Remove:") + col.label(text="Subdiv Remove:") col.prop(scene, "Key_Subrem", text="") diff --git a/mesh_extra_tools/face_inset_fillet.py b/mesh_extra_tools/face_inset_fillet.py index b6d38d595..8af709c18 100644 --- a/mesh_extra_tools/face_inset_fillet.py +++ b/mesh_extra_tools/face_inset_fillet.py @@ -276,7 +276,7 @@ class MESH_OT_face_inset_fillet(Operator): def draw(self, context): layout = self.layout - layout.label("Corner Type:") + layout.label(text="Corner Type:") row = layout.row() row.prop(self, "type_enum", text="") diff --git a/mesh_extra_tools/mesh_cut_faces.py b/mesh_extra_tools/mesh_cut_faces.py index 195d491f9..1522b1597 100644 --- a/mesh_extra_tools/mesh_cut_faces.py +++ b/mesh_extra_tools/mesh_cut_faces.py @@ -200,13 +200,13 @@ class MESH_xOT_cut_faces(Operator): def draw(self, context): layout = self.layout - layout.label("Number of Cuts:") + layout.label(text="Number of Cuts:") layout.prop(self, "num_cuts", text="") layout.prop(self, "use_single_edge") layout.prop(self, "use_grid_fill") - layout.label("Quad Corner Type:") + layout.label(text="Quad Corner Type:") layout.prop(self, "corner_type", text="") def cut_edges(self, context): diff --git a/mesh_extra_tools/mesh_edges_length.py b/mesh_extra_tools/mesh_edges_length.py index f0056d048..d8c3ec5f2 100644 --- a/mesh_extra_tools/mesh_edges_length.py +++ b/mesh_extra_tools/mesh_edges_length.py @@ -132,19 +132,19 @@ class LengthSet(Operator): def draw(self, context): layout = self.layout - layout.label("Original Active length is: {:.3f}".format(self.old_length)) + layout.label(text="Original Active length is: {:.3f}".format(self.old_length)) - layout.label("Input Mode:") + layout.label(text="Input Mode:") layout.prop(self, "set_length_type", expand=True) if self.set_length_type == 'manual': layout.prop(self, "target_length") else: layout.prop(self, "existing_length", text="") - layout.label("Mode:") + layout.label(text="Mode:") layout.prop(self, "mode", text="") - layout.label("Resize Behavior:") + layout.label(text="Resize Behavior:") layout.prop(self, "behaviour", text="") def get_existing_edge_length(self, bm): diff --git a/mesh_extra_tools/mesh_edgetools.py b/mesh_extra_tools/mesh_edgetools.py index 08959e7b5..a5fd3e599 100644 --- a/mesh_extra_tools/mesh_edgetools.py +++ b/mesh_extra_tools/mesh_edgetools.py @@ -822,12 +822,12 @@ class Spline(Operator): layout.prop(self, "alg") layout.prop(self, "segments") - layout.label("Edge 1:") + layout.label(text="Edge 1:") split = layout.split(percentage=0.8, align=True) split.prop(self, "ten1") split.prop(self, "flip1", text="", icon="ALIGN", toggle=True) - layout.label("Edge 2:") + layout.label(text="Edge 2:") split = layout.split(percentage=0.8, align=True) split.prop(self, "ten2") split.prop(self, "flip2", text="", icon="ALIGN", toggle=True) @@ -1001,7 +1001,7 @@ class Ortho(Operator): def draw(self, context): layout = self.layout - layout.label("Creation:") + layout.label(text="Creation:") split = layout.split() col = split.column() @@ -1012,7 +1012,7 @@ class Ortho(Operator): col.prop(self, "vert3", toggle=True) col.prop(self, "vert4", toggle=True) - layout.label("Direction:") + layout.label(text="Direction:") row = layout.row(align=False) row.alignment = 'EXPAND' row.prop(self, "pos") @@ -1478,7 +1478,7 @@ class Slice(Operator): layout.prop(self, "make_copy") if not self.make_copy: layout.prop(self, "rip") - layout.label("Remove Side:") + layout.label(text="Remove Side:") layout.prop(self, "pos") layout.prop(self, "neg") diff --git a/mesh_extra_tools/mesh_filletplus.py b/mesh_extra_tools/mesh_filletplus.py index bc38d2ea2..a54eba7b2 100644 --- a/mesh_extra_tools/mesh_filletplus.py +++ b/mesh_extra_tools/mesh_filletplus.py @@ -343,11 +343,11 @@ class MESH_OT_fillet_plus(Operator): else: layout.prop(self, "radius") if self.radius is True: - layout.label("Radius:") + layout.label(text="Radius:") elif self.radius is False: - layout.label("Distance:") + layout.label(text="Distance:") layout.prop(self, "adj") - layout.label("Number of sides:") + layout.label(text="Number of sides:") layout.prop(self, "n") if self.n > 1: diff --git a/mesh_extra_tools/mesh_pen_tool.py b/mesh_extra_tools/mesh_pen_tool.py index 13e570819..76d5e0aa6 100644 --- a/mesh_extra_tools/mesh_pen_tool.py +++ b/mesh_extra_tools/mesh_pen_tool.py @@ -328,12 +328,12 @@ class pen_tool_panel(Panel): layout.label(text="Pen Tool Active", icon="INFO") else: col = layout.column(align=True) - col.label("Font:") + col.label(text="Font:") col.prop(pen_tool_props, "fs", text="Size", slider=True) col.prop(pen_tool_props, "a", text="Alpha", slider=True) col = layout.column(align=True) - col.label("Settings:") + col.label(text="Settings:") col.prop(pen_tool_props, "b0", text="Angles", toggle=True) col.prop(pen_tool_props, "b1", text="Edge Length", toggle=True) col.prop(pen_tool_props, "b2", text="Mouse Location 3D", toggle=True) diff --git a/mesh_extra_tools/mesh_select_tools/mesh_index_select.py b/mesh_extra_tools/mesh_select_tools/mesh_index_select.py index bc894924d..16c912db3 100644 --- a/mesh_extra_tools/mesh_select_tools/mesh_index_select.py +++ b/mesh_extra_tools/mesh_select_tools/mesh_index_select.py @@ -70,11 +70,11 @@ class SelVertEdgeFace(Operator): def draw(self, context): layout = self.layout - layout.label("Selection Type:") + layout.label(text="Selection Type:") layout.prop(self, "select_type", text="") layout.separator() - layout.label("Selected:") + layout.label(text="Selected:") layout.prop(self, "indice", text="", slider=True) d_text = self.delta_text[self.select_type] diff --git a/mesh_extra_tools/mesh_select_tools/mesh_info_select.py b/mesh_extra_tools/mesh_select_tools/mesh_info_select.py index c274cda29..000619a96 100644 --- a/mesh_extra_tools/mesh_select_tools/mesh_info_select.py +++ b/mesh_extra_tools/mesh_select_tools/mesh_info_select.py @@ -100,10 +100,10 @@ class DATA_PT_info_panel(Panel): if check_used: info_str = check_the_obj_polycount(context, check_delay) - col.label(info_str, icon='MESH_DATA') + col.label(text=info_str, icon='MESH_DATA') col = layout.column() - col.label("Select faces by type:") + col.label(text="Select faces by type:") row = layout.row() row.operator("data.facetype_select", text="Ngons").face_type = "5" diff --git a/mesh_extra_tools/pkhg_faces.py b/mesh_extra_tools/pkhg_faces.py index b1fd00351..2602036e4 100644 --- a/mesh_extra_tools/pkhg_faces.py +++ b/mesh_extra_tools/pkhg_faces.py @@ -203,7 +203,7 @@ class MESH_OT_add_faces_to_object(Operator): col.separator() col.label(text="Using Active Object", icon="INFO") col.separator() - col.label("Face Types:") + col.label(text="Face Types:") col.prop(self, "face_types", text="") col.separator() col.prop(self, "use_relative") diff --git a/mesh_extra_tools/split_solidify.py b/mesh_extra_tools/split_solidify.py index 03930e161..16a1c3275 100644 --- a/mesh_extra_tools/split_solidify.py +++ b/mesh_extra_tools/split_solidify.py @@ -151,18 +151,18 @@ class MESH_OT_split_solidify(Operator): def draw(self, context): layout = self.layout - layout.label("Normal:") + layout.label(text="Normal:") layout.prop(self, "normal_extr", expand=True) layout.prop(self, "loc_random") if not self.loc_random: - layout.label("Distance:") + layout.label(text="Distance:") layout.prop(self, "distance") elif self.loc_random: - layout.label("Random distance:") + layout.label(text="Random distance:") layout.prop(self, "random_dist") - layout.label("Thickness:") + layout.label(text="Thickness:") layout.prop(self, "thickness") layout.prop(self, "del_original") diff --git a/mesh_extra_tools/vertex_align.py b/mesh_extra_tools/vertex_align.py index 59aecfac6..eb66d747e 100644 --- a/mesh_extra_tools/vertex_align.py +++ b/mesh_extra_tools/vertex_align.py @@ -117,7 +117,7 @@ class Vertex_align_original(Operator): def draw(self, context): layout = self.layout - layout.label("Axis:") + layout.label(text="Axis:") row = layout.row(align=True) row.prop(context.scene.mesh_extra_tools, "vert_align_axis", @@ -233,7 +233,7 @@ class Vertex_align_coord_menu(Operator): layout = self.layout if self.using_store(context) and self.is_not_undo: - layout.label("Using Stored Coordinates", icon="INFO") + layout.label(text="Using Stored Coordinates", icon="INFO") row = layout.split(0.25) row.prop(self, "use_axis_coord", index=0, text="X") diff --git a/mesh_inset/__init__.py b/mesh_inset/__init__.py index 94c9327df..e7c7d587a 100644 --- a/mesh_inset/__init__.py +++ b/mesh_inset/__init__.py @@ -95,7 +95,7 @@ class Inset(bpy.types.Operator): def draw(self, context): layout = self.layout box = layout.box() - box.label("Inset Options:") + box.label(text="Inset Options:") box.prop(self, "scale") box.prop(self, "inset_amount") box.prop(self, "inset_height") diff --git a/mocap/__init__.py b/mocap/__init__.py index ca5fe32f7..c9d8bf0b5 100644 --- a/mocap/__init__.py +++ b/mocap/__init__.py @@ -279,7 +279,7 @@ class MocapPanel(bpy.types.Panel): def draw(self, context): layout = self.layout - layout.label("Preprocessing:") + layout.label(text="Preprocessing:") row = layout.row(align=True) row.operator("mocap.denoise", text='Clean noise') @@ -291,7 +291,7 @@ class MocapPanel(bpy.types.Panel): row.operator("mocap.limitdof", text='Constrain Rig') row.operator("mocap.removelimitdof", text='Unconstrain Rig') - layout.label("Retargeting:") + layout.label(text="Retargeting:") enduser_obj = bpy.context.active_object performer_obj = [obj for obj in bpy.context.selected_objects if obj != enduser_obj] if enduser_obj is None or len(performer_obj) != 1: @@ -299,8 +299,8 @@ class MocapPanel(bpy.types.Panel): else: layout.operator("mocap.guessmapping", text="Guess Hierarchy Mapping") labelRow = layout.row(align=True) - labelRow.label("Performer Rig") - labelRow.label("End user Rig") + labelRow.label(text="Performer Rig") + labelRow.label(text="End user Rig") performer_obj = performer_obj[0] if performer_obj.data and enduser_obj.data: if performer_obj.data.name in bpy.data.armatures and enduser_obj.data.name in bpy.data.armatures: @@ -336,9 +336,9 @@ class MocapPanel(bpy.types.Panel): IKCol.prop(pose_bone, 'IKRetarget') IKLabel.label(label_mod) else: - twistCol.label(" ") - IKCol.label(" ") - IKLabel.label(" ") + twistCol.label(text=" ") + IKCol.label(text=" ") + IKLabel.label(text=" ") mapRow = layout.row() mapRow.operator("mocap.savemapping", text='Save mapping') mapRow.operator("mocap.loadmapping", text='Load mapping') @@ -392,16 +392,16 @@ class MocapConstraintsPanel(bpy.types.Panel): if m_constraint.type == "distance" or m_constraint.type == "point": box.prop_search(m_constraint, 'constrained_boneB', enduser_obj.pose, "bones", icon='CONSTRAINT_BONE') frameRow = box.row() - frameRow.label("Frame Range:") + frameRow.label(text="Frame Range:") frameRow.prop(m_constraint, 's_frame') frameRow.prop(m_constraint, 'e_frame') smoothRow = box.row() - smoothRow.label("Smoothing:") + smoothRow.label(text="Smoothing:") smoothRow.prop(m_constraint, 'smooth_in') smoothRow.prop(m_constraint, 'smooth_out') targetRow = box.row() targetLabelCol = targetRow.column() - targetLabelCol.label("Target settings:") + targetLabelCol.label(text="Target settings:") targetPropCol = targetRow.column() if m_constraint.type == "floor": targetPropCol.prop_search(m_constraint, 'targetMesh', bpy.data, "objects") @@ -437,10 +437,10 @@ class ExtraToolsPanel(bpy.types.Panel): enduser_arm = context.active_object.data selectBox = layout.box() selectRetargets = selectBox.row() - selectRetargets.label("Retargeted Animations:") + selectRetargets.label(text="Retargeted Animations:") selectRetargets.prop_search(enduser_arm, "active_mocap", enduser_arm, "mocapNLATracks") stitchBox = layout.box() - stitchBox.label("Animation Stitching") + stitchBox.label(text="Animation Stitching") settings = enduser_arm.stitch_settings stitchBox.prop_search(settings, "first_action", enduser_arm, "mocapNLATracks") stitchBox.prop_search(settings, "second_action", enduser_arm, "mocapNLATracks") diff --git a/object_fracture_cell/__init__.py b/object_fracture_cell/__init__.py index 6f46d3173..c12203742 100644 --- a/object_fracture_cell/__init__.py +++ b/object_fracture_cell/__init__.py @@ -475,7 +475,7 @@ class FractureCell(Operator): layout = self.layout box = layout.box() col = box.column() - col.label("Point Source") + col.label(text="Point Source") rowsub = col.row() rowsub.prop(self, "source") rowsub = col.row() @@ -486,7 +486,7 @@ class FractureCell(Operator): box = layout.box() col = box.column() - col.label("Recursive Shatter") + col.label(text="Recursive Shatter") rowsub = col.row(align=True) rowsub.prop(self, "recursion") rowsub.prop(self, "recursion_source_limit") @@ -497,7 +497,7 @@ class FractureCell(Operator): box = layout.box() col = box.column() - col.label("Mesh Data") + col.label(text="Mesh Data") rowsub = col.row() rowsub.prop(self, "use_smooth_faces") rowsub.prop(self, "use_sharp_edges") @@ -516,7 +516,7 @@ class FractureCell(Operator): box = layout.box() col = box.column() - col.label("Physics") + col.label(text="Physics") rowsub = col.row(align=True) rowsub.prop(self, "mass_mode") rowsub.prop(self, "mass") @@ -524,14 +524,14 @@ class FractureCell(Operator): box = layout.box() col = box.column() - col.label("Object") + col.label(text="Object") rowsub = col.row(align=True) rowsub.prop(self, "use_recenter") box = layout.box() col = box.column() - col.label("Scene") + col.label(text="Scene") rowsub = col.row(align=True) rowsub.prop(self, "use_layer_index") rowsub.prop(self, "use_layer_next") @@ -539,7 +539,7 @@ class FractureCell(Operator): box = layout.box() col = box.column() - col.label("Debug") + col.label(text="Debug") rowsub = col.row(align=True) rowsub.prop(self, "use_debug_redraw") rowsub.prop(self, "use_debug_points") @@ -548,7 +548,7 @@ class FractureCell(Operator): def menu_func(self, context): layout = self.layout - layout.label("Cell Fracture:") + layout.label(text="Cell Fracture:") layout.operator("object.add_fracture_cell_objects", text="Cell Fracture") diff --git a/object_fracture_crack/operator.py b/object_fracture_crack/operator.py index 67217e9a8..0620a308b 100644 --- a/object_fracture_crack/operator.py +++ b/object_fracture_crack/operator.py @@ -141,19 +141,19 @@ class crackitPanel(Panel): col.prop(crackit, "fracture_scalez") col = box.column(align=True) - col.label("Settings:") + col.label(text="Settings:") col.prop(crackit, "fracture_div") col.prop(crackit, "fracture_margin") col = box.column(align=True) - col.label("Extrude:") + col.label(text="Extrude:") col.prop(crackit, "extrude_offset") col.prop(crackit, "extrude_random") # material Preset: box = layout.box() row = box.row() - row.label("Material Preset:") + row.label(text="Material Preset:") row_sub = row.row() row_sub.prop(crackit, "material_lib_name", text="", toggle=True, icon="LONGDISPLAY") diff --git a/object_skinify.py b/object_skinify.py index 010ebdbf4..795492add 100644 --- a/object_skinify.py +++ b/object_skinify.py @@ -684,12 +684,12 @@ class BONE_PT_custom_shape(Panel): row.operator("object.skinify_rig", text="Add Shape", icon='BONE_DATA') split = layout.split(percentage=0.3) - split.label("Thickness:") + split.label(text="Thickness:") split.prop(scn, "thickness", text="Body", icon='MOD_SKIN') split.prop(scn, "finger_thickness", text="Fingers", icon='HAND') split = layout.split(percentage=0.3) - split.label("Mesh Density:") + split.label(text="Mesh Density:") split.prop(scn, "sub_level", icon='MESH_ICOSPHERE') row = layout.row() diff --git a/paint_palette.py b/paint_palette.py index 0d2f32e59..b9c57365b 100644 --- a/paint_palette.py +++ b/paint_palette.py @@ -119,11 +119,11 @@ class PALETTE_MT_menu(Menu): layout = self.layout if bpy.data.filepath == "": - layout.label("*Please save the .blend file first*") + layout.label(text="*Please save the .blend file first*") return if not searchpaths[0]: - layout.label("* Missing Paths *") + layout.label(text="* Missing Paths *") return # collect paths diff --git a/render_povray/__init__.py b/render_povray/__init__.py index b8b2f4e55..a5a152d2a 100644 --- a/render_povray/__init__.py +++ b/render_povray/__init__.py @@ -821,7 +821,7 @@ class PovraySocketFloat_0_10(bpy.types.NodeSocket): default_value: bpy.props.FloatProperty(description="Input node Value_0_10",min=0,max=10,default=0) def draw(self, context, layout, node, text): if node.bl_idname == 'ShaderNormalMapNode' and node.inputs[2].is_linked: - layout.label('') + layout.label(text='') self.hide_value=True if self.is_linked: layout.label(text) @@ -836,7 +836,7 @@ class PovraySocketFloat_10(bpy.types.NodeSocket): default_value: bpy.props.FloatProperty(description="Input node Value_10",min=-10,max=10,default=0) def draw(self, context, layout, node, text): if node.bl_idname == 'ShaderNormalMapNode' and node.inputs[2].is_linked: - layout.label('') + layout.label(text='') self.hide_value=True if self.is_linked: layout.label(text) @@ -923,7 +923,7 @@ class PovraySocketPattern(bpy.types.NodeSocket): def draw(self, context, layout, node, text): if self.is_output or self.is_linked: - layout.label("Pattern") + layout.label(text="Pattern") else: layout.prop(self, "default_value", text=text) diff --git a/render_povray/nodes.py b/render_povray/nodes.py index 17ff22853..ed31df902 100644 --- a/render_povray/nodes.py +++ b/render_povray/nodes.py @@ -834,7 +834,7 @@ class ShaderTextureMapNode(Node, ObjectNodeTree): if self.inputs[0].default_value =='brick': layout.prop(self, "brick_mortar") - layout.label("Brick size:") + layout.label(text="Brick size:") layout.prop(self, "brick_size_x") layout.prop(self, "brick_size_y") layout.prop(self, "brick_size_z") @@ -843,7 +843,7 @@ class ShaderTextureMapNode(Node, ObjectNodeTree): if self.inputs[0].default_value =='brick': layout.prop(self, "brick_mortar") - layout.label("Brick size:") + layout.label(text="Brick size:") layout.prop(self, "brick_size_x") layout.prop(self, "brick_size_y") layout.prop(self, "brick_size_z") @@ -1015,7 +1015,7 @@ class TextureOutputNode(Node, TextureNodeTree): def draw_buttons(self, context, layout): - layout.label("Color Ramps:") + layout.label(text="Color Ramps:") def draw_label(self): return "Color Map" diff --git a/render_povray/ui.py b/render_povray/ui.py index 9691630df..64fbf7922 100644 --- a/render_povray/ui.py +++ b/render_povray/ui.py @@ -767,7 +767,7 @@ class RENDER_PT_povray_photons(RenderButtonsPanel, bpy.types.Panel): box = layout.box() - box.label('Photon Map File:') + box.label(text='Photon Map File:') row = box.row() row.prop(scene.pov, "photon_map_file_save_load",expand = True) if scene.pov.photon_map_file_save_load in {'save'}: diff --git a/sequencer_kinoraw_tools/proxy_tools.py b/sequencer_kinoraw_tools/proxy_tools.py index 10a83344f..e36bf0d07 100644 --- a/sequencer_kinoraw_tools/proxy_tools.py +++ b/sequencer_kinoraw_tools/proxy_tools.py @@ -285,7 +285,7 @@ class CreateProxyToolPanel(Panel): if prefs.use_bi_custom_directory: row.prop(prefs, "proxy_dir", text="") filename = strip.filepath.rpartition("/")[2].rpartition(".")[0] - layout.label("sample dir: //" + bpy.path.abspath(prefs.proxy_dir + filename)) + layout.label(text="sample dir: //" + bpy.path.abspath(prefs.proxy_dir + filename)) layout = self.layout col = layout.column() @@ -299,7 +299,7 @@ class CreateProxyToolPanel(Panel): col.prop(prefs, "timecode") layout = self.layout - layout.label("Setup and create BI proxy:") + layout.label(text="Setup and create BI proxy:") row = layout.row(align=True) for i in range(4): @@ -316,13 +316,13 @@ class CreateProxyToolPanel(Panel): layout.prop(prefs, "proxy_dir", text="Path for proxies") layout = self.layout - layout.label("Create and import proxy from clip:") + layout.label(text="Create and import proxy from clip:") row = layout.row(align=True) layout = self.layout layout.prop(prefs, "ffmpeg_command", text="command") - layout.label("{} = filename, with, height, fileoutput") + layout.label(text="{} = filename, with, height, fileoutput") label = prefs.ffmpeg_command.format("filename", "with", "height", "fileoutput") layout.label(label) diff --git a/sequencer_kinoraw_tools/random_editor.py b/sequencer_kinoraw_tools/random_editor.py index 4e739ff3f..654136fd4 100644 --- a/sequencer_kinoraw_tools/random_editor.py +++ b/sequencer_kinoraw_tools/random_editor.py @@ -133,6 +133,6 @@ class RandomEditorPanel(Panel): layout = self.layout col = layout.column(align=True) - col.label("Cut duration:") + col.label(text="Cut duration:") col.prop(prefs, "random_frames") col.operator("sequencer.randomscratchoperator") diff --git a/sequencer_kinoraw_tools/recursive_loader.py b/sequencer_kinoraw_tools/recursive_loader.py index abc51b6da..246e1b70c 100644 --- a/sequencer_kinoraw_tools/recursive_loader.py +++ b/sequencer_kinoraw_tools/recursive_loader.py @@ -250,7 +250,7 @@ class ExifInfoPanel(Panel): row = col.row() col.label(text=d) col = split.column() - col.label(str(sce['metadata'][0][d])) + col.label(text=str(sce['metadata'][0][d])) else: for d in sce['metadata'][frame - f]: split = layout.split(percentage=0.5) @@ -258,7 +258,7 @@ class ExifInfoPanel(Panel): row = col.row() col.label(text=d) col = split.column() - col.label(str(sce['metadata'][frame - f][d])) + col.label(text=str(sce['metadata'][frame - f][d])) except (IndexError, KeyError): pass diff --git a/sequencer_kinoraw_tools/ui.py b/sequencer_kinoraw_tools/ui.py index 2729bef9e..8f073fbcf 100644 --- a/sequencer_kinoraw_tools/ui.py +++ b/sequencer_kinoraw_tools/ui.py @@ -29,7 +29,7 @@ class SEQUENCER_EXTRA_MT_input(Menu): bl_label = "Input" def draw(self, context): - self.layout.label("Kinoraw Input") + self.layout.label(text="Kinoraw Input") self.layout.separator() self.layout.operator_context = "INVOKE_REGION_WIN" @@ -378,14 +378,14 @@ class JumptoCut(Panel): else: row = layout.row(align=True) - row.label("Snap:") + row.label(text="Snap:") row.operator("sequencerextra.extrasnap", text="Left", icon="SNAP_ON").align = 0 row.operator("sequencerextra.extrasnap", text="Center", icon="SNAP_SURFACE").align = 1 row.operator("sequencerextra.extrasnap", text="Right", icon="SNAP_ON").align = 2 row = layout.row(align=True) - row.label("Handlers:") + row.label(text="Handlers:") row.operator("sequencerextra.extrahandles", text="Left", icon="TRIA_LEFT").side = 0 row.operator("sequencerextra.extrahandles", @@ -591,7 +591,7 @@ class JumptoCut(Panel): sub.operator("screen.animation_play", text="", icon='PAUSE' if context.screen.is_animation_playing else 'PLAY') - row.label("Cut To") + row.label(text="Cut To") for i in range(1, strip.channel): row.operator("sequencer.cut_multicam", text="%d" % i).camera = i diff --git a/space_view3d_brush_menus/brush_menu.py b/space_view3d_brush_menus/brush_menu.py index f8c46ba71..d4c6863fc 100644 --- a/space_view3d_brush_menus/brush_menu.py +++ b/space_view3d_brush_menus/brush_menu.py @@ -108,8 +108,8 @@ class BrushOptionsMenu(Menu): toolsettings = context.tool_settings.image_paint if context.image_paint_object and not toolsettings.detect_data(): - layout.row().label("Missing Data", icon="INFO") - layout.row().label("See Tool Shelf", icon="BACK") + layout.row().label(text="Missing Data", icon="INFO") + layout.row().label(text="See Tool Shelf", icon="BACK") else: has_brush = utils_core.get_brush_link(context, types="brush") if has_brush and has_brush.image_tool in {'DRAW', 'FILL'} and \ @@ -145,7 +145,7 @@ class BrushOptionsMenu(Menu): particle_edit = context.tool_settings.particle_edit if particle_edit.tool == 'NONE': - layout.row().label("No Brush Selected", icon="INFO") + layout.row().label(text="No Brush Selected", icon="INFO") layout.row().separator() layout.row().menu("VIEW3D_MT_sv3_brushes_menu", text="Select Brush", icon="BRUSH_DATA") @@ -271,7 +271,7 @@ class BrushStrengthMenu(Menu): disable_icon='RADIOBUT_ON' ) else: - layout.row().label("No brushes available", icon="INFO") + layout.row().label(text="No brushes available", icon="INFO") class BrushModeMenu(Menu): @@ -336,7 +336,7 @@ class BrushModeMenu(Menu): disable=True, disable_icon='RADIOBUT_ON' ) else: - layout.row().label("No brushes available", icon="INFO") + layout.row().label(text="No brushes available", icon="INFO") class BrushAutosmoothMenu(Menu): @@ -372,7 +372,7 @@ class BrushAutosmoothMenu(Menu): disable_icon='RADIOBUT_ON' ) else: - layout.row().label("No Smooth options available", icon="INFO") + layout.row().label(text="No Smooth options available", icon="INFO") class BrushWeightMenu(Menu): @@ -417,7 +417,7 @@ class BrushWeightMenu(Menu): disable_icon='RADIOBUT_ON' ) else: - layout.row().label("No brush available", icon="INFO") + layout.row().label(text="No brush available", icon="INFO") class ParticleCountMenu(Menu): @@ -584,7 +584,7 @@ class ColorPickerPopup(Operator): layout.row().template_ID(settings, "palette", new="palette.new") else: - layout.row().label("No brushes currently available", icon="INFO") + layout.row().label(text="No brushes currently available", icon="INFO") return diff --git a/space_view3d_brush_menus/curve_menu.py b/space_view3d_brush_menus/curve_menu.py index 3c3282ec1..d9922a69f 100644 --- a/space_view3d_brush_menus/curve_menu.py +++ b/space_view3d_brush_menus/curve_menu.py @@ -63,9 +63,9 @@ class CurvePopup(Operator): layout.column().template_curve_mapping(has_brush, "curve", brush=True) else: - layout.row().label("No brushes available", icon="INFO") + layout.row().label(text="No brushes available", icon="INFO") else: - layout.row().label("No brushes available", icon="INFO") + layout.row().label(text="No brushes available", icon="INFO") def execute(self, context): return context.window_manager.invoke_popup(self, width=180) diff --git a/space_view3d_brush_menus/dyntopo_menu.py b/space_view3d_brush_menus/dyntopo_menu.py index a755b9836..0858d2ef3 100644 --- a/space_view3d_brush_menus/dyntopo_menu.py +++ b/space_view3d_brush_menus/dyntopo_menu.py @@ -108,7 +108,7 @@ class DetailMethodMenu(Menu): ("Constant Detail", 'CONSTANT'), ("Brush Detail", 'BRUSH')) - layout.row().label("Refine") + layout.row().label(text="Refine") layout.row().separator() # add the refine menu items @@ -120,9 +120,9 @@ class DetailMethodMenu(Menu): disable_icon='RADIOBUT_ON' ) - layout.row().label("") + layout.row().label(text="") - layout.row().label("Type") + layout.row().label(text="Type") layout.row().separator() # add the type menu items diff --git a/space_view3d_brush_menus/stroke_menu.py b/space_view3d_brush_menus/stroke_menu.py index 7306d3e97..c78dd13aa 100644 --- a/space_view3d_brush_menus/stroke_menu.py +++ b/space_view3d_brush_menus/stroke_menu.py @@ -41,7 +41,7 @@ class PaintCurvesMenu(Menu): ) else: - layout.row().label("No Paint Curves Available", icon="INFO") + layout.row().label(text="No Paint Curves Available", icon="INFO") class StrokeOptionsMenu(Menu): bl_label = "Stroke Options" @@ -135,7 +135,7 @@ class StrokeOptionsMenu(Menu): layout.row().prop(brush, "smooth_stroke_factor", text=utils_core.PIW + "Factor", slider=True) else: - layout.row().label("No Stroke Options available", icon="INFO") + layout.row().label(text="No Stroke Options available", icon="INFO") class StrokeMethodMenu(Menu): @@ -182,4 +182,4 @@ class StrokeMethodMenu(Menu): disable_icon='RADIOBUT_ON' ) else: - layout.row().label("No Stroke Method available", icon="INFO") + layout.row().label(text="No Stroke Method available", icon="INFO") diff --git a/space_view3d_brush_menus/texture_menu.py b/space_view3d_brush_menus/texture_menu.py index 14d91c1ff..4b5c4969b 100644 --- a/space_view3d_brush_menus/texture_menu.py +++ b/space_view3d_brush_menus/texture_menu.py @@ -61,7 +61,7 @@ class TextureMenu(Menu): layout.row().operator("brush.stencil_reset_transform") else: - layout.row().label("No Texture Slot available", icon="INFO") + layout.row().label(text="No Texture Slot available", icon="INFO") def vertpaint(self, layout, context): has_brush = utils_core.get_brush_link(context, types="brush") @@ -94,7 +94,7 @@ class TextureMenu(Menu): layout.row().operator("brush.stencil_reset_transform") else: - layout.row().label("No Texture Slot available", icon="INFO") + layout.row().label(text="No Texture Slot available", icon="INFO") def texpaint(self, layout, context): has_brush = utils_core.get_brush_link(context, types="brush") @@ -131,7 +131,7 @@ class TextureMenu(Menu): layout.row().operator("brush.stencil_reset_transform") else: - layout.row().label("No Texture Slot available", icon="INFO") + layout.row().label(text="No Texture Slot available", icon="INFO") layout.row().separator() @@ -166,7 +166,7 @@ class TextureMenu(Menu): prop.mask = True else: - layout.row().label("Mask Texture not available", icon="INFO") + layout.row().label(text="Mask Texture not available", icon="INFO") class Textures(Menu): @@ -269,7 +269,7 @@ class TextureMapMode(Menu): disable_icon='RADIOBUT_ON' ) else: - layout.row().label("No brushes available", icon="INFO") + layout.row().label(text="No brushes available", icon="INFO") class MaskTextures(Menu): @@ -310,7 +310,7 @@ class MaskTextures(Menu): path=True ) else: - layout.row().label("No brushes available", icon="INFO") + layout.row().label(text="No brushes available", icon="INFO") class MaskMapMode(Menu): @@ -336,7 +336,7 @@ class MaskMapMode(Menu): disable_icon='RADIOBUT_ON' ) else: - layout.row().label("No brushes available", icon="INFO") + layout.row().label(text="No brushes available", icon="INFO") class TextureAngleSource(Menu): @@ -372,7 +372,7 @@ class TextureAngleSource(Menu): disable_icon='RADIOBUT_ON' ) else: - layout.row().label("No brushes available", icon="INFO") + layout.row().label(text="No brushes available", icon="INFO") class MaskPressureModeMenu(Menu): bl_label = "Mask Pressure Mode" diff --git a/space_view3d_display_tools/__init__.py b/space_view3d_display_tools/__init__.py index a36ff95b8..f97733587 100644 --- a/space_view3d_display_tools/__init__.py +++ b/space_view3d_display_tools/__init__.py @@ -152,7 +152,7 @@ class DisplayToolsPanel(Panel): if render.use_simplify is True: col = layout.column(align=True) - col.label("Settings :") + col.label(text="Settings :") col.prop(render, "simplify_subdivision", "Subdivision") col.prop(render, "simplify_shadow_samples", "Shadow Samples") col.prop(render, "simplify_child_particles", "Child Particles") @@ -227,7 +227,7 @@ class DisplayToolsPanel(Panel): col = layout.column(align=True) col.alignment = 'EXPAND' - col.label("Bounding Box:") + col.label(text="Bounding Box:") row = col.row() row.prop(display_tools, "BoundingMode", text="Type") row = col.row() @@ -340,7 +340,7 @@ class DisplayToolsPanel(Panel): col.separator() row = col.row() - row.label("Subsurf Visibility:", icon="ALIASED") + row.label(text="Subsurf Visibility:", icon="ALIASED") col = layout.column(align=True) row1 = col.row(align=True) @@ -376,7 +376,7 @@ class DisplayToolsPanel(Panel): col.separator() row = col.row(align=True) - row.label("Subdivision Level:", icon="MOD_SUBSURF") + row.label(text="Subdivision Level:", icon="MOD_SUBSURF") row = col.row(align=True) row.operator("view3d.modifiers_subsurf_level_set", text="0").level = 0 @@ -442,7 +442,7 @@ class DisplayToolsPanel(Panel): col.operator("view3d.fast_navigate_operator", icon="NEXT_KEYFRAME") col.operator("view3d.fast_navigate_stop", icon="PANEL_CLOSE") - layout.label("Settings:") + layout.label(text="Settings:") layout.prop(display_tools, "OriginalMode") layout.prop(display_tools, "FastMode") layout.prop(display_tools, "EditActive", "Edit mode") @@ -459,7 +459,7 @@ class DisplayToolsPanel(Panel): col.prop(display_tools, "ParticlesPercentageDisplay") col = layout.column(align=True) - col.label("Screen Active Area:") + col.label(text="Screen Active Area:") col.prop(display_tools, "ScreenStart") col.prop(display_tools, "ScreenEnd") diff --git a/space_view3d_stored_views/ui.py b/space_view3d_stored_views/ui.py index c8bfaeefa..9388128a4 100644 --- a/space_view3d_stored_views/ui.py +++ b/space_view3d_stored_views/ui.py @@ -245,7 +245,7 @@ class VIEW3D_PT_properties_stored_views(Panel): layout = self.layout scene = context.scene - layout.label("Camera Selector") + layout.label(text="Camera Selector") cameras = sorted([o for o in scene.objects if o.type == 'CAMERA'], key=lambda o: o.name) @@ -260,4 +260,4 @@ class VIEW3D_PT_properties_stored_views(Panel): row.operator("cameraselector.add_camera_marker", text='', icon='MARKER') else: - layout.label("No cameras in this scene") + layout.label(text="No cameras in this scene") -- GitLab