diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-05 05:47:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-05 05:47:55 +0300 |
commit | cd02fe5d70506539800c50544dc75a9ae1c72b9d (patch) | |
tree | 715767cb0a85dcc624518d4f7fc43818316c57de /release/scripts/startup/bl_ui/space_text.py | |
parent | f69ea92599aaf032276cc519f8bccd0a66ac30a5 (diff) |
Cleanup: remove underscore prefix for used vars
Also remove unused vars.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_text.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_text.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index 534561efab4..7a50b690ad8 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -129,10 +129,10 @@ class TEXT_PT_properties(Panel): flow.active = False row = flow.row(align=True) st = context.space_data - row.prop(st, "show_margin", text = "Margin") + row.prop(st, "show_margin", text="Margin") rowsub = row.row() rowsub.active = st.show_margin - rowsub.prop(st, "margin_column", text = "") + rowsub.prop(st, "margin_column", text="") flow.prop(st, "font_size") flow.prop(st, "tab_width") @@ -285,8 +285,6 @@ class TEXT_MT_format(Menu): def draw(self, _context): layout = self.layout - st = _context.space_data - text = st.text layout.operator("text.indent") layout.operator("text.unindent") @@ -321,12 +319,11 @@ class TEXT_MT_edit(Menu): @classmethod def poll(cls, context): - return (context.space_data.text) + return context.space_data.text is not None - def draw(self, _context): + def draw(self, context): layout = self.layout - st = _context.space_data - text = st.text + st = context.space_data layout.operator("ed.undo") layout.operator("ed.redo") @@ -369,8 +366,6 @@ class TEXT_MT_toolbox(Menu): def draw(self, _context): layout = self.layout - st = _context.space_data - text = st.text layout.operator_context = 'INVOKE_DEFAULT' |