def is_transparency_supported():
 if (sys.platform == 'win32'):
  return is_dwm_compositing_enabled()
 elif (sys.platform == 'cygwin'):
  return False
 elif (sys.platform == 'darwin'):
  if has_x11():
   return is_x11_compositing_enabled()
  else:
   return True
 elif sys.platform.startswith('linux'):
  return is_x11_compositing_enabled()
 elif sys.platform.startswith('freebsd'):
  return is_x11_compositing_enabled()
 elif has_x11():
  return is_x11_compositing_enabled()
 else:
  return False

def is_transparency_supported ( ) : if ( sys . platform == 'win32' ) : return is_dwm_compositing_enabled ( ) elif ( sys . platform == 'cygwin' ) : return False elif ( sys . platform == 'darwin' ) : if has_x11 ( ) : return is_x11_compositing_enabled ( ) else : return True elif sys . platform . startswith ( 'linux' ) : return is_x11_compositing_enabled ( ) elif sys . platform . startswith ( 'freebsd' ) : return is_x11_compositing_enabled ( ) elif has_x11 ( ) : return is_x11_compositing_enabled ( ) else : return False
is window transparency supported by the current windowing system .