As Phil has stated elsewhere, sun, moon, stars, etc.
However, I believe it sources from java.awt.GraphicsEnvironment. I don’t know how it puts things in order, possibly in hardware names.
getScreens() should probably also return the x and y properties from the bounds to give the location in the desktop space. In single monitor apps, they’d always be 0,0, but for my three-monitor setup, I get this:
def getScreens():
import java.awt.GraphicsEnvironment as GE
g_env = GE.getLocalGraphicsEnvironment()
screenDevices = g_env.getScreenDevices()
output = []
count = 0
for device in screenDevices:
config = device.getDefaultConfiguration()
bounds = config.getBounds()
output.append((count, bounds.width, bounds.height, bounds.x, bounds.y))
count += 1
return output
print getScreens()