Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-05-19 17:25:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-19 17:25:40 +0300
commite65643b9a3e90866b05f032fec1bc05f7d6ac999 (patch)
tree4b2ca6a4e520eee056f803c15ea53b477a09ca21 /release/scripts/startup/bl_ui/space_topbar.py
parent7cbf5db24851248389555a518b49f105b880cbb9 (diff)
Cleanup: style
No need to use text keyword arg for labels
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 3683eea9128..4889f0886f4 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -163,7 +163,6 @@ class TOPBAR_HT_lower_bar(Header):
elif mode == 'PARTICLE':
layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context=".paint_common", category="")
-
def draw_right(self, context):
layout = self.layout
@@ -207,7 +206,7 @@ class TOPBAR_HT_lower_bar(Header):
region_type='HEADER',
panel_type="TOPBAR_PT_pivot_point",
icon=act_pivot_point.icon,
- text=""
+ text="",
)
if obj:
@@ -348,16 +347,17 @@ class TOPBAR_PT_pivot_point(Panel):
layout = self.layout
col = layout.column()
- col.label(text="Pivot Point")
+ col.label("Pivot Point")
col.prop(toolsettings, "transform_pivot_point", expand=True)
col.separator()
if (obj is None) or (mode in {'OBJECT', 'POSE', 'WEIGHT_PAINT'}):
col.prop(
- toolsettings,
- "use_transform_pivot_point_align",
- text="Center Points Only")
+ toolsettings,
+ "use_transform_pivot_point_align",
+ text="Center Points Only",
+ )
class TOPBAR_PT_snapping(Panel):
@@ -374,7 +374,7 @@ class TOPBAR_PT_snapping(Panel):
layout = self.layout
col = layout.column()
- col.label(text="Snapping")
+ col.label("Snapping")
col.prop(toolsettings, "snap_element", expand=True)
col.separator()
@@ -382,7 +382,7 @@ class TOPBAR_PT_snapping(Panel):
if snap_element == 'INCREMENT':
col.prop(toolsettings, "use_snap_grid_absolute")
else:
- col.label(text="Target")
+ col.label("Target")
row = col.row(align=True)
row.prop(toolsettings, "snap_target", expand=True)