diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-01 05:58:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-01 05:58:44 +0300 |
commit | 10fec1f153295c9bd60eaa96dfcd09d8cf1b3d91 (patch) | |
tree | 5dc23cd4c0d132761fae552de23c1a1bee985356 /release/scripts/startup/bl_ui/__init__.py | |
parent | 078e012cd9711e3d9b88bdf437f31e39518315df (diff) |
Cleanup: Python code-style (addons, wm)
Diffstat (limited to 'release/scripts/startup/bl_ui/__init__.py')
-rw-r--r-- | release/scripts/startup/bl_ui/__init__.py | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/release/scripts/startup/bl_ui/__init__.py b/release/scripts/startup/bl_ui/__init__.py index 5b609605cee..0a7b2cd2e8b 100644 --- a/release/scripts/startup/bl_ui/__init__.py +++ b/release/scripts/startup/bl_ui/__init__.py @@ -99,17 +99,21 @@ def register(): register_class(cls) # space_userprefs.py - from bpy.props import StringProperty, EnumProperty + from bpy.props import ( + EnumProperty, + StringProperty, + ) from bpy.types import WindowManager def addon_filter_items(self, context): import addon_utils - items = [('All', "All", "All Add-ons"), - ('User', "User", "All Add-ons Installed by User"), - ('Enabled', "Enabled", "All Enabled Add-ons"), - ('Disabled', "Disabled", "All Disabled Add-ons"), - ] + items = [ + ('All', "All", "All Add-ons"), + ('User', "User", "All Add-ons Installed by User"), + ('Enabled', "Enabled", "All Enabled Add-ons"), + ('Disabled', "Disabled", "All Disabled Add-ons"), + ] items_unique = set() @@ -121,26 +125,27 @@ def register(): return items WindowManager.addon_search = StringProperty( - name="Search", - description="Search within the selected filter", - options={'TEXTEDIT_UPDATE'}, - ) + name="Search", + description="Search within the selected filter", + options={'TEXTEDIT_UPDATE'}, + ) WindowManager.addon_filter = EnumProperty( - items=addon_filter_items, - name="Category", - description="Filter add-ons by category", - ) + items=addon_filter_items, + name="Category", + description="Filter add-ons by category", + ) WindowManager.addon_support = EnumProperty( - items=[('OFFICIAL', "Official", "Officially supported"), - ('COMMUNITY', "Community", "Maintained by community developers"), - ('TESTING', "Testing", "Newly contributed scripts (excluded from release builds)") - ], - name="Support", - description="Display support level", - default={'OFFICIAL', 'COMMUNITY'}, - options={'ENUM_FLAG'}, - ) + items=[ + ('OFFICIAL', "Official", "Officially supported"), + ('COMMUNITY', "Community", "Maintained by community developers"), + ('TESTING', "Testing", "Newly contributed scripts (excluded from release builds)") + ], + name="Support", + description="Display support level", + default={'OFFICIAL', 'COMMUNITY'}, + options={'ENUM_FLAG'}, + ) # done... |