def _format_classattr(self, obj):
    res = BaseLangCodeWriter._format_classattr(self, obj)
    if (not res):
        return res
    elif obj.name.startswith('$self->'):
        return obj.name
    elif obj.name.startswith('$'):
        return obj.name
    elif (obj.WX_CLASS == 'spacer'):
        return obj.name
    elif (self.store_as_attr(obj) or obj.IS_SIZER):
        return ('$self->{%s}' % obj.name)
    return ('$%s' % obj.name)
def _format_classattr(self, obj):
    res = BaseLangCodeWriter._format_classattr(self, obj)
    if (not res):
        return res
    elif obj.name.startswith('$self->'):
        return obj.name
    elif obj.name.startswith('$'):
        return obj.name
    elif (obj.WX_CLASS == 'spacer'):
        return obj.name
    elif (self.store_as_attr(obj) or obj.IS_SIZER):
        return ('$self->{%s}' % obj.name)
    return ('$%s' % obj.name)