def findFrameLastCol(self, frame):
        """ For the given frame, figure out the last non-blank column, return
            that # + 1 (aka, last used column of the frame) """
        # start at the last column, work back until we find a character.
        #for colNum in reversed(list(range(0, frame.sizeX))):
        #    for lineNum in reversed(list(range(0, frame.sizeY))):
        for colNum in reversed(range(0, self.mov.sizeX)):
            for lineNum in reversed(range(0, self.mov.sizeY)):
                try:
                    if not frame.content[lineNum][colNum] in [' ', '']:
                        return colNum + 1  # we found a non-empty character
                except Exception as E:
                    return colNum - 1
        #pdb.set_trace()
        return 1 # blank frame, only save the first line.
 For the given frame, figure out the last non-blank column, return
            that # + 1 (aka, last used column of the frame) 
durdraw/durdraw_ui_curses.py