code: def __init__(self, parent=None):
      QtWidgets.QTabWidget.__init__(self, parent)
  
      self.tabBar = self.TabBar(self)
      self.tabBar.onDetachTabSignal.connect(self.detachTab)
      self.tabBar.onMoveTabSignal.connect(self.moveTab)
      self.tabBar.detachedTabDropSignal.connect(self.detachedTabDrop)
  
      self.setTabBar(self.tabBar)
  
      # Used to keep a reference to detached tabs since their QMainWindow
      # does not have a parent
      self.detachedTabs = {}
  
      # Close all detached tabs if the application is closed explicitly
      QtWidgets.qApp.aboutToQuit.connect(self.closeDetachedTabs)
  
file_path: PandasGUI/pandasgui/widgets/detachable_tab_widget.py
imports: from PyQt5 import QtGui, QtCore, QtWidgets
  from PyQt5.QtCore import pyqtSignal, pyqtSlot
label_desc: Use image node_id 1 to create a new DetachableTabWidget object from inherited base classes: QtWidgets with example: obj = DetachableTabWidget(parent)