def METHOD_NAME(self, context, layout):
    layout.label(text="Output mode:")
    layout.prop(self, "out_mode", text="")
    if self.out_mode == 'OBJ':
        layout.prop(self, 'separate')
    else:
        layout.prop(self, 'sort')