def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def draw_paths(c, tree):
	if tree.lchild == None or tree.rchild == None:
		return
	tree.lchild.leaf.draw_path(c, tree.rchild.leaf)
	draw_paths(c, tree.lchild)
	draw_paths(c, tree.rchild)