diff options
author | Thomas Dinges <blender@dingto.org> | 2013-04-14 02:52:28 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-04-14 02:52:28 +0400 |
commit | 98f78fde23df2da1e78659726ee99e7cecdf2a30 (patch) | |
tree | a76d78c16516c8e51abd9d2b8a0a9d7d4510d822 /release/scripts/startup/bl_ui/space_userpref.py | |
parent | 7c4be992818e2286dd795bca023243bb268653d5 (diff) |
Code cleanup / Layout script:
* Never ever use something like "rowsub" as variable.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_userpref.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 944df961306..b2a6dec0cf7 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -1114,9 +1114,9 @@ class USERPREF_PT_addons(Panel): def draw_error(layout, message): lines = message.split("\n") box = layout.box() - rowsub = box.row() - rowsub.label(lines[0]) - rowsub.label(icon='ERROR') + sub = box.row() + sub.label(lines[0]) + sub.label(icon='ERROR') for l in lines[1:]: box.label(l) @@ -1199,14 +1199,14 @@ class USERPREF_PT_addons(Panel): row.operator("wm.addon_expand", icon='TRIA_DOWN' if info["show_expanded"] else 'TRIA_RIGHT', emboss=False).module = module_name - rowsub = row.row() - rowsub.active = is_enabled - rowsub.label(text='%s: %s' % (info["category"], info["name"])) + sub = row.row() + sub.active = is_enabled + sub.label(text='%s: %s' % (info["category"], info["name"])) if info["warning"]: - rowsub.label(icon='ERROR') + sub.label(icon='ERROR') # icon showing support level. - rowsub.label(icon=self._support_icon_mapping.get(info["support"], 'QUESTION')) + sub.label(icon=self._support_icon_mapping.get(info["support"], 'QUESTION')) if is_enabled: row.operator("wm.addon_disable", icon='CHECKBOX_HLT', text="", emboss=False).module = module_name |