diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-28 09:27:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-28 09:27:03 +0300 |
commit | d8d245917da69741e19bb486fe2112b9c5c1a55a (patch) | |
tree | 78a18651762dabd9586f55d25ed9ff57b9652680 /release/scripts/startup/bl_ui/space_text.py | |
parent | a18a6a1441e4c08b3a40637f6d1e9264183a5795 (diff) |
Cleanup: pep8
Diffstat (limited to 'release/scripts/startup/bl_ui/space_text.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_text.py | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index eccb0ecdddf..af9c0e80ae5 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -46,17 +46,15 @@ class TEXT_HT_header(Header): row.prop(st, "show_word_wrap", text="") row.prop(st, "show_syntax_highlight", text="") - layout.separator_spacer()
+ layout.separator_spacer() - row = layout.row(align=True)
- row.template_ID(st, "text", new="text.new", unlink="text.unlink", open="text.open")
-
- layout.separator_spacer()
+ row = layout.row(align=True) + row.template_ID(st, "text", new="text.new", unlink="text.unlink", open="text.open") + + layout.separator_spacer() -
-
- if text:
- osl = text.name.endswith(".osl") or text.name.endswith(".oso")
+ if text: + osl = text.name.endswith(".osl") or text.name.endswith(".oso") row = layout.row() if text.filepath: @@ -70,18 +68,16 @@ class TEXT_HT_header(Header): row.label(text="Text: External" if text.library else "Text: Internal") - if osl:
- row = layout.row()
- row.operator("node.shader_script_update")
- else:
- row = layout.row()
- row.active = text.name.endswith(".py")
- row.prop(text, "use_module")
-
- row = layout.row()
- row.operator("text.run_script")
-
-
+ if osl: + row = layout.row() + row.operator("node.shader_script_update") + else: + row = layout.row() + row.active = text.name.endswith(".py") + row.prop(text, "use_module") + + row = layout.row() + row.operator("text.run_script") class TEXT_MT_editor_menus(Menu): |