From 8971018eb64a68119687c74db875fd45f89cbdf8 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Tue, 16 Feb 2021 09:38:42 -0500 Subject: UI: Add support for bl_description for panels This commit adds support for `bl_description` and python docstrings for panels. This is useful for pop-over panel types so they can have a label and description. This commit also includes an example use case. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D10429 --- release/scripts/startup/bl_ui/space_properties.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_properties.py b/release/scripts/startup/bl_ui/space_properties.py index 053df113dd7..b7d5b5007d6 100644 --- a/release/scripts/startup/bl_ui/space_properties.py +++ b/release/scripts/startup/bl_ui/space_properties.py @@ -72,9 +72,10 @@ class PROPERTIES_PT_navigation_bar(Panel): class PROPERTIES_PT_options(Panel): + """Show options for the properties editor""" bl_space_type = 'PROPERTIES' bl_region_type = 'HEADER' - bl_label = 'Show options for the properties editor' + bl_label = "Options" def draw(self, context): layout = self.layout -- cgit v1.2.3