Mercurial > enso_core
changeset 57:9567b820b299
Updated documentation a bit for transparentwindow.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 25 Feb 2008 21:03:17 -0800 |
parents | 7cbc05f5e4d7 |
children | bdc82eda1e46 |
files | enso/graphics/transparentwindow.py |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/enso/graphics/transparentwindow.py Mon Feb 25 20:55:54 2008 -0800 +++ b/enso/graphics/transparentwindow.py Mon Feb 25 21:03:17 2008 -0800 @@ -1,14 +1,15 @@ import enso.providers -_graphics = enso.providers.getInterface( "graphics" ) - -# Import the TransparentWindow class into our namespace. -#TransparentWindow = _graphics.TransparentWindow - from enso.graphics.measurement import pointsToPixels, pixelsToPoints from enso.graphics.measurement import convertUserSpaceToPoints from enso import cairo +_graphics = enso.providers.getInterface( "graphics" ) + +# This is a wrapper for the platform-specific implementation of a +# TransparentWindow that makes the class use points instead of +# pixels. + class TransparentWindow( object ): def __init__( self, xPos, yPos, width, height ): # Convert from points to pixels