turbosnake/_utils.py
def event_prop_invoker(self: Component, prop_name):
    """Creates a function that invokes event handler stored in given property of given component.

    Resulting function reads property on every invocation, so it remains valid after the property is changed.

    :param self: component instance
    :param prop_name: name of a property containing event handler
    :return: the function, as described above
    """

    def _event_prop_invoker(*args, **kwargs):
        return self.props[prop_name](*args, **kwargs)

    return _event_prop_invoker
Creates a function that invokes event handler stored in given property of given component.

    Resulting function reads property on every invocation, so it remains valid after the property is changed.

    :param self: component instance
    :param prop_name: name of a property containing event handler
    :return: the function, as described above
    
Creates a function that invokes event handler stored in given property of given component.
Resulting function reads property on every invocation, so it remains valid after the property is changed.
Creates a function that invokes event handler stored in given property of given component . Resulting function reads property on every invocation so it remains valid after the property is changed .
def event_prop_invoker(self: Component, prop_name):
    def _event_prop_invoker(*args, **kwargs):
        return self.props[prop_name](*args, **kwargs)
    return _event_prop_invoker
def event_prop_invoker ( self : Component , prop_name ) : def _event_prop_invoker ( * args , ** kwargs ) : return self . props [ prop_name ] ( * args , ** kwargs ) return _event_prop_invoker
Creates a function that invokes event handler stored in given property of given component.
Creates a function that invokes event handler stored in given property of given component .
"""Creates a function that invokes event handler stored in given property of given component.

    Resulting function reads property on every invocation, so it remains valid after the property is changed.

    :param self: component instance
    :param prop_name: name of a property containing event handler
    :return: the function, as described above
    """
the function, as described above
the function as described above
self
Component
None
prop_name
name of a property containing event handler
name of a property containing event handler