diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-19 18:59:58 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-10-19 19:12:29 +0300 |
commit | d7d3233715503ecc15b8dd1973f7e73257e2cbda (patch) | |
tree | f9f9ab24b89fe574b3f972e45c8337bcd791a9b1 /development_api_navigator.py | |
parent | 84b817117328b3193533324846ec389b1f5fe5c4 (diff) |
Spelling fixes in comments and descriptions, patch by luzpaz.
Differential Revision: https://developer.blender.org/D3746
Diffstat (limited to 'development_api_navigator.py')
-rw-r--r-- | development_api_navigator.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/development_api_navigator.py b/development_api_navigator.py index 15622ec7..5e0276cb 100644 --- a/development_api_navigator.py +++ b/development_api_navigator.py @@ -34,7 +34,7 @@ bl_info = { that tries to be representative of its type. These lists are : * Items (for an iterable object) - * Item Values (for an iterable object wich only supports index) + * Item Values (for an iterable object which only supports index) * Modules * Types * Properties @@ -47,7 +47,7 @@ that tries to be representative of its type. These lists are : filter section. It is also possible to explore other modules. Go the the root and select it in the list of available modules. It will be imported dynamically. - In the text section, some informations are displayed. The type of the object, + In the text section, some information are displayed. The type of the object, what it returns, and its docstring. We could hope that these docstrings will be as descriptive as possible. This text data block named api_doc_ can be toggled on and off with the Escape key. (but a bug prevent the keymap to register correctly at start) @@ -85,7 +85,7 @@ def init_tree_level(): init_tree_level() -api_doc_ = '' # the documentation formated for the API Navigator +api_doc_ = '' # the documentation formatted for the API Navigator module_type = None # the type of current_module return_report = '' # what current_module returns filter_mem = {} # remember last filters entered for each path @@ -561,10 +561,10 @@ class OBJECT_PT_api_navigator(ApiNavigator, Panel): show_panel_elements = bpy.context.window_manager.api_nav_props.panel_toggle[t] if \ 0 <= t < 10 else True - lenght = tree_level[t].__len__() - too_long = lenght > reduce_to + length = tree_level[t].__len__() + too_long = length > reduce_to - if lenght: + if length: col = layout.column() box = col.box() @@ -582,7 +582,7 @@ class OBJECT_PT_api_navigator(ApiNavigator, Panel): i = 0 objects, count, filtered = 0, 0, 0 - while count < reduce_to and i < lenght: + while count < reduce_to and i < length: obj = tree_level[t][i] if filters and filters not in obj: |