Changeset 1627

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

- automatic move example uses matrix now

Files:

Legend:

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

    r1509 r1627  
    8989        t1 = time.time() 
    9090        for i in range(20): 
    91             for h in handles: 
    92                 h.x += 1 
    93                 h.y += 1 
     91            item.matrix.translate(1, 1) 
    9492            item.request_update() 
    9593            canvas.update_matrix(item) 
     
    177175        c.add(bb, parent=b) 
    178176 
     177    for i in range(count): 
     178        bb = MyBox() 
     179        bb.width = bb.height = 15 
     180        x = int(i % 4) * 20 
     181        y = int(i / 4) * 20 
     182        bb.matrix.translate(5 + x, 100 + y) 
     183        c.add(bb) 
     184 
    179185    t=MyText('Single line') 
    180186    t.matrix.translate(70,70)