#NEWLINE# def createToolBar( self ) : #NEWLINE# #INDENT# self . toolbar = QtGui . QToolBar ( self . mwindow ) #NEWLINE# self . pinButton = QtGui . QAction ( CurrentTheme . UNPINNED_PALETTE_ICON , '' , self . toolbar , checkable = True , checked = False , toggled = self . pinStatusChanged ) #NEWLINE# self . pinButton . setToolTip ( 'Pin this on the Tab Bar' ) #NEWLINE# spacer = QtGui . QWidget ( ) #NEWLINE# spacer . setSizePolicy ( QtGui . QSizePolicy . MinimumExpanding , QtGui . QSizePolicy . Preferred ) #NEWLINE# self . toolbar . addWidget ( spacer ) #NEWLINE# self . toolbar . addAction ( self . pinButton ) #NEWLINE# self . pinAction = self . pinButton #NEWLINE# self . toolbar . setFloatable ( False ) #NEWLINE# self . toolbar . setMovable ( False ) #NEWLINE# self . toolbar . setIconSize ( QtCore . QSize ( 16 , 16 ) ) #NEWLINE# self . mwindow . addToolBar ( self . toolbar )