#NEWLINE# def __init__( self , widget = None , parent = None ) : #NEWLINE# #INDENT# ' QToolWindow(parent: QWidget) -> QToolWindow\n        Construct a floating, dockable widget\n        \n        ' #NEWLINE# QtGui . QDockWidget . __init__ ( self , parent ) #NEWLINE# self . setFeatures ( QtGui . QDockWidget . AllDockWidgetFeatures ) #NEWLINE# self . mwindow = QtGui . QMainWindow ( self ) #NEWLINE# self . centralwidget = widget #NEWLINE# self . mwindow . setWindowFlags ( QtCore . Qt . Widget ) #NEWLINE# self . mwindow . setCentralWidget ( widget ) #NEWLINE# self . setWidget ( self . mwindow ) #NEWLINE# self . createToolBar ( ) #NEWLINE# if widget : #NEWLINE# #INDENT# self . setWindowTitle ( widget . windowTitle ( ) ) #NEWLINE# #UNINDENT# self . pinStatus = False #NEWLINE# self . monitorWindowTitle ( widget ) #NEWLINE# self . connect ( self , QtCore . SIGNAL ( 'topLevelChanged(bool)' ) , self . setDefaultPinStatus )