For a Frame named frame1, use the following syntax to show the x coordinate in a page variable named x_coord
x_coord = frame1.GetXPosition()
Note:
In this example, the page variable x_coord should already have been created on your page and it will display the x coordinate (i.e. the Return Value) for Object frame1.