#NEWLINE# def __init__( self , title , tabWidget , tabBar , tabController ) : #NEWLINE# #INDENT# ' StandardTabDockWidget(title: str,\n                                  tabWidget: QTabWidget,\n                                  tabBar: QTabBar,\n                                  tabController: StandardWidgetTabController)\n                                  -> StandardTabDockWidget\n        Initialize the dock widget to override the floating button\n\n        ' #NEWLINE# QtGui . QDockWidget . __init__ ( self , title , None , QtCore . Qt . FramelessWindowHint ) #NEWLINE# self . tabBar = tabBar #NEWLINE# self . tabController = tabController #NEWLINE# self . setFeatures ( ( ( QtGui . QDockWidget . DockWidgetClosable | QtGui . QDockWidget . DockWidgetMovable ) | QtGui . QDockWidget . DockWidgetFloatable ) ) #NEWLINE# self . setFloating ( True ) #NEWLINE# self . floatingButton = self . findFloatingButton ( ) #NEWLINE# if self . floatingButton : #NEWLINE# #INDENT# self . floatingButton . blockSignals ( True ) #NEWLINE# self . floatingButton . installEventFilter ( tabBar ) #NEWLINE# #UNINDENT# self . startDragPos = None #NEWLINE# self . startDragging = False #NEWLINE# self . windowRubberBand = QtGui . QRubberBand ( QtGui . QRubberBand . Rectangle , None ) #NEWLINE# tabWidget . setParent ( self ) #NEWLINE# self . setWidget ( tabWidget ) #NEWLINE# tabWidget . show ( ) #NEWLINE# self . resize ( tabWidget . size ( ) )