docstr: Change the codeView tabStopDistance to 4 spaces based on the size of the current font
docstr_tok: ["Change","the","codeView","tabStopDistance","to","4","spaces","based","on","the","size","of","the","current","font"]
code: def updateCodeViewTabWidth(self, font):
      """
      Change the codeView tabStopDistance to 4 spaces based on the size of the current font
      """
      fm = QtGui.QFontMetrics(font)
      tabWidth = fm.horizontalAdvance(" " * 4)
      # the default value is 80 pixels! that's more than 2x what we want.
      self.ui.codeView.setTabStopDistance(tabWidth)
  
imports: import keyword
  import os
  import pkgutil
  import re
  import subprocess
  import sys
  from argparse import Namespace
  from collections import OrderedDict
  from functools import lru_cache
  import pyqtgraph
  from pyqtgraph.Qt import QT_LIB, QtCore, QtGui, QtWidgets
  import exampleLoaderTemplate_generic
  import utils
label_desc: Use image node_id 2 for calling the ExampleLoader obj's underlying member method code with example usage: obj.updateCodeViewTabWidth(font) without return types