def hasExplorer():
 if ((sys.platform == 'win32') or (sys.platform == 'cygwin') or (sys.platform == 'darwin')):
  return True
 if (sys.platform == 'linux2'):
  if os.path.isfile('/usr/bin/xdg-open'):
   return True
 return False

def hasExplorer ( ) : if ( ( sys . platform == 'win32' ) or ( sys . platform == 'cygwin' ) or ( sys . platform == 'darwin' ) ) : return True if ( sys . platform == 'linux2' ) : if os . path . isfile ( '/usr/bin/xdg-open' ) : return True return False
check if we have support for opening file dialog windows .