code: def tabClicked(self, tab, ev=None):
      if ev is None or ev.button() == QtCore.Qt.MouseButton.LeftButton:
          for i in range(self.count()):
              w = self.widget(i)
              if w is tab.dock:
                  w.label.setDim(False)
                  self.stack.setCurrentIndex(i)
              else:
                  w.label.setDim(True)
  
imports: import weakref
  from ..Qt import QtCore, QtWidgets
  from .Dock import Dock
label_desc: Use image node_id 3 for calling the TContainer obj's underlying member method code with example usage: obj.tabClicked(tab, ev) without return types