Advertisement
THUNDERGROOVE

Untitled

May 1st, 2013
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. def setLineText(self, lineNum, text):
  2.     if lineNum == 0 or lineNum == self.y or len(text) > (self.x - 5):
  3.         return None
  4.     else:
  5.         temp = "|   "
  6.         temp = temp + text
  7.  
  8.         while len(temp) != (self.x - 1):
  9.             temp = temp + " "
  10.         temp = temp + "|"
  11.  
  12.         self.lines[lineNum] = temp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement