Changeset 1555

Show
Ignore:
Timestamp:
07/02/07 12:18:27 (1 year ago)
Author:
wrobe..@pld-linux.org
Message:

- item placement fixes

Files:

Legend:

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

    r1552 r1555  
    301301    b.min_width = 20 
    302302    b.min_height = 30 
     303    b.width = b.height = 40 
    303304    b.matrix=(1.0, 0.0, 0.0, 1, 20,20) 
    304     b.width=b.height = 40 
    305305    c.add(b) 
    306306 
    307307    fl = FatLine() 
    308308    h1, h2 = fl.handles() 
    309     h1.x = 50 
    310     h1.y = 50 
    311     fl.matrix.translate(50, 50) 
     309    h1.x = 100 
     310    h1.y = 100 
    312311    fl.height = 50 
     312    fl.matrix.translate(100, 100) 
    313313    c.add(fl) 
    314314 
     
    317317    h1, h2 = circle.handles() 
    318318    h1.x = 50 
    319     h1.y = 150 
    320     h2.x = 50 
    321     h2.y = 80 
    322     circle.radius = 10 
    323     circle.matrix.translate(50, 150) 
     319    h1.y = 100 
     320    circle.radius = 20 
     321    circle.matrix.translate(50, 100) 
    324322    c.add(circle) 
    325323 
     
    353351    h[1].y += h[0].y + 30 
    354352    l.split_segment(0, 3) 
    355     l.matrix.translate(30, 60) 
    356     print l, h[0].x, h[0].y, h[1].x, h[1].y 
     353    l.matrix.translate(30, 30) 
    357354    c.add(l) 
    358     print l, h[0].x, h[0].y, h[1].x, h[1].y 
    359     #l.orthogonal = True 
     355    l.orthogonal = True 
    360356 
    361357    off_y = 0