def METHOD_NAME(self, context, layout):
    col = layout.column(align=True)
    row = col.row(align=True)
    row.prop(self, "mode", expand=True)
    row = col.row(align=True)
    row.prop(self, "centering", expand=True)