Changeset 2159

Show
Ignore:
Timestamp:
10/07/07 23:35:13 (1 year ago)
Author:
arj..@yirdis.nl
Message:

Added connection_data property to Handle class. This property is reversible.

Imcremented version to 0.3.4.

Files:

Legend:

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

    r1917 r2159  
    4040        self._connected_to = None 
    4141 
    42         # The constraint used to keep the handle visually connected 
     42        # User data for the connection (e.g. constraints) 
     43        self._connection_data = None 
     44        # An extra property used to disconnect the constraint. Should be set 
     45        # by the application. 
    4346        self._disconnect = lambda: 0 
    4447 
     
    7982        self._connected_to = connected_to 
    8083 
    81     connected_to = reversible_property(lambda s: s._connected_to, _set_connected_to) 
     84    connected_to = reversible_property(lambda s: s._connected_to, 
     85                                       _set_connected_to) 
     86 
     87    @observed 
     88    def _set_connection_data(self, connection_data): 
     89        self._connection_data = connection_data 
     90 
     91    connection_data = reversible_property(lambda s: s._connection_data, 
     92                                          _set_connection_data) 
    8293 
    8394    @observed 
  • gaphas/trunk/setup.py

    r2153 r2159  
    11 
    2 VERSION = '0.3.3
     2VERSION = '0.3.4
    33 
    44from ez_setup import use_setuptools