diff options
Diffstat (limited to 'development_api_navigator.py')
-rw-r--r-- | development_api_navigator.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/development_api_navigator.py b/development_api_navigator.py index addc0d29..4bd9908c 100644 --- a/development_api_navigator.py +++ b/development_api_navigator.py @@ -59,7 +59,7 @@ with the Escape key. (but a bug prevent the keymap to register correctly at star """ -import bpy, sys +import bpy from console.complete_import import get_root_modules @@ -113,7 +113,7 @@ def evaluate(module): #print('evaluate') global root_module, tree_level, root_m_path - path = bpy.context.window_manager.api_nav_props.path + # path = bpy.context.window_manager.api_nav_props.path try : len_name = root_module.__name__.__len__() root_m_path = 'root_module' + module[len_name:] @@ -483,11 +483,11 @@ class OBJECT_PT_api_navigator(ApiNavigator, bpy.types.Panel): return {'FINISHED'} col = self.layout - filter = bpy.context.window_manager.api_nav_props.filter + # filter = bpy.context.window_manager.api_nav_props.filter # UNUSED reduce_to = bpy.context.window_manager.api_nav_props.reduce_to * self.columns pages = bpy.context.window_manager.api_nav_props.pages page_index = reduce_to*pages - rank = 0 + # rank = 0 # UNUSED count = 0 i = 0 filtered = 0 @@ -624,9 +624,7 @@ class OBJECT_PT_api_navigator(ApiNavigator, bpy.types.Panel): global tree_level, current_module, module_type, return_report api_update(context) - - st = bpy.context.space_data - + ###### layout ###### layout = self.layout col = layout.column() @@ -664,7 +662,7 @@ def register_keymaps(): km = kc.keymaps.get("Text") if km is None: km = kc.keymaps.new(name="Text") - kmi = km.keymap_items.new('api_navigator.toggle_doc', 'ESC', 'PRESS') + km.keymap_items.new('api_navigator.toggle_doc', 'ESC', 'PRESS') def unregister_keymaps(): |