Cleanup: pep8 & redundant vars

This commit is contained in:
Campbell Barton
2014-07-22 12:03:15 +10:00
parent 88f126f2eb
commit 200dd87de1
11 changed files with 19 additions and 22 deletions

View File

@@ -160,14 +160,14 @@ class SEQUENCER_MT_view(Menu):
if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}:
layout.operator_context = 'INVOKE_REGION_PREVIEW'
layout.operator("sequencer.view_all_preview", text="Fit preview in window")
layout.separator()
ratios = ((1, 8), (1, 4), (1, 2), (1, 1), (2, 1), (4, 1), (8, 1))
for a, b in ratios:
layout.operator("sequencer.view_zoom_ratio", text=iface_("Zoom %d:%d") % (a, b), translate=False).ratio = a / b
layout.separator()
layout.operator_context = 'INVOKE_DEFAULT'