Widget name should not really be used for label/title

Yes, I think this is another good example of a problem this causes. Digging into the code, the exact cause of your issue comes from the Param library with the code below showing that the name attribute is set to be a Constant because it is an identifier.

Fundamentally, I think in any UI framework, the identifier of a UI element should always be distinct from what is displayed.

In my case I want to use the identifier as a variable name for dynamic invocation and in your case you want to be able to change the display name.

 class Parameterized(metaclass=ParameterizedMetaclass):
    """
    __Doc String omitted for brevity__
    """
    name = String(default=None, constant=True, doc="""
        String identifier for this object.""")
2 Likes