[pygtk] getting goocanvas Group coordinates

Alessandro Dentella sandro at e-den.it
Fri Jun 12 16:33:03 WST 2009


Hi,

  I'm trying to figure out the logic that I should use to move around group
  objects in a goocanvas.
  
  What I do is: I create a Group object, declare it as parent in a rectangle
  and a text, use group.translate(dx, dy) to move the object to a position. 

  From then on I'd like to query the object and get the Group position for
  further processing but I can't see a property to query (no props.x) not a
  method that returns x,y coordinates?
  
  Am I wrong thinking that a Group *has* an x,y for the origin?

  sandro
  *:-)


More information about the pygtk mailing list