def getScreens():
 if importCtypesFailed:
  return False
 count = CGDisplayCount()
 cocoa.CGGetActiveDisplayList(0, None, ctypes.byref(count))
 displays = (CGDirectDisplayID * count.value)()
 cocoa.CGGetActiveDisplayList(count.value, displays, ctypes.byref(count))
 return [id for id in displays]

def getScreens ( ) : if importCtypesFailed : return False count = CGDisplayCount ( ) cocoa . CGGetActiveDisplayList ( 0 , None , ctypes . byref ( count ) ) displays = ( CGDirectDisplayID * count . value ) ( ) cocoa . CGGetActiveDisplayList ( count . value , displays , ctypes . byref ( count ) ) return [ id for id in displays ]
get a list of display ids from cocoa .