Mercurial > enso_core
view enso/graphics/__init__.py @ 40:835c7c35e4c4
The graphics subsystem now operates entirely in points.
author | Andrew Wilson <andrew@humanized.com> |
---|---|
date | Sun, 24 Feb 2008 17:24:55 -0600 |
parents | 5e4c680f49a3 |
children |
line wrap: on
line source
import enso.providers _graphics = enso.providers.getInterface( "graphics" ) from enso.graphics.measurement import pointsToPixels, pixelsToPoints def getDesktopSize(): width, height = _graphics.getDesktopSize() width = pixelsToPoints( width ) height = pixelsToPoints( height ) return ( width, height )