Show
Ignore:
Timestamp:
09/25/07 11:21:19 (16 months ago)
Author:
fdb
Message:

Lots of graphics changes:
- canvas is now a public attribute, set in the namespace
- Canvas has list-like behaviour (iter, getitem, len)
- TransformMixin? now uses properties instead of methods for transform and transformmode
- ColorMixin? now uses properties instead of methods for fill, stroke and strokewidth
- Public attributes BezierPath?.path, Image.image and Transform.transform are deprecated in favour of _nsBezierPath, _nsImage and _nsAffineTransform
- Rect and Oval classes now have a deprecated warning
- Canvas.image is now Canvas._nsImage
- Context can now be constructed without parameters
- Context now has a save method
- grid, random, files and autotext moved to nodebox.util
Also, updated examples

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • nodebox/trunk/src/DrawingPrimitives.py

    r155 r159  
    88 
    99__all__ = nodebox.graphics.cocoa.__all__ 
     10 
     11import warnings 
     12warnings.warn('DrawingPrimitives is deprecated. Please use "from nodebox import graphics"', DeprecationWarning, stacklevel=2)