'Updates the dropdowns to reflect the current class and function.'

def update_selected(self, linenum):

    self.parents = _get_parents(self.funcs, linenum)
    update_selected_cb(self.parents, self.method_cb)
    self.parents = _get_parents(self.classes, linenum)
    update_selected_cb(self.parents, self.class_cb)
