added panel not showing

I’ve created a custom panel with python, but for some reason it’s not showing when I activate the plugin. I don’t get any errors, but it’s not working.

Maybe someone can figure out the error.

Here’s the code.

Thanks

class MyClass(bpy.types.Panel):
    bl_label = "Quick MATS"
    bl_space_type = "PROPERTIES"
    bl_region_type = "WINDOW"
    bl_context = "Material"

    mitems = objectsnames2()
    bpy.types.Scene.mat = bpy.props.EnumProperty(name="mat",items=mitems,update=update_func)
    
    
    def draw(self, context):
        layout = self.layout

        count = len(all)
        
        print(count)

        row = layout.row()
        row.label(text="all: "+str(count))

        row = layout.row()
        row.prop(context.scene, "mat")

def register():
    bpy.utils.register_class(MyClass)
def unregister():
    bpy.utils.unregister_class(MyClass)

if __name__ == "__main__":
    register()

bl_context = “Material”

bl_context has to be writed using only lowercase letters.

bl_context = "material"

This doesn’t belong inside a panel class:

    mitems = objectsnames2()
    bpy.types.Scene.mat = bpy.props.EnumProperty(name="mat",items=mitems,update=update_func)