def dropdown_info(self, name=None):
        """
        Get information on configured or currently active DropDowns.
        If name is None, a list of all dropdown names is returned.
        """
        if name is None:
            return {"dropdowns": [ddname for ddname in self._dropdownconfig]}
        elif name in self.dropdowns:
            return self.dropdowns[name].info()
        elif name in self._dropdownconfig:
            return self._dropdownconfig[name].info()
        else:
            raise ValueError(f'No DropDown named "{name}".')

        Get information on configured or currently active DropDowns.
        If name is None, a list of all dropdown names is returned.
        
libqtile/scratchpad.py