#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# super ( Demo , self ) . __init__ ( ) #NEWLINE# ( x , y , w , h ) = ( 500 , 200 , 300 , 400 ) #NEWLINE# self . setGeometry ( x , y , w , h ) #NEWLINE# self . setUnifiedTitleAndToolBarOnMac ( True ) #NEWLINE# config_theme_path ( ) #NEWLINE# icon = QtGui . QIcon . fromTheme ( 'application-exit' ) #NEWLINE# exit_a = QtGui . QAction ( icon , 'Exit' , self ) #NEWLINE# exit_a . setShortcut ( 'Ctrl+Q' ) #NEWLINE# exit_a . triggered . connect ( self . close ) #NEWLINE# toolbar = self . addToolBar ( 'Exit' ) #NEWLINE# toolbar . addAction ( h ) #NEWLINE# self . _toolbar = toolbar