(self, parent)
qpart: reference to the editor
           name: margin identifier
           bit_count: number of bits to be used by the margin
qpart: reference to the editor
           name: margin identifier
           bit_count: number of bits to be used by the margin
qpart : reference to the editor name : margin identifier bit_count : number of bits to be used by the margin
def __init__(self, parent):
        """qpart: reference to the editor
           name: margin identifier
           bit_count: number of bits to be used by the margin
        """
        super().__init__(parent)

        self._editor = parent
        self._name = 'line_numbers'
        self._bit_count = 0
        self._bitRange = None
        self.__allocateBits()

        self._countCache = (-1, -1)
        self._editor.updateRequest.connect(self.__updateRequest)

        self.__width = self.__calculateWidth()
        self._editor.blockCountChanged.connect(self.__updateWidth)
def __init__ ( self , parent ) : super ( ) . __init__ ( parent ) self . _editor = parent self . _name = 'line_numbers' self . _bit_count = 0 self . _bitRange = None self . __allocateBits ( ) self . _countCache = ( - 1 , - 1 ) self . _editor . updateRequest . connect ( self . __updateRequest ) self . __width = self . __calculateWidth ( ) self . _editor . blockCountChanged . connect ( self . __updateWidth )