Create a radio button via python I want to create a own UI for a add-on which I am writing.
The user should have the ability to do different things with this add-on.
For example he can choose a cube or a pyramid. If cube or pyramid is choosen the ui will change. Some fields should be hidden and some should be visible.

Okay, first step: Create radio buttons. And now I am stuck :/

As far as I know I need a EnumProperty, which has the attribute items. Items has all the "values" the radio button can have.

Sadly it's not working for me.

I did this: 

    def draw(self, context):
        layout = self.layout

        obj_types_enum = ('0','a','a')
        obj_type = bpy.props.EnumProperty(items = obj_types_enum)

        layout.label("Select original form")

        col = layout.column()

        col.prop(self, 'obj_type')


Any advice?
This is how you do it:
# This is how you make a static enum prop for the scene
enum_items = (('0','Cube',''),('1','Pyramid',''))
bpy.types.Scene.obj_type = bpy.props.EnumProperty(items = enum_items)

# This is how you display it in panel
def draw(self, context):
    layout = self.layout
    layout.label(text=&quot;Select Original Form&quot;)

    layout.prop(context.scene, 'obj_type', expand=True)