diff options
author | NBurn <7nburn@gmail.com> | 2019-01-23 23:03:09 +0300 |
---|---|---|
committer | NBurn <7nburn@gmail.com> | 2019-01-23 23:03:09 +0300 |
commit | 49c1b409286937d00a63fbf4cfb1f820a75a80c0 (patch) | |
tree | e85be0be22a3929aa28e4f3b4d3b16741eb26ebc /add_advanced_objects_menu | |
parent | 54f2341bdee0e6e5dfacd65a38740f99996efa52 (diff) |
addons: add missing text= keyword after label
Diffstat (limited to 'add_advanced_objects_menu')
-rw-r--r-- | add_advanced_objects_menu/copy2.py | 6 | ||||
-rw-r--r-- | add_advanced_objects_menu/cubester.py | 20 | ||||
-rw-r--r-- | add_advanced_objects_menu/rope_alpha.py | 8 | ||||
-rw-r--r-- | add_advanced_objects_menu/trilighting.py | 10 |
4 files changed, 22 insertions, 22 deletions
diff --git a/add_advanced_objects_menu/copy2.py b/add_advanced_objects_menu/copy2.py index 9806ad0d..14dd312f 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 f93adbb8..0b75285a 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 b7d6d8dd..a7379282 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 e14ec0e1..000df5a7 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): |