Posted By

laurenceosx on 07/19/09


Tagged

guess jython


Versions (?)

guess - find all image nodes and size them


 / Published in: Python
 

  1. nodes =[n for n in g.nodes if n.image >'']
  2. >>> nodes
  3. [v2, v3]
  4. >>> for node in nodes: node.width, node.height = 640, 480
  5. >>>

Report this snippet  

You need to login to post a comment.