'Returns a list of lines, from the current object
pad: all lines must be at least pad characters.'

def renderlines(self, pad=0):

    result = []
    lineoff = ''
    for i in range(self.posx):
        lineoff += '    '
    for l in self.lines:
        lpad = ''
        if (pad and (len(l) < pad)):
            for i in range((pad - len(l))):
                lpad += '    '
            result.append(((lineoff + l) + lpad))
    return result
