

@staticmethod
def _register_named_property(name, widget_ref, *largs):
    " Called by the ConfigParserProperty to register a property which\n        was created with a config name instead of a config object.\n\n        When a ConfigParser with this name is later created, the properties\n        are then notified that this parser now exists so they can use it.\n        If the parser already exists, the property is notified here. See\n        :meth:`~kivy.properties.ConfigParserProperty.set_config`.\n\n        :Parameters:\n            `name`: a non-empty string\n                The name of the ConfigParser that is associated with the\n                property. See :attr:`name`.\n            `widget_ref`: 2-tuple.\n                The first element is a reference to the widget containing the\n                property, the second element is the name of the property. E.g.:\n\n                    class House(Widget):\n                        address = ConfigParserProperty('', 'info', 'street',\n                            'directory')\n\n                Then, the first element is a ref to a House instance, and the\n                second is `'address'`.\n        "
    configs = ConfigParser._named_configs
    try:
        (config, props) = configs[name]
    except KeyError:
        configs[name] = (None, [widget_ref])
        return
    props.append(widget_ref)
    if config:
        config = config()
    widget = widget_ref[0]()
    if (config and widget):
        widget.property(widget_ref[1]).set_config(config)

dataset/ETHPy150Open kivy/kivy/kivy/config.py ConfigParser._register_named_property/original