Changeset 1629

Show
Ignore:
Timestamp:
07/12/07 15:57:42 (1 year ago)
Author:
wrobe..@pld-linux.org
Message:

- merged changes from trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/branches/hw/demo_profile.py

    r1597 r1629  
    8585        global movable_item 
    8686        item = movable_item 
    87         handles = item.handles() 
    8887        import time 
    8988        t1 = time.time() 
    9089        for i in range(20): 
    91             for h in handles: 
    92                 h.x += 1 
    93                 h.y += 1 
     90            item.matrix.translate(1, 1) 
    9491            item.request_update() 
    9592            canvas.update_matrix(item) 
     
    214211if __name__ == '__main__': 
    215212    import hotshot, hotshot.stats 
     213    import gc 
     214    gc.set_debug(gc.DEBUG_COLLECTABLE) 
    216215    prof = hotshot.Profile('demo-gaphas.prof') 
    217216    prof.runcall(main)