Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def setLineText(self, lineNum, text):
- if lineNum == 0 or lineNum == self.y or len(text) > (self.x - 5):
- return None
- else:
- temp = "| "
- temp = temp + text
- while len(temp) != (self.x - 1):
- temp = temp + " "
- temp = temp + "|"
- self.lines[lineNum] = temp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement