'Make a subview of a parent view for a given subscript key.'

def __init__(self, parent, key):

    self.parent = parent
    self.key = key
    if isinstance(self.parent, RootView):
        self.name = ''
    else:
        self.name = self.parent.name
        if (not isinstance(self.key, int)):
            self.name += '.'
    if isinstance(self.key, int):
        self.name += u'#{0}'.format(self.key)
    elif isinstance(self.key, bytes):
        self.name += self.key.decode('utf-8')
    elif isinstance(self.key, STRING):
        self.name += self.key
    else:
        self.name += repr(self.key)
