Show
Ignore:
Timestamp:
07/27/07 14:05:25 (1 year ago)
Author:
wrobe..@pld-linux.org
Message:

- more nested items added

Files:

Legend:

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

    r1752 r1778  
    172172        bb=Box() 
    173173        print 'box', bb 
    174         x = int(i % n) * 2
    175         y = int(i / n) * 2
     174        x = int(i % n) * 4
     175        y = int(i / n) * 4
    176176        bb.matrix.translate(20 + x, y) 
    177177        bb.matrix.rotate(math.pi/4.0 * i / 10.0) 
     178        bb.width = bb.height = 20 
    178179        c.add(bb, parent=b) 
     180        bb1 = Box() 
     181        bb1.matrix.translate(5, 5) 
     182        c.add(bb1, parent=bb) 
    179183 
    180184    tool = view.tool._tools[1] 
     
    239243        cProfile.run('main()', 'demo-gaphas.prof') 
    240244        p = pstats.Stats('demo-gaphas.prof') 
    241         p.strip_dirs().sort_stats('time').print_stats(20) 
     245        p.strip_dirs().sort_stats('time').print_stats(40) 
    242246    except ImportError, ex: 
    243247        import hotshot, hotshot.stats