[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43466] trunk/blender/release/scripts/ startup/bl_ui/space_clip.py: PEP8 complaint changes

Sergey Sharybin sergey.vfx at gmail.com
Tue Jan 17 18:27:19 CET 2012


Revision: 43466
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43466
Author:   nazgul
Date:     2012-01-17 17:27:18 +0000 (Tue, 17 Jan 2012)
Log Message:
-----------
PEP8 complaint changes

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_clip.py

Modified: trunk/blender/release/scripts/startup/bl_ui/space_clip.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_clip.py	2012-01-17 17:26:58 UTC (rev 43465)
+++ trunk/blender/release/scripts/startup/bl_ui/space_clip.py	2012-01-17 17:27:18 UTC (rev 43466)
@@ -162,22 +162,25 @@
 
     def draw(self, context):
         layout = self.layout
-        # clip = context.space_data.clip  # UNUSED
 
         row = layout.row(align=True)
 
-        row.operator("clip.track_markers", text="", icon='FRAME_PREV').backwards = True
+        props = row.operator("clip.track_markers", text="", icon='FRAME_PREV')
+        props.backwards = True
         props = row.operator("clip.track_markers", text="",
                              icon='PLAY_REVERSE')
         props.backwards = True
         props.sequence = True
-        row.operator("clip.track_markers", text="", icon='PLAY').sequence = True
+        props = row.operator("clip.track_markers", text="", icon='PLAY')
+        props.sequence = True
         row.operator("clip.track_markers", text="", icon='FRAME_NEXT')
 
         col = layout.column(align=True)
-        col.operator("clip.clear_track_path", text="Clear After").action = 'REMAINED'
+        props = col.operator("clip.clear_track_path", text="Clear After")
+        props.action = 'REMAINED'
 
-        col.operator("clip.clear_track_path", text="Clear Before").action = 'UPTO'
+        props = col.operator("clip.clear_track_path", text="Clear Before")
+        props.action = 'UPTO'
         col.operator("clip.clear_track_path", text="Clear").action = 'ALL'
 
         layout.operator("clip.join_tracks", text="Join")
@@ -371,7 +374,7 @@
 
     def draw(self, context):
         layout = self.layout
-        
+
         sc = context.space_data
         tracking = sc.clip.tracking
 
@@ -478,7 +481,8 @@
         label = bpy.types.CLIP_MT_camera_presets.bl_label
         row.menu('CLIP_MT_camera_presets', text=label)
         row.operator("clip.camera_preset_add", text="", icon='ZOOMIN')
-        row.operator("clip.camera_preset_add", text="", icon='ZOOMOUT').remove_active = True
+        props = row.operator("clip.camera_preset_add", text="", icon='ZOOMOUT')
+        props.remove_active = True
 
         row = layout.row(align=True)
         sub = row.split(percentage=0.65)
@@ -942,7 +946,8 @@
 
         layout.separator()
 
-        layout.operator("clip.select_all", text="Select/Deselect all").action = 'TOGGLE'
+        props = layout.operator("clip.select_all", text="Select/Deselect all")
+        props.action = 'TOGGLE'
         layout.operator("clip.select_all", text="Inverse").action = 'INVERT'
 
         layout.menu("CLIP_MT_select_grouped")
@@ -967,9 +972,13 @@
     def draw(self, context):
         layout = self.layout
 
-        layout.operator("clip.disable_markers", text="Enable Markers").action = 'ENABLE'
-        layout.operator("clip.disable_markers", text="Disable markers").action = 'DISABLE'
+        props = layout.operator("clip.disable_markers",
+                                text="Enable Markers")
+        props.action = 'ENABLE'
 
+        props = layout.operator("clip.disable_markers", text="Disable markers")
+        props.action = 'DISABLE'
+
         layout.separator()
         layout.operator("clip.set_origin")
 



More information about the Bf-blender-cvs mailing list