def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def draw(self, context):
        layout = self.layout

        userpref = context.user_preferences

        layout.prop(userpref, "active_section", expand=True)