Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/python_api/examples/bpy.types.Panel.1.py')
-rw-r--r--doc/python_api/examples/bpy.types.Panel.1.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/doc/python_api/examples/bpy.types.Panel.1.py b/doc/python_api/examples/bpy.types.Panel.1.py
index b409f8dadea..911ece7ade0 100644
--- a/doc/python_api/examples/bpy.types.Panel.1.py
+++ b/doc/python_api/examples/bpy.types.Panel.1.py
@@ -22,17 +22,11 @@ class ObjectSelectPanel(bpy.types.Panel):
def draw_header(self, context):
layout = self.layout
- obj = context.object
- layout.prop(obj, "select", text="")
+ layout.label(text="My Select Panel")
def draw(self, context):
layout = self.layout
- obj = context.object
- row = layout.row()
- row.prop(obj, "hide_select")
- row.prop(obj, "hide_render")
-
box = layout.box()
box.label(text="Selection Tools")
box.operator("object.select_all").action = 'TOGGLE'