made scripts pass the pep8 test (though not fully pep8 yet)

added comment in header to know if a script has been converted or not.
This commit is contained in:
2009-10-31 23:35:56 +00:00
parent 41c0236aaa
commit d964808846
41 changed files with 612 additions and 213 deletions

View File

@@ -3,9 +3,10 @@
# http://www.gnu.org/copyleft/gpl.html. Installing, importing or otherwise
# using this module constitutes acceptance of the terms of this License.
# <pep8 compliant>
import bpy
class BoneButtonsPanel(bpy.types.Panel):
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
@@ -14,6 +15,7 @@ class BoneButtonsPanel(bpy.types.Panel):
def poll(self, context):
return (context.bone or context.edit_bone)
class BONE_PT_context_bone(BoneButtonsPanel):
bl_label = ""
bl_show_header = False
@@ -29,6 +31,7 @@ class BONE_PT_context_bone(BoneButtonsPanel):
row.itemL(text="", icon='ICON_BONE_DATA')
row.itemR(bone, "name", text="")
class BONE_PT_transform(BoneButtonsPanel):
bl_label = "Transform"
@@ -74,6 +77,7 @@ class BONE_PT_transform(BoneButtonsPanel):
layout.itemR(pchan, "rotation_mode")
class BONE_PT_transform_locks(BoneButtonsPanel):
bl_label = "Transform Locks"
bl_default_closed = True
@@ -104,6 +108,7 @@ class BONE_PT_transform_locks(BoneButtonsPanel):
row.column().itemR(pchan, "lock_scale")
class BONE_PT_relations(BoneButtonsPanel):
bl_label = "Relations"
@@ -145,6 +150,7 @@ class BONE_PT_relations(BoneButtonsPanel):
sub.itemR(bone, "hinge", text="Inherit Rotation")
sub.itemR(bone, "inherit_scale", text="Inherit Scale")
class BONE_PT_display(BoneButtonsPanel):
bl_label = "Display"
@@ -178,6 +184,7 @@ class BONE_PT_display(BoneButtonsPanel):
col.itemL(text="Custom Shape:")
col.itemR(pchan, "custom_shape", text="")
class BONE_PT_deform(BoneButtonsPanel):
bl_label = "Deform"
bl_default_closed = True