used py error checking tools to fix some bugs & make pep8 corrections

This commit is contained in:
Campbell Barton
2009-11-14 13:35:44 +00:00
parent aac16ce4ec
commit d33291fcc4
28 changed files with 228 additions and 249 deletions

View File

@@ -41,7 +41,7 @@ class USERPREF_MT_view(bpy.types.Menu):
bl_label = "View"
def draw(self, context):
layout = self.layout
pass # layout = self.layout
class USERPREF_PT_tabs(bpy.types.Panel):
@@ -383,7 +383,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
col.itemR(v3d, "editmesh_active", slider=True)
col = split.column()
col.itemR(v3d, "object_selected")
col.itemR(v3d, "object_active")
col.itemR(v3d, "object_grouped")
@@ -736,45 +736,45 @@ class USERPREF_PT_theme(bpy.types.Panel):
col.itemR(graph, "button")
col.itemR(graph, "button_title")
col.itemR(graph, "button_text")
col = split.column()
col.itemR(graph, "header")
col.itemR(graph, "grid")
col.itemR(graph, "list")
col.itemR(graph, "channel_group")
col = split.column()
col.itemR(graph, "active_channels_group")
col.itemR(graph, "dopesheet_channel")
col.itemR(graph, "dopesheet_subchannel")
col.itemR(graph, "vertex")
col = split.column()
col.itemR(graph, "current_frame")
col.itemR(graph, "handle_vertex")
col.itemR(graph, "handle_vertex_select")
col.itemS()
col.itemR(graph, "handle_vertex_size")
elif theme.active_theme == 'FILE_BROWSER':
file = theme.file_browser
file_browse = theme.file_browser
col = split.column()
col.itemR(file, "back")
col.itemR(file, "text")
col.itemR(file, "text_hi")
col.itemR(file_browse, "back")
col.itemR(file_browse, "text")
col.itemR(file_browse, "text_hi")
col = split.column()
col.itemR(file, "header")
col.itemR(file, "list")
col.itemR(file_browse, "header")
col.itemR(file_browse, "list")
col = split.column()
col.itemR(file, "selected_file")
col.itemR(file, "tiles")
col.itemR(file_browse, "selected_file")
col.itemR(file_browse, "tiles")
col = split.column()
col.itemR(file, "active_file")
col.itemR(file, "active_file_text")
col.itemR(file_browse, "active_file")
col.itemR(file_browse, "active_file_text")
elif theme.active_theme == 'NLA_EDITOR':
nla = theme.nla_editor
@@ -783,17 +783,17 @@ class USERPREF_PT_theme(bpy.types.Panel):
col.itemR(nla, "back")
col.itemR(nla, "button")
col.itemR(nla, "button_title")
col = split.column()
col.itemR(nla, "button_text")
col.itemR(nla, "text")
col.itemR(nla, "header")
col = split.column()
col.itemR(nla, "grid")
col.itemR(nla, "bars")
col.itemR(nla, "bars_selected")
col = split.column()
col.itemR(nla, "strips")
col.itemR(nla, "strips_selected")
@@ -830,7 +830,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
col = split.column()
col.itemR(image, "back")
col.itemR(image, "button")
col = split.column()
col.itemR(image, "button_title")
col.itemR(image, "button_text")
@@ -875,7 +875,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
col = split.column()
col.itemR(prop, "back")
col = split.column()
col.itemR(prop, "title")
@@ -893,7 +893,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
col.itemR(text, "button")
col.itemR(text, "button_title")
col.itemR(text, "button_text")
col = split.column()
col.itemR(text, "text")
col.itemR(text, "text_hi")
@@ -923,7 +923,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
col = split.column()
col.itemR(time, "grid")
col = split.column()
col.itemR(time, "current_frame")
@@ -935,7 +935,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
col.itemR(node, "button")
col.itemR(node, "button_title")
col.itemR(node, "button_text")
col = split.column()
col.itemR(node, "text")
@@ -980,7 +980,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
col = split.column()
col.itemR(out, "text")
col = split.column()
col.itemR(out, "text_hi")
@@ -1009,7 +1009,7 @@ class USERPREF_PT_theme(bpy.types.Panel):
col = split.column()
col.itemR(prefs, "text")
col = split.column()
col.itemR(prefs, "header")
@@ -1065,7 +1065,7 @@ class USERPREF_PT_file(bpy.types.Panel):
col = split.column()
sub = col.split(percentage=0.2)
sub1 = sub.column()
sub.column() # sub1, unused
sub2 = sub.column()
sub2.itemL(text="Save & Load:")
sub2.itemR(paths, "use_relative_paths")
@@ -1101,7 +1101,7 @@ class USERPREF_PT_input(bpy.types.Panel):
userpref = context.user_preferences
wm = context.manager
#input = userpref.input
input = userpref
#input = userpref
inputs = userpref.inputs
split = layout.split(percentage=0.25)
@@ -1159,7 +1159,7 @@ class USERPREF_PT_input(bpy.types.Panel):
# Keymap Settings
col = split.column()
kc = wm.active_keyconfig
# kc = wm.active_keyconfig
defkc = wm.default_keyconfig
km = wm.active_keymap
@@ -1398,7 +1398,7 @@ class WM_OT_keyitem_add(bpy.types.Operator):
def execute(self, context):
wm = context.manager
km = wm.active_keymap
kmi = km.add_item("", 'A', 'PRESS')
km.add_item("", 'A', 'PRESS') # kmi
return ('FINISHED',)