def getexistingdirectory(parent=None, caption='', basedir='', options=QFileDialog.ShowDirsOnly):
 if (sys.platform == 'win32'):
  (_temp1, _temp2) = (sys.stdout, sys.stderr)
  (sys.stdout, sys.stderr) = (None, None)
 try:
  result = QFileDialog.getExistingDirectory(parent, caption, basedir, options)
 finally:
  if (sys.platform == 'win32'):
   (sys.stdout, sys.stderr) = (_temp1, _temp2)
 if (not is_text_string(result)):
  result = to_text_string(result)
 return result

def getexistingdirectory ( parent = None , caption = '' , basedir = '' , options = QFileDialog . ShowDirsOnly ) : if ( sys . platform == 'win32' ) : ( _temp1 , _temp2 ) = ( sys . stdout , sys . stderr ) ( sys . stdout , sys . stderr ) = ( None , None ) try : result = QFileDialog . getExistingDirectory ( parent , caption , basedir , options ) finally : if ( sys . platform == 'win32' ) : ( sys . stdout , sys . stderr ) = ( _temp1 , _temp2 ) if ( not is_text_string ( result ) ) : result = to_text_string ( result ) return result
wrapper around qtgui .