def METHOD_NAME(self, context, layout):
    #pass
    col = layout.column(align=True)
    row = col.row(align=True)
    row.prop(self, 'mode', expand=True)
    row = col.row(align=True)
    row.prop(self, 'regime', expand=True)
    if self.regime == 'G':
        row = col.row(align=True)
        row.prop(self, 'direction', expand=True)
    col.prop(self, 'defgrid')