Add more titles to custom menu

Hello everyone

I just finished with my menu and I thinking about making it more User friendly. So I decided to split menu with some Headings, but unfortunately i can’t find anything about this on the internet is it even possible?
I want to turn this


into this

Thank you in advance for your replies. :slight_smile:

Hi Paul,

Use this:
row.label(“Color settings :”)

Thanks Spirou4D for your reply but it didn"t worked, I tried using this:

def draw(self, context):
        self.layout.label(text="Color Settings")

But it shows only “Color settings” in the menu but nothing more:

maybe it’s good idea to show you how my popup menu is constructed


import bpy, random
from bpy.props import *

class DialogOperator(bpy.types.Operator):
    bl_idname = "object.dialog_operator"
    bl_label = "Scanner Settings"

    varName = IntProperty(
                    name = "Name",
                    description = "Description.",
                    default = functionName,
                    update = functionName2,
                    step = 1,
                    min = 0,
                    max = 600)

     def execute(self, context):
        return {'FINISHED'}

     def invoke(self, context, event):
        wm = context.window_manager
        return wm.invoke_props_dialog(self)


bpy.utils.register_class(DialogOperator)
bpy.ops.object.dialog_operator('INVOKE_DEFAULT')

By default, Blender will draw all operator properties in the dialog. Once you add a custom draw() function, it’s up to you to draw the properties. You’ll have to write the full layout code for the popup.

Okay thanks @CoDEmanX I will look into it