RNA Types metaclass registration
[blender.git] / release / scripts / templates / panel_simple.py
1 import bpy
2
3 class OBJECT_PT_hello(bpy.types.Panel):
4     bl_label = "Hello World Panel"
5     bl_space_type = "PROPERTIES"
6     bl_region_type = "WINDOW"
7     bl_context = "object"
8
9     def draw(self, context):
10         layout = self.layout
11
12         obj = context.object
13
14         row = layout.row()
15         row.label(text="Hello world!", icon='WORLD_DATA')
16
17         row = layout.row()
18         row.label(text="Active object is: " + obj.name)
19         row = layout.row()
20         row.prop(obj, "name")
21