Help needed - Custom menu with Python

Hi all,

I need some help with Python.
I’d like to create a custom menu for the tools I use most often, but i cant figure out how to add some of those tools.
For example extrude or inset face.
Currently I add those to menu like that:

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

        layout.operator("mesh.inset")
        layout.operator("mesh.extrude_region_move")

They kind of work, but the thing is, they are not interactive. They just kind of append themselves with some default settings and I can’t change anything by moving or dragging with the mouse.

Does anyone know how to add those tools so they would work interactively, like the tools from the default panels??

Thanks in advance,

the operator context is INVOKE_* if you use F12 etc., but in your layout, it is apparantly EXECUTE_* by default.

http://www.blender.org/documentation/blender_python_api_2_72_release/bpy.types.UILayout.html?highlight=operator_context#bpy.types.UILayout.operator_context

You can explicitly say which context you wanna run it in. This should make it work:

col = layout.column()
col.operator_context = 'INVOKE_DEFAULT'
col.operator(...)
col.operator(...)

Awesome!
I knew I was missing something like this. I got it working now. Thank you !