def _set_tab_width ( self , tab_width ) : font_metrics = QtGui . QFontMetrics ( self . font ) self . _control . setTabStopWidth ( tab_width * font_metrics . width ( ' ' ) ) self . _tab_width = tab_width
python setting specific tab width
Sets the width ( in terms of space characters ) for tab characters .
def _set_tab_width(self, tab_width):
        """ Sets the width (in terms of space characters) for tab characters.
        """
        font_metrics = QtGui.QFontMetrics(self.font)
        self._control.setTabStopWidth(tab_width * font_metrics.width(' '))

        self._tab_width = tab_width