Forum: Ruby Shoes shape location

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jayson W. (Guest)
on 2008-11-05 23:42
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
This topic is locked and can not be replied to.