def render(self):
    if (self.rows <= 0):
        return
    line = u''
    for control in self.controlList:
        label = control['draw'](control)
        line += (u'%*s%s' % (control['width'], label, control['sep']))
        if (len(line) >= self.cols):
            break
    self.writeLineRow = 0
    self.writeLine(line[:self.cols], self.color)
def render(self):
    if (self.rows <= 0):
        return
    line = u
    for control in self.controlList:
        label = control['draw'](control)
        line += (u'%*s%s' % (control['width'], label, control['sep']))
        if (len(line) >= self.cols):
            break
    self.writeLineRow = 0
    self.writeLine(line[:self.cols], self.color)