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