Changeset 2319

Show
Ignore:
Timestamp:
06/05/08 00:35:08 (6 months ago)
Author:
arj..@yirdis.nl
Message:

Bumped Gaphas' version to 0.3.7. Introduced Item.constraints, to be used to item constraints. Replaces use of Item._constraints in subclasses.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/trunk/gaphas/item.py

    r2266 r2319  
    132132    - matrix: item's transformation matrix 
    133133    - canvas: canvas, which owns an item 
    134      
     134    - constraints: list ofitem constraints, automatically registered 
     135      when the item is added to a canvas; may be extended in subclasses 
     136 
    135137    Private: 
    136138 
    137139    - _canvas:      canvas, which owns an item 
    138140    - _handles:     list of handles owned by an item 
    139     - _constraints: item's constraints 
    140141    - _matrix_i2c:  item to canvas coordinates matrix 
    141142    - _matrix_c2i:  canvas to item coordinates matrix 
     
    181182                doc="Canvas owning this item") 
    182183 
     184    constraints = property(lambda s: s._constraints, 
     185                doc="Item constraints") 
    183186 
    184187    def setup_canvas(self): 
     
    307310 
    308311        # setup constraints 
    309         self._constraints.extend([ 
     312        self.constraints.extend([ 
    310313            eq(a=h_nw.y, b=h_ne.y), 
    311314            eq(a=h_nw.x, b=h_sw.x), 
  • gaphas/trunk/setup.py

    r2235 r2319  
    11 
    2 VERSION = '0.3.6
     2VERSION = '0.3.7
    33 
    44from ez_setup import use_setuptools