(self, caret)
return ascii_rect
returns screenpos as qrect of caret in ascii
returns screenpos as qrect of caret in ascii
returns screenpos as qrect of caret in ascii
def caret_to_asciicol(self, caret):
        """ returns screenpos as qrect of caret in ascii
        """
        ascii_cx, ascii_cy = self.index_to_asciicol(caret.position)
        ascii_cy -= self._base_line
        ascii_rect = QRect(ascii_cx - 1, ascii_cy, 1, self._char_height)
        return ascii_rect
def caret_to_asciicol ( self , caret ) : ascii_cx , ascii_cy = self . index_to_asciicol ( caret . position ) ascii_cy -= self . _base_line ascii_rect = QRect ( ascii_cx - 1 , ascii_cy , 1 , self . _char_height ) return ascii_rect