def writeLine(self, text, color):
    'Simple line writer for static windows.'
    if app.config.strict_debug:
        assert isinstance(text, unicode)
    text = text[:self.cols]
    text = (text + (u' ' * max(0, (self.cols - len(text)))))
    self.program.backgroundFrame.addStr((self.top + self.writeLineRow), self.left, text.encode(u'utf-8'), color)
    self.writeLineRow += 1
Simple line writer for static windows.
def writeLine(self, text, color):
    
    if app.config.strict_debug:
        assert isinstance(text, unicode)
    text = text[:self.cols]
    text = (text + (u' ' * max(0, (self.cols - len(text)))))
    self.program.backgroundFrame.addStr((self.top + self.writeLineRow), self.left, text.encode(u'utf-8'), color)
    self.writeLineRow += 1