def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def paint(self, c):
		c.stroke_rectangle(self.x, self.y, self.w, self.h)