def _prev_index(self, s):
        self.set_index(max(0, self.index - 1))
def draw(self, context):
        layout = self.layout

        userpref = context.user_preferences

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