#NEWLINE# def __init__( self , parent = None ) : #NEWLINE# #INDENT# QtGui . QFileDialog . __init__ ( self , parent , QtCore . Qt . Widget ) #NEWLINE# self . setModal ( False ) #NEWLINE# self . setSizeGripEnabled ( False ) #NEWLINE# self . setFileMode ( QtGui . QFileDialog . ExistingFile ) #NEWLINE# self . setLabelText ( QtGui . QFileDialog . LookIn , 'Directory' ) #NEWLINE# self . setSidebarUrls ( [ QtCore . QUrl ( 'file://' ) ] ) #NEWLINE# gridLayout = self . findChild ( QtGui . QGridLayout , 'gridLayout' ) #NEWLINE# if gridLayout : #NEWLINE# #INDENT# gridLayout . setMargin ( 0 ) #NEWLINE# gridLayout . setVerticalSpacing ( 0 ) #NEWLINE# gridLayout . setColumnStretch ( 1 , 1 ) #NEWLINE# hBoxLayout = gridLayout . itemAtPosition ( 0 , 1 ) . layout ( ) #NEWLINE# if hBoxLayout : #NEWLINE# #INDENT# hBoxLayout . setSpacing ( 0 ) #NEWLINE# #UNINDENT# #UNINDENT# backButton = self . findChild ( QtGui . QToolButton , 'backButton' ) #NEWLINE# if backButton : #NEWLINE# #INDENT# backButton . hide ( ) #NEWLINE# #UNINDENT# forwardButton = self . findChild ( QtGui . QToolButton , 'forwardButton' ) #NEWLINE# if forwardButton : #NEWLINE# #INDENT# forwardButton . hide ( ) #NEWLINE# #UNINDENT# fileNameLabel = self . findChild ( QtGui . QLabel , 'fileNameLabel' ) #NEWLINE# if fileNameLabel : #NEWLINE# #INDENT# fileNameLabel . hide ( ) #NEWLINE# #UNINDENT# fileNameEdit = self . findChild ( QtGui . QLineEdit , 'fileNameEdit' ) #NEWLINE# if fileNameEdit : #NEWLINE# #INDENT# fileNameEdit . hide ( ) #NEWLINE# #UNINDENT# fileTypeLabel = self . findChild ( QtGui . QLabel , 'fileTypeLabel' ) #NEWLINE# if forwardButton : #NEWLINE# #INDENT# fileTypeLabel . hide ( ) #NEWLINE# #UNINDENT# fileTypeCombo = self . findChild ( QtGui . QComboBox , 'fileTypeCombo' ) #NEWLINE# if fileTypeCombo : #NEWLINE# #INDENT# fileTypeCombo . hide ( ) #NEWLINE# #UNINDENT# buttonBox = self . findChild ( QtGui . QDialogButtonBox , 'buttonBox' ) #NEWLINE# buttonBox . hide ( ) #NEWLINE# splitter = self . findChild ( QtGui . QSplitter , 'splitter' ) #NEWLINE# splitter . setSizes ( [ 0 , 1 ] ) #NEWLINE# stackedWidget = splitter . widget ( 1 ) . findChild ( QtGui . QStackedWidget , 'stackedWidget' ) #NEWLINE# listView = stackedWidget . widget ( 0 ) . findChild ( QtGui . QListView , 'listView' ) #NEWLINE# listView . setAlternatingRowColors ( True ) #NEWLINE# listView . setWrapping ( False ) #NEWLINE# self . setViewMode ( QtGui . QFileDialog . List )