Subversion Repositories mmkeyboard2k

Rev

Rev 3 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 10
Line 70... Line 70...
70
        
70
        
71
        if callable(self.text):
71
        if callable(self.text):
72
            text = str(self.text())
72
            text = str(self.text())
73
        else:
73
        else:
74
            text = str(self.text)
74
            text = str(self.text)
-
 
75
        
-
 
76
        if text is None:
-
 
77
            return
75
        
78
        
76
        if self.type == 'text':
79
        if self.type == 'text':
77
            for id, line in enumerate([""]*(self.maxlines-self.linecount)+([""]*self.linecount+text.splitlines())[-self.linecount:]):
80
            for id, line in enumerate([""]*(self.maxlines-self.linecount)+([""]*self.linecount+text.splitlines())[-self.linecount:]):
78
                self.osd.display(line, line = id)
81
                self.osd.display(line, line = id)
79
        else:
82
        else: