def has_x11():
 try:
  from AnyQt.QtX11Extras import QX11Info
  return True
 except ImportError:
  return False

def has_x11 ( ) : try : from AnyQt . QtX11Extras import QX11Info return True except ImportError : return False
is qt build against x11 server .