# Shoes shape location

**URL:** <https://www.ruby-forum.com/t/shoes-shape-location/152642>\
**Category:** Ruby\
**Created:** [November 5, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/shoes-shape-location/152642 "2008-11-05T22:42:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@jayson](https://www.ruby-forum.com/u/jayson)\
**Post date:** [November 5, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/shoes-shape-location/152642/1 "2008-11-05T22:42:57Z")

</div>

In Shoes, how do I get the current location of a shape in a window.  
I thought the below would work, but console shows 0 for x and y

Shoes.app do  
shp = oval 10,10,40,40  
debug “shp x-#{shp.left} shp y-#{shp.top}”  
end
