acircle.getCenter() to (x,y) coordinates in Python
Gregory Ewing
greg.ewing at canterbury.ac.nz
Sat Dec 23 23:05:13 EST 2017
G Yu wrote:
> The command gives <graphics.Point object
> at 0x0000013E0D263668>, and I don't know how to determine the x-coordinate of
> the center from that output.
Try this in an interactive session:
p = circle.getCenter()
help(p)
This should give you a page of text showing all the attributes
and methods your point object has. Somewhere in there will almost
certainly be something that tells you the coordinates.
--
Greg
More information about the Python-list
mailing list