librelist archives

« back to archive

Unable to access correct co-ordinates in ruby Shoes application (please help)

Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Harsh Trivedi
Date:
2014-10-18 @ 16:16
I am making an application in Ruby Shoes 3.2 (Red). I am making a simple
circle shape, for which I later need to access the co-ordinates(left and
top). But instead of getting correct co-ordinates , I get ZERO as answer
each time.

I am not able to understand why this is happening.

Shoes.app do
    @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
    Shoes.debug @circle.left #=> 0
    Shoes.debug @circle.top  #=> 0
    Shoes.debug @circle.height  #=> 0
    Shoes.debug @circle.width   #=> 0end

This thing works in green_shoes, but I dont know why not in Red shoes. I
think I am missing out something because this things is much fundamental
for any shoes app to work.

I am using Linux Ubuntu 13.10 (If this information is at all required..)

Please help, thanks in advance :)

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Douglas Allen
Date:
2014-10-18 @ 18:31
I'm using debian kali and your code works fine here. Try the install plan
for your distro from
https://github.com/shoes/shoes/wiki/Building-Shoes-on-Linux
Hope this helps.

On Sat, Oct 18, 2014 at 11:16 AM, Harsh Trivedi <harshjtrivedi94@gmail.com>
wrote:

> I am making an application in Ruby Shoes 3.2 (Red). I am making a simple
> circle shape, for which I later need to access the co-ordinates(left and
> top). But instead of getting correct co-ordinates , I get ZERO as answer
> each time.
>
> I am not able to understand why this is happening.
>
> Shoes.app do
>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>     Shoes.debug @circle.left #=> 0
>     Shoes.debug @circle.top  #=> 0
>     Shoes.debug @circle.height  #=> 0
>     Shoes.debug @circle.width   #=> 0end
>
> This thing works in green_shoes, but I dont know why not in Red shoes. I
> think I am missing out something because this things is much fundamental
> for any shoes app to work.
>
> I am using Linux Ubuntu 13.10 (If this information is at all required..)
>
> Please help, thanks in advance :)
>

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Douglas Allen
Date:
2014-10-18 @ 18:34
ps I was also using rvm initially to build shoes and it was ruby version
1.9.3. As of yet to try with 2.1.2 but I'll let you know.


On Sat, Oct 18, 2014 at 1:31 PM, Douglas Allen <kb9agt@gmail.com> wrote:

> I'm using debian kali and your code works fine here. Try the install plan
> for your distro from
> https://github.com/shoes/shoes/wiki/Building-Shoes-on-Linux
> Hope this helps.
>
> On Sat, Oct 18, 2014 at 11:16 AM, Harsh Trivedi <harshjtrivedi94@gmail.com
> > wrote:
>
>> I am making an application in Ruby Shoes 3.2 (Red). I am making a simple
>> circle shape, for which I later need to access the co-ordinates(left and
>> top). But instead of getting correct co-ordinates , I get ZERO as answer
>> each time.
>>
>> I am not able to understand why this is happening.
>>
>> Shoes.app do
>>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>>     Shoes.debug @circle.left #=> 0
>>     Shoes.debug @circle.top  #=> 0
>>     Shoes.debug @circle.height  #=> 0
>>     Shoes.debug @circle.width   #=> 0end
>>
>> This thing works in green_shoes, but I dont know why not in Red shoes. I
>> think I am missing out something because this things is much fundamental
>> for any shoes app to work.
>>
>> I am using Linux Ubuntu 13.10 (If this information is at all required..)
>>
>> Please help, thanks in advance :)
>>
>
>

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Cecil Coupe
Date:
2014-10-18 @ 23:34
Ahh,
    It's one of the curiosities of Shoes.  Try the following code

Shoes.app do
     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
     button "show" do
       Shoes.debug @circle.left #=> 0
       Shoes.debug @circle.top  #=> 0
       Shoes.debug @circle.height  #=> 0
       Shoes.debug @circle.width   #=> 0
   end
end

The call on @circle.left is run before the oval is actually drawn on 
screen.

--Cecil

On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
>
> I am making an application in Ruby Shoes 3.2 (Red). I am making a 
> simple circle shape, for which I later need to access the 
> co-ordinates(left and top). But instead of getting correct 
> co-ordinates , I get ZERO as answer each time.
>
> I am not able to understand why this is happening.
>
> |Shoes.appdo
>      @circle  =  oval(:left=>  20,  :top=>  23  ,  :radius=>  40,  fill:  green)
>      Shoes.debug@circle.left#=> 0
>      Shoes.debug@circle.top#=> 0
>      Shoes.debug@circle.height#=> 0
>      Shoes.debug@circle.width#=> 0
> end|
>
> This thing works in green_shoes, but I dont know why not in Red shoes. 
> I think I am missing out something because this things is much 
> fundamental for any shoes app to work.
>
> I am using Linux Ubuntu 13.10 (If this information is at all required..)
>
> Please help, thanks in advance :)
>

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
peter marien
Date:
2014-10-19 @ 13:26
In green shoes both snippets work correctly (and logical) and show the real
values.
This kind of behaviour confirms me in my opinion that it is still the best
implementation of shoes.
Also the implementation the most used I dare to presume.
Are there still no devs who take it further ?

2014-10-19 1:34 GMT+02:00 Cecil Coupe <ccoupe@cableone.net>:

>  Ahh,
>    It's one of the curiosities of Shoes.  Try the following code
>
> Shoes.app do
>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>     button "show" do
>       Shoes.debug @circle.left #=> 0
>       Shoes.debug @circle.top  #=> 0
>       Shoes.debug @circle.height  #=> 0
>       Shoes.debug @circle.width   #=> 0
>   end
> end
>
> The call on @circle.left is run before the oval is actually drawn on
> screen.
>
> --Cecil
>
> On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
>
>  I am making an application in Ruby Shoes 3.2 (Red). I am making a simple
> circle shape, for which I later need to access the co-ordinates(left and
> top). But instead of getting correct co-ordinates , I get ZERO as answer
> each time.
>
> I am not able to understand why this is happening.
>
> Shoes.app do
>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>     Shoes.debug @circle.left #=> 0
>     Shoes.debug @circle.top  #=> 0
>     Shoes.debug @circle.height  #=> 0
>     Shoes.debug @circle.width   #=> 0end
>
> This thing works in green_shoes, but I dont know why not in Red shoes. I
> think I am missing out something because this things is much fundamental
> for any shoes app to work.
>
> I am using Linux Ubuntu 13.10 (If this information is at all required..)
>
> Please help, thanks in advance :)
>
>
>

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Peter Fitzgibbons
Date:
2014-10-19 @ 14:04
HI Peter,

I hear your frustration, and if you can help us with some additional
information we might be able to find out why your code does not work on
your computer on Shoes 4.
The inspiration for Shoes 4, way back after _why's departure, was indeed
Green Shoes and Brown Shoes, Purple Shoes, and Shoes 3 (Red Shoes).  The
intent all along has been twofold.  First to upgrade Red Shoes, which had
become impossible to recompile in the world of 64-bit os's, major-version
upgrades of linux-kernel, and all those base libs. Second to bring together
the expertise of all the Shoes Colors and focus our effort on one central
framework that could eventually be used to run all the shoes "colors".
The Shoes Team's pre-release of 4.0 is the culmination of years of work
literally around the world.  Yet it is indeed called "pre-release".
Edgecases and a very long list of work to-do are still on the table.

If you please, could you tell us the Ruby version, OS, Kernel version and
Java version that you're using?

Thanks and Kindest Regards,

GO SHOES!

Peter Fitzgibbons
(847) 859-9550
G+ : peter.fitzgibbons@gmail.com

On Sun, Oct 19, 2014 at 6:26 AM, peter marien <daddie88@gmail.com> wrote:

> In green shoes both snippets work correctly (and logical) and show the
> real values.
> This kind of behaviour confirms me in my opinion that it is still the best
> implementation of shoes.
> Also the implementation the most used I dare to presume.
> Are there still no devs who take it further ?
>
> 2014-10-19 1:34 GMT+02:00 Cecil Coupe <ccoupe@cableone.net>:
>
>>  Ahh,
>>    It's one of the curiosities of Shoes.  Try the following code
>>
>> Shoes.app do
>>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>>     button "show" do
>>       Shoes.debug @circle.left #=> 0
>>       Shoes.debug @circle.top  #=> 0
>>       Shoes.debug @circle.height  #=> 0
>>       Shoes.debug @circle.width   #=> 0
>>   end
>> end
>>
>> The call on @circle.left is run before the oval is actually drawn on
>> screen.
>>
>> --Cecil
>>
>> On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
>>
>>  I am making an application in Ruby Shoes 3.2 (Red). I am making a
>> simple circle shape, for which I later need to access the co-ordinates(left
>> and top). But instead of getting correct co-ordinates , I get ZERO as
>> answer each time.
>>
>> I am not able to understand why this is happening.
>>
>> Shoes.app do
>>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>>     Shoes.debug @circle.left #=> 0
>>     Shoes.debug @circle.top  #=> 0
>>     Shoes.debug @circle.height  #=> 0
>>     Shoes.debug @circle.width   #=> 0end
>>
>> This thing works in green_shoes, but I dont know why not in Red shoes. I
>> think I am missing out something because this things is much fundamental
>> for any shoes app to work.
>>
>> I am using Linux Ubuntu 13.10 (If this information is at all required..)
>>
>> Please help, thanks in advance :)
>>
>>
>>
>

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
peter marien
Date:
2014-10-19 @ 17:39
Thnx for answering Peter but I don't plan to use Shoes 4.
I use Ruby MRI as much as I can and I'm quite happy with green shoes.
If only some dev would update it from time to time so that it doesn't go
lost with its userbase.

@Harsh, I wrote a little sample that uses the coördinates of a circle to do
drag and drop, I hope it helps is some way

require 'green_shoes'

@app = Shoes.app do
  para "Push the mousebutton to drag, release where you want to move it."
  @x,@y=0,25
  @drag = false
  @circle = oval(:left => @x, :top => @y , :radius => 40, fill: green)

  @circle.click do |button, x,y|
    @drag = true
  end

  @circle.release do |button, x,y|
    @drag = false
  end

  animate(12) do
    if @drag
      @x, @y = self.mouse[1,2]
      @x -= @circle.radius
      @y -= @circle.radius
      @circle.move(@x,@y)
    end
  end
end

2014-10-19 16:04 GMT+02:00 Peter Fitzgibbons <peter.fitzgibbons@gmail.com>:

> HI Peter,
>
> I hear your frustration, and if you can help us with some additional
> information we might be able to find out why your code does not work on
> your computer on Shoes 4.
> The inspiration for Shoes 4, way back after _why's departure, was indeed
> Green Shoes and Brown Shoes, Purple Shoes, and Shoes 3 (Red Shoes).  The
> intent all along has been twofold.  First to upgrade Red Shoes, which had
> become impossible to recompile in the world of 64-bit os's, major-version
> upgrades of linux-kernel, and all those base libs. Second to bring together
> the expertise of all the Shoes Colors and focus our effort on one central
> framework that could eventually be used to run all the shoes "colors".
> The Shoes Team's pre-release of 4.0 is the culmination of years of work
> literally around the world.  Yet it is indeed called "pre-release".
> Edgecases and a very long list of work to-do are still on the table.
>
> If you please, could you tell us the Ruby version, OS, Kernel version and
> Java version that you're using?
>
> Thanks and Kindest Regards,
>
> GO SHOES!
>
> Peter Fitzgibbons
> (847) 859-9550
> G+ : peter.fitzgibbons@gmail.com
>
> On Sun, Oct 19, 2014 at 6:26 AM, peter marien <daddie88@gmail.com> wrote:
>
>> In green shoes both snippets work correctly (and logical) and show the
>> real values.
>> This kind of behaviour confirms me in my opinion that it is still the
>> best implementation of shoes.
>> Also the implementation the most used I dare to presume.
>> Are there still no devs who take it further ?
>>
>> 2014-10-19 1:34 GMT+02:00 Cecil Coupe <ccoupe@cableone.net>:
>>
>>>  Ahh,
>>>    It's one of the curiosities of Shoes.  Try the following code
>>>
>>> Shoes.app do
>>>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>>>     button "show" do
>>>       Shoes.debug @circle.left #=> 0
>>>       Shoes.debug @circle.top  #=> 0
>>>       Shoes.debug @circle.height  #=> 0
>>>       Shoes.debug @circle.width   #=> 0
>>>   end
>>> end
>>>
>>> The call on @circle.left is run before the oval is actually drawn on
>>> screen.
>>>
>>> --Cecil
>>>
>>> On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
>>>
>>>  I am making an application in Ruby Shoes 3.2 (Red). I am making a
>>> simple circle shape, for which I later need to access the co-ordinates(left
>>> and top). But instead of getting correct co-ordinates , I get ZERO as
>>> answer each time.
>>>
>>> I am not able to understand why this is happening.
>>>
>>> Shoes.app do
>>>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>>>
>>>     Shoes.debug @circle.left #=> 0
>>>     Shoes.debug @circle.top  #=> 0
>>>     Shoes.debug @circle.height  #=> 0
>>>     Shoes.debug @circle.width   #=> 0end
>>>
>>> This thing works in green_shoes, but I dont know why not in Red shoes. I
>>> think I am missing out something because this things is much fundamental
>>> for any shoes app to work.
>>>
>>> I am using Linux Ubuntu 13.10 (If this information is at all required..)
>>>
>>> Please help, thanks in advance :)
>>>
>>>
>>>
>>
>

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Peter Fitzgibbons
Date:
2014-10-19 @ 19:22
Hi peter.  The issue is that shoes three is largely unmaintainable.  The
code base cannot be compiled on any modern OS.  Note that shoes 3 is not
self contained.  It is comprised if several component libraries.

We look forward to hearing more about your environment so we can
incorporate resolution of your issue into the shoes 4 base


Kindest regards,



On Sunday, October 19, 2014, peter marien <daddie88@gmail.com> wrote:

> Thnx for answering Peter but I don't plan to use Shoes 4.
> I use Ruby MRI as much as I can and I'm quite happy with green shoes.
> If only some dev would update it from time to time so that it doesn't go
> lost with its userbase.
>
> @Harsh, I wrote a little sample that uses the coördinates of a circle to
> do drag and drop, I hope it helps is some way
>
> require 'green_shoes'
>
> @app = Shoes.app do
>   para "Push the mousebutton to drag, release where you want to move it."
>   @x,@y=0,25
>   @drag = false
>   @circle = oval(:left => @x , :top => @y , :radius => 40, fill: green)
>
>   @circle.click do |button, x,y|
>     @drag = true
>   end
>
>   @circle.release do |button, x,y|
>     @drag = false
>   end
>
>   animate(12) do
>     if @drag
>       @x, @y = self.mouse[1,2]
>       @x -= @circle.radius
>       @y -= @circle.radius
>       @circle.move(@x,@y)
>     end
>   end
> end
>
> 2014-10-19 16:04 GMT+02:00 Peter Fitzgibbons <peter.fitzgibbons@gmail.com
> <javascript:_e(%7B%7D,'cvml','peter.fitzgibbons@gmail.com');>>:
>
>> HI Peter,
>>
>> I hear your frustration, and if you can help us with some additional
>> information we might be able to find out why your code does not work on
>> your computer on Shoes 4.
>> The inspiration for Shoes 4, way back after _why's departure, was indeed
>> Green Shoes and Brown Sho es, Purple Shoes, and Shoes 3 (Red Shoes).  The
>> intent all along has been twofold.  First to upgrade Red Shoes, which had
>> become impossible to recompile in the world of 64-bit os's, major-version
>> upgrades of linux-kernel, and all those base libs. Second to bring together
>> the expertise of all the Shoes Colors and focus our effort on one central
>> framework that could eventually be used to run all the shoes "colors".
>> The Shoes Team's pre-release of 4.0 is the culmination of years of work
>> literally around the world.  Yet it is indeed called "pre-release".
>> Edgecases and a very long list of work to-do are still on the table.
>>
>> If you please, could you tell us the Ruby version, OS, Kernel version and
>> Java version that you're using?
>>
>> Thanks and Kindest Regards,
>>
>> GO SHOES!
>>
>> Peter Fitzgibbons
>> (847) 859-9550
>> G+ : peter.fitzgibbons@gmail.com
>> <javascript:_e(%7B%7D,'cvml','peter.fitzgibbons@gmail.com');>
>>
>> On Sun, Oct 19, 2014 at 6:26 AM, peter marien <daddie88@gmail.com
>> <javascript:_e(%7B%7D,'cvml','daddie88@gmail.com');>> wrote:
>>
>>> In green shoes both snippets work correctly (and logical) and show the
>>> real values.
>>> This kind of behaviour confirms me in my opinion that it is still the
>>> best implementation of shoes.
>>> Also the implementation the most used I dare to presume.
>>> Are there still no devs who take it further ?
>>>
>>> 2014-10-19 1:34 GMT+02:00 Cecil Coupe <ccoupe@cableone.net
>>> <javascript:_e(%7B%7D,'cvml','ccoupe@cableone.net');>>:
>>>
>>>>  Ahh,
>>>>    It's one of the curiosities of Shoes.  Try the following code
>>>>
>>>> Shoes.app do
>>>>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>>>>     button "show" do
>>>>       Shoes.debug @circle.left #=> 0
>>>>       Shoes.debug @circle.top  #=> 0
>>>>       Shoes.debug @circle.height  #=> 0
>>>>       Shoes.debug @circle.width   #=> 0
>>>>   end
>>>> end
>>>>
>>>> The call on @circle.left is run before the oval is actually drawn on
>>>> screen.
>>>>
>>>> --Cecil
>>>>
>>>> On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
>>>>
>>>>  I am making an application in Ruby Shoes 3.2 (Red). I am making a
>>>> simple circle shape, for which I later need to access the co-ordinates(left
>>>> and top). But instead of getting correct co-ordinates , I get ZERO as
>>>> answer each time.
>>>>
>>>> I am not able to understand why this is happening.
>>>>
>>>> Shoes.app do
>>>>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>>>>
>>>>     Shoes.debug @circle.left #=> 0
>>>>     Shoes.debug @circle.top  #=> 0
>>>>     Shoes.debug @circle.height  #=> 0
>>>>     Shoes.debug @circle.width   #=> 0end
>>>>
>>>> This thing works in green_shoes, but I dont know why not in Red shoes.
>>>> I think I am missing out something because this things is much fundamental
>>>> for any shoes app to work.
>>>>
>>>> I am using Linux Ubuntu 13.10 (If this information is at all required..)
>>>>
>>>> Please help, thanks in advance :)
>>>>
>>>>
>>>>
>>>
>>
>

-- 
Peter Fitzgibbons
(847) 859-9550
G+ : peter.fitzgibbons@gmail.com

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Cecil Coupe
Date:
2014-10-19 @ 20:41
Peter,

   Just a small correction. I am maintaining Red Shoes (3.2) and it's 
running better than 3.1 ever did on Windows 7+, OSX 10.9.4, Ubuntu 14.04 
and some recent versions of Fedora and Suse. 64 bit for linux and OSX 
and a Raspberry version.  Ruby 2.1.x.  Downloadable installers for 5 
platforms. No need to build from source.

   I just fixed a hanging bug on Windows thats frustrated us for years 
and years. Shoes 3.2 is self contained if you want it to be. I've 
restored most of all the packaging functionality and I hope to get 100% 
by the end of the week.
   Is it more work than some folks want to do? Yes.

I'm not interested is arguing which Shoes is better. The all have they 
fans and various strengths and weaknesses.  I have no deep love or fear 
for jruby or mri ruby.

The question is what the snippets do on Shoes 4? Changing that behaviour 
on Shoes 3.2 might be impossible and it's very late to the game changes 
to Shoes 4 (in either direction).

Green Shoes will improve when someone decides to do it.

--Cecil

On 10/19/2014 01:22 PM, Peter Fitzgibbons wrote:
> Hi peter.  The issue is that shoes three is largely unmaintainable.  
> The code base cannot be compiled on any modern OS.  Note that shoes 3 
> is not self contained.  It is comprised if several component libraries.
>
> We look forward to hearing more about your environment so we can 
> incorporate resolution of your issue into the shoes 4 base
>
>
> Kindest regards,
>
>
>
> On Sunday, October 19, 2014, peter marien <daddie88@gmail.com 
> <mailto:daddie88@gmail.com>> wrote:
>
>     Thnx for answering Peter but I don't plan to use Shoes 4.
>     I use Ruby MRI as much as I can and I'm quite happy with green shoes.
>     If only some dev would update it from time to time so that it
>     doesn't go lost with its userbase.
>
>     @Harsh, I wrote a littl e sample that uses the coördinates of a
>     circle to do drag and drop, I hope it helps is some way
>
>     require 'green_shoes'
>
>     @app = Shoes.app do
>       para "Push the mousebutton to drag, release where you want to
>     move it."
>       @x,@y=0,25
>       @drag = false
>       @circle = oval(:left => @x , :top => @y , :radius => 40, fill:
>     green)
>
>       @circle.click do |button, x,y|
>         @drag = true
>       end
>
>     @circle.release do |button, x,y|
>         @drag = false
>       end
>
>       animate(12) do
>         if @drag
>           @x, @y = self.mouse[1,2]
>           @x -= @circle.radius
>     � �     @y -= @circle.radius
>     @circle.move(@x,@y)
>         end
>       end
>     end
>
>     2014-10-19 16:04 GMT+02:00 Peter Fitzgibbons
>     <peter.fitzgibbons@gmail.com
>     <javascript:_e(%7B%7D,'cvml','peter.fitzgibbons@gmail.com');>>:
>
>         HI Peter,
>
>         I hear your frustration, and if you can help us with some
>         additional information we might be able to find out why your
>         code does not work on your computer on Shoes 4.
>         The inspiration for Shoes 4, way back after _why's departure,
>         was indeed Green Shoes an d Brown Sho es, Purple Shoes, and
>         Shoes 3 (Red Shoes).  The intent all along has been twofold.
>         First to upgrade Red Shoes, which had become impossible to
>         recompile in the world of 64-bit os's, major-version upgrades
>         of linux-kernel, and all those base libs. Second to bring
>         together the expertise of all the Shoes Colors and focus our
>         effort on one central framework that could eventually be used
>         to run all the shoes "colors".
>         The Shoes Team's pre-release of 4.0 is the culmination of
>         years of work literally around the world.  Yet it is indeed
>         called "pre-release". Edgecases and a very long list of work
>         to-do are still on the table.
>
>         If you please, could you tell us the Ruby version, OS, Kernel
>         version and Java version that you're using?
>
>         Thanks and Kindest Regards,
>
>         GO SHOES!
>
>         Peter Fitzgibbons
>         (847) 859-9550 <tel:%28847%29%20859-9550>
>         G+ : peter.fitzgibbons@gmail.com
>         <javascript:_e(%7B%7D,'cvml','peter.fitzgibbons@gmail.com');>
>
>         On Sun, Oct 19, 2014 at 6:26 AM, peter marien
>         <daddie88@gmail.com
>         <javascript:_e(%7B%7D,'cvml','daddie88@gmail.com');>> wrote:
>
>             In green shoes both snippets work correctly (and logical)
>             and show the real values.
>             This kind of behaviour confirms me in my opinion that it
>             is still the best implementation of shoes.
>             Also the implementation the most used I dare to presume.
>             Are there still no devs who take it further ?
>
>             2014-10-19 1:34 GMT+02:00 Cecil Coupe <ccoupe@cableone.net
>             <javascript:_e(%7B%7D,'cvml','ccoupe@cableone.net');>>:
>
>                 Ahh,
>                    It's one of the curiosities of Shoes.  Try the
>                 following code
>
>                 Shoes.app do
>                     @circle = oval(:left => 20, :top => 23 , :radius
>                 => 40, fill: green)
>                     button "show" do
>                       Shoes.debug @circle.left #=> 0
>                       Shoes.debug @circle.top #=> 0
>                       Shoes.debug @circle.height  #=> 0
>                       Shoes.debug @circle.width   #=> 0
>                   end
>                 end
>
>                 The call on @circle.left is run before the oval is
>                 actually drawn on screen.
>
>                 --Cecil
>
>                 On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
>>
>>                 I am making an application in Ruby Shoes 3.2 (Red). I
>>                 am making a simple circle shape, for which I later
>>                 need to access the co-ordinates(left and top). But
>>                 instead of getting correct co-ordinates , I get ZERO
>>                 as answer each time.
>>
>>                 I am not able to understand why this is happening.
>>
>>                 |Shoes.appdo
>>                      @circle  =  oval(:left=>  20,  :top=>  23  ,  
:radius=>  40,  fill:  green)
>>                   
>>                      Shoes.debug@circle.left#=> 0
>>                      Shoes.debug@circle.top#=> 0
>>                      Shoes.debug@circle.height#=> 0
>>                      Shoes.debug@circle.width#=> 0
>>                 end|
>>
>>                 This thing works in green_shoes, but I dont know why
>>                 not in Red shoes. I think I am missing out something
>>                 because this things is much fundamental for any shoes
>>                 app to work.
>>
>>                 I am using Linux Ubuntu 13.10 (If this information is
>>                 at all required..)
>>
>>                 Please help, thanks in advance :)
>>
>
>
>
>
>
>
> -- 
> Peter Fitzgibbons
> (847) 859-9550
> G+ : peter.fitzgibbons@gmail.com <mailto:peter.fitzgibbons@gmail.com>
>

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Harsh Trivedi
Date:
2014-10-20 @ 09:28
Thanks a lot Cecil , Peter and Douglas for answering to my question,

@Cecil , As you said : this code:

Shoes.app do
    @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
    button "show" do
      Shoes.debug @circle.left #=> 0
      Shoes.debug @circle.top  #=> 0
      Shoes.debug @circle.height  #=> 0
      Shoes.debug @circle.width   #=> 0
  end
end

works perfectly. And you have also convinced me for the fact why my version
of it would not have been running on Red Shoes. Thanks

By the way, as a work around, I too had arrived to a solution which goes
like:

Shoes.app do
    @circle = oval( radius: 40 ,fill: green)
    @circle.left = 20
    @circle.top = 23

      Shoes.debug @circle.left #=> 20
      Shoes.debug @circle.top  #=> 23
      Shoes.debug @circle.height  #=> 80
      Shoes.debug @circle.width   #=> 80
end


And @peter, thanks for sharing with me that sample. It helped :)

regards,
Harsh




On Mon, Oct 20, 2014 at 2:11 AM, Cecil Coupe <ccoupe@cableone.net> wrote:

>  Peter,
>
>   Just a small correction. I am maintaining Red Shoes (3.2) and it's
> running better than 3.1 ever did on Windows 7+, OSX 10.9.4, Ubuntu 14.04
> and some recent versions of Fedora and Suse. 64 bit for linux and OSX and a
> Raspberry version.  Ruby 2.1.x.  Downloadable installers for 5 platforms.
> No need to build from source.
>
>   I just fixed a hanging bug on Windows thats frustrated us for years and
> years. Shoes 3.2 is self contained if you want it to be. I've restored most
> of all the packaging functionality and I hope to get 100% by the end of the
> week.
>   Is it more work than some folks want to do? Yes.
>
> I'm not interested is arguing which Shoes is better. The all have they
> fans and various strengths and weaknesses.  I have no deep love or fear for
> jruby or mri ruby.
>
> The question is what the snippets do on Shoes 4? Changing that behaviour
> on Shoes 3.2 might be impossible and it's very late to the game changes to
> Shoes 4 (in either direction).
>
> Green Shoes will improve when someone decides to do it.
>
> --Cecil
>
>
> On 10/19/2014 01:22 PM, Peter Fitzgibbons wrote:
>
> Hi peter.  The issue is that shoes three is largely unmaintainable.  The
> code base cannot be compiled on any modern OS.  Note that shoes 3 is not
> self contained.  It is comprised if several component libraries.
>
>  We look forward to hearing more about your environment so we can
> incorporate resolution of your issue into the shoes 4 base
>
>
>  Kindest regards,
>
>
>
> On Sunday, October 19, 2014, peter marien <daddie88@gmail.com> wrote:
>
>> Thnx for answering Peter but I don't plan to use Shoes 4.
>> I use Ruby MRI as much as I can and I'm quite happy with green shoes.
>> If only some dev would update it from time to time so that it doesn't go
>> lost with its userbase.
>>
>>  @Harsh, I wrote a littl e sample that uses the coördinates of a circle
>> to do drag and drop, I hope it helps is some way
>>
>>  require 'green_shoes'
>>
>>  @app = Shoes.app do
>>   para "Push the mousebutton to drag, release where you want to move it."
>>   @x,@y=0,25
>>   @drag = false
>>   @circle = oval(:left => @x , :top => @y , :radius => 40, fill: green)
>>
>>    @circle.click do |button, x,y|
>>     @drag = true
>>   end
>>
>>    @circle.release do |button, x,y|
>>     @drag = false
>>   end
>>
>>    animate(12) do
>>     if @drag
>>       @x, @y = self.mouse[1,2]
>>       @x -= @circle.radius
>> � �     @y -= @circle.radius
>>       @circle.move(@x,@y)
>>     end
>>   end
>> end
>>
>> 2014-10-19 16:04 GMT+02:00 Peter Fitzgibbons <peter.fitzgibbons@gmail.com
>> >:
>>
>>> HI Peter,
>>>
>>>  I hear your frustration, and if you can help us with some additional
>>> information we might be able to find out why your code does not work on
>>> your computer on Shoes 4.
>>> The inspiration for Shoes 4, way back after _why's departure, was indeed
>>> Green Shoes an d Brown Sho es, Purple Shoes, and Shoes 3 (Red Shoes).  The
>>> intent all along has been twofold.  First to upgrade Red Shoes, which had
>>> become impossible to recompile in the world of 64-bit os's, major-version
>>> upgrades of linux-kernel, and all those base libs. Second to bring together
>>> the expertise of all the Shoes Colors and focus our effort on one central
>>> framework that could eventually be used to run all the shoes "colors".
>>> The Shoes Team's pre-release of 4.0 is the culmination of years of work
>>> literally around the world.  Yet it is indeed called "pre-release".
>>> Edgecases and a very long list of work to-do are still on the table.
>>>
>>>  If you please, could you tell us the Ruby version, OS, Kernel version
>>> and Java version that you're using?
>>>
>>>  Thanks and Kindest Regards,
>>>
>>>  GO SHOES!
>>>
>>>  Peter Fitzgibbons
>>> (847) 859-9550 <%28847%29%20859-9550>
>>> G+ : peter.fitzgibbons@gmail.com
>>>
>>> On Sun, Oct 19, 2014 at 6:26 AM, peter marien <daddie88@gmail.com>
>>> wrote:
>>>
>>>> In green shoes both snippets work correctly (and logical) and show the
>>>> real values.
>>>> This kind of behaviour confirms me in my opinion that it is still the
>>>> best implementation of shoes.
>>>> Also the implementation the most used I dare to presume.
>>>> Are there still no devs who take it further ?
>>>>
>>>> 2014-10-19 1:34 GMT+02:00 Cecil Coupe <ccoupe@cableone.net>:
>>>>
>>>>>  Ahh,
>>>>>    It's one of the curiosities of Shoes.  Try the following code
>>>>>
>>>>> Shoes.app do
>>>>>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill:
>>>>> green)
>>>>>     button "show" do
>>>>>       Shoes.debug @circle.left #=> 0
>>>>>       Shoes.debug @circle.top  #=> 0
>>>>>       Shoes.debug @circle.height  #=> 0
>>>>>       Shoes.debug @circle.width   #=> 0
>>>>>   end
>>>>> end
>>>>>
>>>>> The call on @circle.left is run before the oval is actually drawn on
>>>>> screen.
>>>>>
>>>>> --Cecil
>>>>>
>>>>> On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
>>>>>
>>>>>  I am making an application in Ruby Shoes 3.2 (Red). I am making a
>>>>> simple circle shape, for which I later need to access the co-ordinates(left
>>>>> and top). But instead of getting correct co-ordinates , I get ZERO as
>>>>> answer each time.
>>>>>
>>>>> I am not able to understand why this is happening.
>>>>>
>>>>> Shoes.app do
>>>>>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>>>>>
>>>>>     Shoes.debug @circle.left #=> 0
>>>>>     Shoes.debug @circle.top  #=> 0
>>>>>     Shoes.debug @circle.height  #=> 0
>>>>>     Shoes.debug @circle.width   #=> 0end
>>>>>
>>>>> This thing works in green_shoes, but I dont know why not in Red shoes.
>>>>> I think I am missing out something because this things is much fundamental
>>>>> for any shoes app to work.
>>>>>
>>>>> I am using Linux Ubuntu 13.10 (If this information is at all
>>>>> required..)
>>>>>
>>>>> Please help, thanks in advance :)
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
> --
> Peter Fitzgibbons
> (847) 859-9550
> G+ : peter.fitzgibbons@gmail.com
>
>
>

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Tobias Pfeiffer
Date:
2014-10-20 @ 10:49
Hi everyone,

sorry for my absence I've been in Portugal with a cancelled flight and all =)

I tried out the original and the work around sample on the current Shoes 
4. Both work just fine :-) So you can give it a spin if you like @Harsh.

@peter marien:  any specific reason you like to stick with CRuby and not 
JRuby? Would love to know. Personally I feel like Shoes 3.2 is the most 
complete implementation atm, then 3.1 as the good old reference with Shoes
4 gaining ground :-) My personal experience with green_shoes porting 
scripts back in the day hasn't been too good, but that might just be me. 
If you want to move green_shoes forward, please go ahead and do so - it's 
open source :-) If you do get some improvements out there I'm sure ash 
would be happy to give you access rights.

@cecil: The snippets do work on Shoes 4 so it might be a good change. Not 
all of these situations/queries will always work right now on shoes4 
(positioning for elements that have no left/top set is only done at the 
end) but it is on our todo list to assign them their positions right away,
which is a huge amount of work, though. Again, thanks for all your work on
3.2. I still remember how we gave up on it back in the day as we thought 
it was not doable, which gives me all the more respect and happiness as to
how well you improved things there! Big thumbs up from me :-)

Shoes on everybody!
Tobi
On 10/20/2014 11:28 AM, Harsh Trivedi wrote:
> Thanks a lot Cecil , Peter and Douglas for answering to my question,
>
> @Cecil , As you said : this code:
>
> Shoes.app do
>     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
>     button "show" do
>       Shoes.debug @circle.left #=> 0
>       Shoes.debug @circle.top  #=> 0
>       Shoes.debug @circle.height  #=> 0
>       Shoes.debug @circle.width   #=> 0
>   end
> end
>
> works perfectly. And you have also convinced me for the fact why my ve
> rsion of it would not have been running on Red Shoes. Thanks
>
> By the way, as a work around, I too had arrived to a solution which goes
> like:
>
> Shoes.app do
>     @circle = oval( radius: 40 ,fill: green)
>     @circle.left = 20
>     @circle.top = 23
>
>       Shoes.debug @circle.left #=> 20
>       Shoes.debug @circle.top  #=> 23
>       Shoes.debug @circle.height  #=> 80
>       Shoes.debug @circle.width   #=> 80
> end
>
>
> And @peter, thanks for sharing with me that sample. It helped :)
>
> regards,
> Harsh
>
>
>
>
> On Mon, Oct 20, 2014 at 2:11 AM, Cecil Coupe <ccoupe@cableone.net
> <mailto:ccoupe@cableone.net>> wrote:
>
>     Peter,
>
>       Just a small correction. I am maintaining Red Shoes (3.2) and it's
>     running better than 3.1 ever did on Windows 7+, OSX 10.9.4, Ubuntu
>     14.04 and some recent versions of Fedora and Suse. 64 bit for linux
>     and OSX and a Raspberry version.  Ruby 2.1.x.  Downloadable
>     installers for 5 platforms. No need to build from source.
>
>       I just fixed a hanging bug on Windows thats frustrated us for
>     years and years. Shoes 3.2 is self contained if you want it to be.
>     I've restored most of all the packaging functionality and I hope to
>     get 100% by the end of the week.
>       Is it more work than some folks want to do? Yes.
>
>     I'm not interested is arguing which Shoes is better. The all have
>     they fans and various strengths and weaknesses.  I have no deep love
>     or fear for jruby or mri ruby.
>
>     The question is what the snippets do on Shoes 4? Changing that
>     behaviour on Shoes 3.2 might be impossible and it's very late to the
>     game changes to Shoes 4 (in either direction).
>
>     Green Shoes will improve when someone decides to do it.
>
>     --Cecil
>
>
>     On 10/19/2014 01:22 PM, Peter Fitzgibbons wrote:
> >     Hi peter.  The issue is that shoes three is largely
> >     unmaintainable.  The code base cannot be compiled on any modern
> >     OS.  Note that shoes 3 is not self contained.  It is comprised if
> >     several component libraries.  
> >
> >     We look forward to hearing more about your environment so we can
> >     incorporate resolution of your issue into the shoes 4 base
> >
> >
> >     Kindest regards,
> >
> >
> >
> >     On Sunday, October 19, 2014, peter marien <daddie88@gmail.com
> >     <mailto:daddie88@gmail.com>> wrote:
> >
> >         Thnx for answering Peter but I don't plan to use Shoes 4.
> >         I use Ruby MRI as much as I can and I'm quite happy with green
> >         shoes.
> >         If only some dev would update it from time to time so that it
> >         doesn't go lost with its userbase.
> >
> >         @Harsh, I wrote a littl e sample that uses the coördinates of
> >         a circle to do drag and drop, I hope it helps is some way
> >
> >         require 'green_shoes'
> >
> >         @app = Shoes.app do
> >           para "Push the mousebutton to drag, release where you want
> >         to move it."
> >           @x,@y=0,25
> >           @drag = false
> >           @circle = oval(:left => @x , :top => @y , :radius => 40,
> >         fill: green)
> >
> >           @circle.click do |button, x,y|
> >             @drag = true
> >           end
> >
> >           @circle.release do |button, x,y|
> >             @drag = false
> >           end
> >
> >           animate(12) do
> >             if @drag
> >               @x, @y = self.mouse[1,2]
> >               @x -= @circle.radius
> >         � �     @y -= @circle.radius
> >               @circle.move(@x,@y)
> >             end
> >           end
> >         end
> >
> >         2014-10-19 16:04 GMT+02:00 Peter Fitzgibbons
> >         <peter.fitzgibbons@gmail.com>:
> >
> >             HI Peter,
> >
> >             I hear your frustration, and if you can help us with some
> >             additional information we might be able to find out why
> >             your code does not work on your computer on Shoes 4.
> >             The inspiration for Shoes 4, way back after _why's
> >             departure, was indeed Green Shoes an d Brown Sho es,
> >             Purple Shoes, and Shoes 3 (Red Shoes).  The intent all
> >             along has been twofold.  First to upgrade Red Shoes, which
> >             had become impossible to recompile in the world of 64-bit
> >             os's, major-version upgrades of linux-kernel, and all
> >             those base libs. Second to bring together the expertise of
> >             all the Shoes Colors and focus our effort on one central
> >             framework that could eventually be used to run all the
> >             shoes "colors".  
> >             The Shoes Team's pre-release of 4.0 is the culmination of
> >             years of work literally around the world.  Yet it is
> >             indeed called "pre-release".  Edgecases and a very long
> >             list of work to-do are still on the table.
> >
> >             If you please, could you tell us the Ruby version, OS,
> >             Kernel version and Java version that you're using?
> >
> >             Thanks and Kindest Regards,
> >
> >             GO SHOES!
> >
> >             Peter Fitzgibbons
> >             (847) 859-9550 <tel:%28847%29%20859-9550>
> >             G+ : peter.fitzgibbons@gmail.com
> >
> >             On Sun, Oct 19, 2014 at 6:26 AM, peter marien
> >             <daddie88@gmail.com> wrote:
> >
> >                 In green shoes both snippets work correctly (and
> >                 logical) and show the real values.
> >                 This kind of behaviour confirms me in my opinion that
> >                 it is still the best implementation of shoes.
> >                 Also the implementation the most used I dare to presume.
> >                 Are there still no devs who take it further ?
> >
> >                 2014-10-19 1:34 GMT+02:00 Cecil Coupe
> >                 <ccoupe@cableone.net>:
> >
> >                     Ahh,
> >                        It's one of the curiosities of Shoes.  Try the
> >                     following code
> >
> >                     Shoes.app do
> >                         @circle = oval(:left => 20, :top => 23 ,
> >                     :radius => 40, fill: green)
> >                         button "show" do
> >                           Shoes.debug @circle.left #=> 0
> >                           Shoes.debug @circle.top  #=> 0
> >                           Shoes.debug @circle.height  #=> 0
> >                           Shoes.debug @circle.width   #=> 0
> >                       end
> >                     end
> >
> >                     The call on @circle.left is run before the oval is
> >                     actually drawn on screen.
> >
> >                     --Cecil
> >
> >                     On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
> >>
> >>                     I am making an application in Ruby Shoes 3.2
> >>                     (Red). I am making a simple circle shape, for
> >>                     which I later need to access the
> >>                     co-ordinates(left and top). But instead of
> >>                     getting correct co-ordinates , I get ZERO as
> >>                     answer each time.
> >>
> >>                     I am not able to understand why this is happening.
> >>
> >>                     |Shoes.app do
> >>                         @circle = oval(:left => 20, :top => 23 , 
:radius => 40, fill: green)
> >>                      
> >>                         Shoes.debug @circle.left #=> 0
> >>                         Shoes.debug @circle.top  #=> 0
> >>                         Shoes.debug @circle.height  #=> 0
> >>                         Shoes.debug @circle.width   #=> 0
> >>                     end|
> >>
> >>                     This thing works in green_shoes, but I dont know
> >>                     why not in Red shoes. I think I am missing out
> >>                     something because this things is much fundamental
> >>                     for any shoes app to work.
> >>
> >>                     I am using Linux Ubuntu 13.10 (If this
> >>                     information is at all required..)
> >>
> >>                     Please help, thanks in advance :)
> >>
> >
> >
> >
> >
> >
> >
> >     --
> >     Peter Fitzgibbons
> >     (847) 859-9550
> >     G+ : peter.fitzgibbons@gmail.com <mailto:peter.fitzgibbons@gmail.com>
> >
>
>

-- 
www.pragtob.info

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
peter marien
Date:
2014-10-20 @ 20:58
@Tobias: i use jRuby when i need to distribute to colleague  that don't use
Ruby but do have experience with running JAR's. It's cumbersome and brings
me in too much contact with java and its pecularities, which i use as
little as possible too. I need to pay special attention to several things
when I code for jRuby (other gems, paths, etc). When i JAR my project with
warble I need to wait for a minute or two before everything is compiled. I
need to test everything from the JAR also because often it gives other
errors than just running it straight with jRuby. Running the script takes
also a lot longer than with MRI because load times of the VM and anti virus
checking on JAR (company policies you know). The speed gain you could have
goes lost that way and since I use Ruby for small tasks MRI is a lot faster.

I appreciate what cecil does with Red Shoes, wish someone could do that
with Green Shoes, it is so flexible, just one gem to install and you are up
and running, in both Ruby 1.9.x and 2.x, no problem combining it with other
MRI specific gems. I can even compile to a windows executable (yeah almost
all windows boxes here in Belgium) with the ocra gem if I don't need too
much other gems.
If some functionality is missing I'm sometimes able to use the GTK objects
and methods that were used.

Ash is my hero but I'm afraid I can't be of assistence, I'm only a mediocre
programmer and have no experience with such projects, sorry.

From me also a thumb up for all devs busy on any color of Shoes.

Peter

2014-10-20 12:49 GMT+02:00 Tobias Pfeiffer <
tobias.pfeiffer@student.hpi.uni-potsdam.de>:

> Hi everyone,
>
> sorry for my absence I've been in Portugal with a cancelled flight and all
> =)
>
> I tried out the original and the work around sample on the current Shoes
> 4. Both work just fine :-) So you can give it a spin if you like @Harsh.
>
> @peter marien:  any specific reason you like to stick with CRuby and not
> JRuby? Would love to know. Personally I feel like Shoes 3.2 is the most
> complete implementation atm, then 3.1 as the good old reference with Shoes
> 4 gaining ground :-) My personal experience with green_shoes porting
> scripts back in the day hasn't been too good, but that might just be me. If
> you want to move green_shoes forward, please go ahead and do so - it's open
> source :-) If you do get some improvements out there I'm sure ash would be
> happy to give you access rights.
>
> @cecil: The snippets do work on Shoes 4 so it might be a good change. Not
> all of these situations/queries will always work right now on shoes4
> (positioning for elements that have no left/top set is only done at the
> end) but it is on our todo list to assign them their positions right away,
> which is a huge amount of work, though. Again, thanks for all your work on
> 3.2. I still remember how we gave up on it back in the day as we thought it
> was not doable, which gives me all the more respect and happiness as to how
> well you improved things there! Big thumbs up from me :-)
>
> Shoes on everybody!
> Tobi
> On 10/20/2014 11:28 AM, Harsh Trivedi wrote:
> > Thanks a lot Cecil , Peter and Douglas for answering to my question,
> >
> > @Cecil , As you said : this code:
> >
> > Shoes.app do
> >     @circle = oval(:left => 20, :top => 23 , :radius => 40, fill: green)
> >     button "show" do
> >       Shoes.debug @circle.left #=> 0
> >       Shoes.debug @circle.top  #=> 0
> >       Shoes.debug @circle.height  #=> 0
> >       Shoes.debug @circle.width   #=> 0
> >   end
> > end
> >
> > works perfectly. And you have also convinced me for the fact why my ve
> > rsion of it would not have been running on Red Shoes. Thanks
> >
> > By the way, as a work around, I too had arrived to a solution which goes
> > like:
> >
> > Shoes.app do
> >     @circle = oval( radius: 40 ,fill: green)
> >     @circle.left = 20
> >     @circle.top = 23
> >
> >       Shoes.debug @circle.left #=> 20
> >       Shoes.debug @circle.top  #=> 23
> >       Shoes.debug @circle.height  #=> 80
> >       Shoes.debug @circle.width   #=> 80
> > end
> >
> >
> > And @peter, thanks for sharing with me that sample. It helped :)
> >
> > regards,
> > Harsh
> >
> >
> >
> >
> > On Mon, Oct 20, 2014 at 2:11 AM, Cecil Coupe <ccoupe@cableone.net
> > <mailto:ccoupe@cableone.net>> wrote:
> >
> >     Peter,
> >
> >       Just a small correction. I am maintaining Red Shoes (3.2) and it's
> >     running better than 3.1 ever did on Windows 7+, OSX 10.9.4, Ubuntu
> >     14.04 and some recent versions of Fedora and Suse. 64 bit for linux
> >     and OSX and a Raspberry version.  Ruby 2.1.x.  Downloadable
> >     installers for 5 platforms. No need to build from source.
> >
> >       I just fixed a hanging bug on Windows thats frustrated us for
> >     years and years. Shoes 3.2 is self contained if you want it to be.
> >     I've restored most of all the packaging functionality and I hope to
> >     get 100% by the end of the week.
> >       Is it more work than some folks want to do? Yes.
> >
> >     I'm not interested is arguing which Shoes is better. The all have
> >     they fans and various strengths and weaknesses.  I have no deep love
> >     or fear for jruby or mri ruby.
> >
> >     The question is what the snippets do on Shoes 4? Changing that
> >     behaviour on Shoes 3.2 might be impossible and it's very late to the
> >     game changes to Shoes 4 (in either direction).
> >
> >     Green Shoes will improve when someone decides to do it.
> >
> >     --Cecil
> >
> >
> >     On 10/19/2014 01:22 PM, Peter Fitzgibbons wrote:
> > >     Hi peter.  The issue is that shoes three is largely
> > >     unmaintainable.  The code base cannot be compiled on any modern
> > >     OS.  Note that shoes 3 is not self contained.  It is comprised if
> > >     several component libraries.
> > >
> > >     We look forward to hearing more about your environment so we can
> > >     incorporate resolution of your issue into the shoes 4 base
> > >
> > >
> > >     Kindest regards,
> > >
> > >
> > >
> > >     On Sunday, October 19, 2014, peter marien <daddie88@gmail.com
> > >     <mailto:daddie88@gmail.com>> wrote:
> > >
> > >         Thnx for answering Peter but I don't plan to use Shoes 4.
> > >         I use Ruby MRI as much as I can and I'm quite happy with green
> > >         shoes.
> > >         If only some dev would update it from time to time so that it
> > >         doesn't go lost with its userbase.
> > >
> > >         @Harsh, I wrote a littl e sample that uses the coördinates of
> > >         a circle to do drag and drop, I hope it helps is some way
> > >
> > >         require 'green_shoes'
> > >
> > >         @app = Shoes.app do
> > >           para "Push the mousebutton to drag, release where you want
> > >         to move it."
> > >           @x,@y=0,25
> > >           @drag = false
> > >           @circle = oval(:left => @x , :top => @y , :radius => 40,
> > >         fill: green)
> > >
> > >           @circle.click do |button, x,y|
> > >             @drag = true
> > >           end
> > >
> > >           @circle.release do |button, x,y|
> > >             @drag = false
> > >           end
> > >
> > >           animate(12) do
> > >             if @drag
> > >               @x, @y = self.mouse[1,2]
> > >               @x -= @circle.radius
> > >         � �     @y -= @circle.radius
> > >               @circle.move(@x,@y)
> > >             end
> > >           end
> > >         end
> > >
> > >         2014-10-19 16:04 GMT+02:00 Peter Fitzgibbons
> > >         <peter.fitzgibbons@gmail.com>:
> > >
> > >             HI Peter,
> > >
> > >             I hear your frustration, and if you can help us with some
> > >             additional information we might be able to find out why
> > >             your code does not work on your computer on Shoes 4.
> > >             The inspiration for Shoes 4, way back after _why's
> > >             departure, was indeed Green Shoes an d Brown Sho es,
> > >             Purple Shoes, and Shoes 3 (Red Shoes).  The intent all
> > >             along has been twofold.  First to upgrade Red Shoes, which
> > >             had become impossible to recompile in the world of 64-bit
> > >             os's, major-version upgrades of linux-kernel, and all
> > >             those base libs. Second to bring together the expertise of
> > >             all the Shoes Colors and focus our effort on one central
> > >             framework that could eventually be used to run all the
> > >             shoes "colors".
> > >             The Shoes Team's pre-release of 4.0 is the culmination of
> > >             years of work literally around the world.  Yet it is
> > >             indeed called "pre-release".  Edgecases and a very long
> > >             list of work to-do are still on the table.
> > >
> > >             If you please, could you tell us the Ruby version, OS,
> > >             Kernel version and Java version that you're using?
> > >
> > >             Thanks and Kindest Regards,
> > >
> > >             GO SHOES!
> > >
> > >             Peter Fitzgibbons
> > >             (847) 859-9550 <tel:%28847%29%20859-9550>
> > >             G+ : peter.fitzgibbons@gmail.com
> > >
> > >             On Sun, Oct 19, 2014 at 6:26 AM, peter marien
> > >             <daddie88@gmail.com> wrote:
> > >
> > >                 In green shoes both snippets work correctly (and
> > >                 logical) and show the real values.
> > >                 This kind of behaviour confirms me in my opinion that
> > >                 it is still the best implementation of shoes.
> > >                 Also the implementation the most used I dare to
> presume.
> > >                 Are there still no devs who take it further ?
> > >
> > >                 2014-10-19 1:34 GMT+02:00 Cecil Coupe
> > >                 <ccoupe@cableone.net>:
> > >
> > >                     Ahh,
> > >                        It's one of the curiosities of Shoes.  Try the
> > >                     following code
> > >
> > >                     Shoes.app do
> > >                         @circle = oval(:left => 20, :top => 23 ,
> > >                     :radius => 40, fill: green)
> > >                         button "show" do
> > >                           Shoes.debug @circle.left #=> 0
> > >                           Shoes.debug @circle.top  #=> 0
> > >                           Shoes.debug @circle.height  #=> 0
> > >                           Shoes.debug @circle.width   #=> 0
> > >                       end
> > >                     end
> > >
> > >                     The call on @circle.left is run before the oval is
> > >                     actually drawn on screen.
> > >
> > >                     --Cecil
> > >
> > >                     On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
> > >>
> > >>                     I am making an application in Ruby Shoes 3.2
> > >>                     (Red). I am making a simple circle shape, for
> > >>                     which I later need to access the
> > >>                     co-ordinates(left and top). But instead of
> > >>                     getting correct co-ordinates , I get ZERO as
> > >>                     answer each time.
> > >>
> > >>                     I am not able to understand why this is happening.
> > >>
> > >>                     |Shoes.app do
> > >>                         @circle = oval(:left => 20, :top => 23 ,
> :radius => 40, fill: green)
> > >>
> > >>                         Shoes.debug @circle.left #=> 0
> > >>                         Shoes.debug @circle.top  #=> 0
> > >>                         Shoes.debug @circle.height  #=> 0
> > >>                         Shoes.debug @circle.width   #=> 0
> > >>                     end|
> > >>
> > >>                     This thing works in green_shoes, but I dont know
> > >>                     why not in Red shoes. I think I am missing out
> > >>                     something because this things is much fundamental
> > >>                     for any shoes app to work.
> > >>
> > >>                     I am using Linux Ubuntu 13.10 (If this
> > >>                     information is at all required..)
> > >>
> > >>                     Please help, thanks in advance :)
> > >>
> > >
> > >
> > >
> > >
> > >
> > >
> > >     --
> > >     Peter Fitzgibbons
> > >     (847) 859-9550
> > >     G+ : peter.fitzgibbons@gmail.com <mailto:
> peter.fitzgibbons@gmail.com>
> > >
> >
> >
>
> --
> www.pragtob.info
>
>

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Cecil Coupe
Date:
2014-10-21 @ 08:43
Slightly off topic  but what's new about that?

Shoes 3.2 packaging is now 100% Ruby which means it should work in Shoes 
4 if needed. Silly? Why bother packaging for 3.2?  Perhaps a Shoes 
scripter wants  to include odd platforms like the raspberry pi or the 
largest possible audience.  The only problem is  the "require 'shoes'" 
at the front of a Shoes 4 script. That won't work on Shoes 3.2 although 
one could only issue that call if RUBY_PLATFORM=='java'

Conversely, there isn't much hindering (conceptually) allowing a Shoes 
3.2 scripter from packaging an app for Shoes 4  (just  a new jruby 
target for 3.2 packaging ),  IFF  they use the same check for 
RUBY_PLATFORM around the require 'shoes' in their script. Conceptually, 
in theory.  I should try it but I'm a little busy and I don't really 
understand the details of Shoes 4 packaging.

That's one reason I care about Harsh's bug. It's an incompatibility 
between 3 and 4.

@peter marien:  Don't ever ask your OSX users to install Ruby/Gtk/X11. 
Belgium is not large enough to hide you from their anger.  ;^). Last 
time I looked Ruby/GTK hasn't been touched in years and doesn't support 
gtk3. Nor does Green Shoes. Nor does swt/jruby.  Shoes 3.2 can be 
compiled to do that - it will be called Shoes 3.3 when a few bugs are 
fixed.  It works OK for many things but I've got things I want to fix in 
3.2 before that: I want to allow packaging  a default or user specified 
Shoes script that is a tertiary installer that unpacks the shy and runs 
it and it could unpack and install gems included with the download. The 
scheme assumes you have the binary gems for the end users platform to 
include (or the default gem location has the binary gem - may do.

For now, those are just good intentions. Either I make them work or I 
pretend I never said anything about those dreams.

3.2 is only a maintenance release until I do something interesting. 
Packaging a shy that downloads and installs Shoes if it's not installed 
is working for Linux and Windows. Osx soon. Then I can stretch my wings.

--Cecil

On 10/20/2014 02:58 PM, peter marien wrote:
> @Tobias: i use jRuby when i need to distribute to colleague  that 
> don't use Ruby but do have experience with running JAR's. It's 
> cumbersome and brings me in too much contact with java and its 
> pecularities, which i use as little as possible too. I need to pay 
> special attention to several things when I code for jRuby (other gems, 
> paths, etc). When i JAR my project with warble I need to wait for a 
> minute or two before everything is compiled. I need to test everything 
> from the JAR also because often it gives other errors than just 
> running it straight with jRuby. Running the script takes also a lot 
> longer than with MRI because load times of the VM and anti virus 
> checking on JAR (company policies you know). The speed gain you could 
> have goes lost that way and since I use Ruby for small tasks MRI is a 
> lot faster.
>
> I appreciate what cecil does w ith Red Shoes, wish someone could do 
> that with Green Shoes, it is so flexible, just one gem to install and 
> you are up and running, in both Ruby 1.9.x and 2.x, no problem 
> combining it with other MRI specific gems. I can even compile to a 
> windows executable (yeah almost all windows boxes here in Belgium) 
> with the ocra gem if I don't need too much other gems.
> If some functionality is missing I'm sometimes able to use the GTK 
> objects and methods that were used.
>
> Ash is my hero but I'm afraid I can't be of assistence, I'm only a 
> mediocre programmer and have no experience with such projects, sorry.
>
> From me also a thumb up for all devs busy on any color of Shoes.
>
> Peter
>
> 2014-10-20 12:49 GMT+02:00 Tobias Pfeiffer <tobias.pfeiffer@ 
> student.hpi.uni-potsdam.de 
> <mailto:tobias.pfeiffer@student.hpi.uni-potsdam.de>>:
>
>     Hi everyone,
>
>     sorry for my absence I've been in Portugal with a cancelled flight
>     and all =)
>
>     I tried out the original and the work around sample on the current
>     Shoes 4. Both work just fine :-) So you can give it a spin if you
>     like @Harsh.
>
>     @peter marien:  any specific reason you like to stick with CRuby
>     and not JRuby? Would love to know. Personally I feel like Shoes
>     3.2 is the most complete implementation atm, then 3.1 as the good
>     old reference with Shoes 4 gaining ground :-) My personal
>     experience with green_shoes porting scripts back in the day hasn't
>     been too good, but that might just be me. If you want to move
>     green_shoes forward, please go ahead and do so - it's open source
>     :-) If you do get some improvements out there I'm sure ash would
>     be happy to give you access rights.
>
>     @cecil: The snippets do work on Shoes 4 so it might be a good
>     change. Not all of these situations/queries will always work right
>     now on shoes4 (positioning for elements that have no left/top set
>     is only done at the end) but it is on our todo list to assign them
>     their positions right away, which is a huge amount of work,
>     though. Again, thanks for all your work on 3.2. I still remember
>     how we gave up on it back in the day as we thought it was not
>     doable, which gives me all the more respect and happiness as to
>     how well you improved things there! Big thumbs up from me :-)
>
>     Shoes on everybody!
>     Tobi
>     On 10/20/2014 11:28 AM, Harsh Trivedi wrote:
>     > Thanks a lot Cecil , Peter and Douglas for answering to my question,
>     >
>     > @Cecil , As you said : this code:
>     >
>     > Shoes.app do
>     >     @circle = oval(:left => 20, :top => 23 , :radius => 40,
>     fill: green)
>     >     button "show" do
>     >       Shoes.debug @circle.left #=> 0
>     >       Shoes.debug @circle.top  #=> 0
>     >       Shoes.debug @circle.height  #=> 0
>     >       Shoes.debug @circle.width   #=> 0
>     >   end
>     > end
>     >
>     > works perfectly. And you have also convinced me for the fact why
>     my ve
>     > rsion of it would not have been running on Red Shoes. Thanks
>     >
>     > By the way, as a work around, I too had arrived to a solution
>     which goes
>     > like:
>     >
>     > Shoes.app do
>     >     @circle = oval( radius: 40 ,fill: green)
>     >     @circle.left = 20
>     >     @circle.top = 23
>     >
>     >       Shoes.debug @circle.left #=> 20
>     >       Shoes.debug @circle.top  #=> 23
>     >       Shoes.debug @circle.height  #=> 80
>     >       Shoes.debug @circle.width   #=> 80
>     > end
>     >
>     >
>     > And @peter, thanks for sharing with me that sample. It helped :)
>     >
>     > regards,
>     > Harsh
>     >
>     >
>     >
>     >
>     > On Mon, Oct 20, 2014 at 2:11 AM, Cecil Coupe <ccoupe@cableone.net 
<mailto:ccoupe@cableone.net>
>     > <mailto:ccoupe@cableone.net <mailto:ccoupe@cableone.net>>> wrote:
>     >
>     >     Peter,
>     >
>     >       Just a small correction. I am maintaining Red Shoes (3.2)
>     and it's
>     >     running better than 3.1 ever did on Windows 7+, OSX 10.9.4,
>     Ubuntu
>     >     14.04 and some recent versions of Fedora and Suse. 64 bit
>     for linux
>     >     and OSX and a Raspberry version.  Ruby 2.1.x. Downloadable
>     >     installers for 5 platforms. No need to build from source.
>     >
>     >       I just fixed a hanging bug on Windows thats frustrated us for
>     >     years and years. Shoes 3.2 is self contained if you want it
>     to be.
>     >     I've restored most of all the packaging functionality and I
>     hope to
>     >     get 100% by the end of the week.
>     >       Is it more work than some folks want to do? Yes.
>     >
>     >     I'm not interested is arguing which Shoes is better. The all
>     have
>     >     they fans and various strengths and weaknesses.  I have no
>     deep love
>     >     or fear for jruby or mri ruby.
>     >
>     >     The question is what the snippets do on Shoes 4? Changing that
>     >     behaviour on Shoes 3.2 might be impossible and it's very
>     late to the
>     >     game changes to Shoes 4 (in either direction).
>     >
>     >     Green Shoes will improve when someone decides to do it.
>     >
>     >     --Cecil
>     >
>     >
>     >     On 10/19/2014 01:22 PM, Peter Fitzgibbons wrote:
>     > >     Hi peter.  The issue is that shoes three is largely
>     > >     unmaintainable.  The code base cannot be compiled on any
>     modern
>     > >     OS.  Note that shoes 3 is not self contained.  It is
>     comprised if
>     > >     several component libraries.
>     > >
>     > >     We look forward to hearing more about your environment so
>     we can
>     > >     incorporate resolution of your issue into the shoes 4 base
>     > >
>     > >
>     > >     Kindest regards,
>     > >
>     > >
>     > >
>     > >     On Sunday, October 19, 2014, peter marien
>     <daddie88@gmail.com <mailto:daddie88@gmail.com>
>     > >     <mailto:daddie88@gmail.com <mailto:daddie88@gmail.com>>>
>     wrote:
>     > >
>     > >         Thnx for answering Peter but I don't plan to use Shoes 4.
>     > >         I use Ruby MRI as much as I can and I'm quite happy
>     with green
>     > >         shoes.
>     > >         If only some dev would update it from time to time so
>     that it
>     > >         doesn't go lost with its userbase.
>     > >
>     > >         @Harsh, I wrote a littl e sample that uses the
>     coördinates of
>     > >         a circle to do drag and drop, I hope it helps is some way
>     > >
>     > >         require 'green_shoes'
>     > >
>     > >         @app = Shoes.app do
>     > >           para "Push the mousebutton to drag, release where
>     you want
>     > >         to move it."
>     > >           @x,@y=0,25
>     > >           @drag = false
>     > >           @circle = oval(:left => @x , :top => @y , :radius => 40,
>     > >         fill: green)
>     > >
>     > >           @circle.click do |button, x,y|
>     > >             @drag = true
>     > >           end
>     > >
>     > >           @circle.release do |button, x,y|
>     > >             @drag = false
>     > >           end
>     > >
>     > >           animate(12) do
>     > >             if @drag
>     > >               @x, @y = self.mouse[1,2]
>     > >               @x -= @circle.radius
>     > >         � �     @y -= @circle.radius
>     > >               @circle.move(@x,@y)
>     > >             end
>     > >           end
>     > >         end
>     > >
>     > >         2014-10-19 16:04 GMT+02:00 Peter Fitzgibbons
>     > >         <peter.fitzgibbons@gmail.com
>     <mailto:peter.fitzgibbons@gmail.com>>:
>     > >
>     > >             HI Peter,
>     > >
>     > >             I hear your frustration, and if you can help us
>     with some
>     > >             additional information we might be able to find
>     out why
>     > >             your code does not work on your computer on Shoes 4.
>     > >             The inspiration for Shoes 4, way back after _why's
>     > >             departure, was indeed Green Shoes an d Brown Sho es,
>     > >             Purple Shoes, and Shoes 3 (Red Shoes).  The intent all
>     > >             along has been twofold.  First to upgrade Red
>     Shoes, which
>     > >             had become impossible to recompile in the world of
>     64-bit
>     > >             os's, major-version upgrades of linux-kernel, and all
>     > >             those base libs. Second to bring together the
>     expertise of
>     > >             all the Shoes Colors and focus our effort on one
>     central
>     > >             framework that could eventually be used to run all the
>     > >             shoes "colors".
>     > >             The Shoes Team's pre-release of 4.0 is the
>     culmination of
>     > >             years of work literally around the world.  Yet it is
>     > >             indeed called "pre-release". Edgecases and a very long
>     > >             list of work to-do are still on the table.
>     > >
>     > >             If you please, could you tell us the Ruby version, OS,
>     > >             Kernel version and Java version that you're using?
>     > >
>     > >             Thanks and Kindest Regards,
>     > >
>     > >             GO SHOES!
>     > >
>     > >             Peter Fitzgibbons
>     > > (847) 859-9550 <tel:%28847%29%20859-9550>
>     <tel:%28847%29%20859-9550>
>     > >             G+ : peter.fitzgibbons@gmail.com
>     <mailto:peter.fitzgibbons@gmail.com>
>     > >
>     > >             On Sun, Oct 19, 2014 at 6:26 AM, peter marien
>     > >             <daddie88@gmail.com <mailto:daddie88@gmail.com>>
>     wrote:
>     > >
>     > >                 In green shoes both snippets work correctly (and
>     > >                 logical) and show the real values.
>     > >                 This kind of behaviour confirms me in my
>     opinion that
>     > >                 it is still the best implementation of shoes.
>     > >                 Also the implementation the most used I dare
>     to presume.
>     > >                 Are there still no devs who take it further ?
>     > >
>     > >                 2014-10-19 1:34 GMT+02:00 Cecil Coupe
>     > >                 <ccoupe@cableone.net
>     <mailto:ccoupe@cableone.net>>:
>     > >
>     > >                     Ahh,
>     > >                        It's one of the curiosities of Shoes. 
>     Try the
>     > >                     following code
>     > >
>     > >                     Shoes.app do
>     > >                         @circle = oval(:left => 20, :top => 23 ,
>     > >                     :radius => 40, fill: green)
>     > >                         button "show" do
>     > >                           Shoes.debug @circle.left #=> 0
>     > >                           Shoes.debug @circle.top  #=> 0
>     > >                           Shoes.debug @circle.height  #=> 0
>     > >                           Shoes.debug @circle.width   #=> 0
>     > >                       end
>     > >                     end
>     > >
>     > >                     The call on @circle.left is run before the
>     oval is
>     > >                     actually drawn on screen.
>     > >
>     > >                     --Cecil
>     > >
>     > >                     On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
>     > >>
>     > >>                     I am making an application in Ruby Shoes 3.2
>     > >>                     (Red). I am making a simple circle shape, for
>     > >>                     which I later need to access the
>     > >>                     co-ordinates(left and top). But instead of
>     > >>                     getting correct co-ordinates , I get ZERO as
>     > >>                     answer each time.
>     > >>
>     > >>                     I am not able to understand why this is
>     happening.
>     > >>
>     > >>                     |Shoes.app do
>     > >>                         @circle = oval(:left => 20, :top =>
>     23 , :radius => 40, fill: green)
>     > >>
>     > >>                         Shoes.debug @circle.left #=> 0
>     > >>                         Shoes.debug @circle.top  #=> 0
>     > >>                         Shoes.debug @circle.height  #=> 0
>     > >>                         Shoes.debug @circle.width   #=> 0
>     > >>                     end|
>     > >>
>     > >>                     This thing works in green_shoes, but I
>     dont know
>     > >>                     why not in Red shoes. I think I am
>     missing out
>     > >>                     something because this things is much
>     fundamental
>     > >>                     for any shoes app to work.
>     > >>
>     > >>                     I am using Linux Ubuntu 13.10 (If this
>     > >>                     information is at all required..)
>     > >>
>     > >>                     Please help, thanks in advance :)
>     > >>
>     > >
>     > >
>     > >
>     > >
>     > >
>     > >
>     > >     --
>     > >     Peter Fitzgibbons
>     > >     (847) 859-9550
>     > >     G+ : peter.fitzgibbons@gmail.com
>     <mailto:peter.fitzgibbons@gmail.com>
>     <mailto:peter.fitzgibbons@gmail.com
>     <mailto:peter.fitzgibbons@gmail.com>>
>     > >
>     >
>     >
>
>     --
>     www.pragtob.info <http://www.pragtob.info>
>
>

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Tobias Pfeiffer
Date:
2014-10-21 @ 14:35
Hi Cecil,

cool that packaging works now and is all ruby :-) Might want to take a
look at that.

Correction, "require 'shoes'" is not needed at the start of a shoes 4
script. It is optional and also makes it work if you just do "ruby
your_script.rb" - our shoes executable doesn't need that. If one were to
do I'd rather check against Shoes::VERSION or something like that.
However, the easiest way to my mind to resolve this would be to just
make require 'shoes' not fail in 3.2. It should be as easy as adding an
empty shoes.rb file somewhere in the LOAD_PATH :-)

Shoes 4 packaging packages a .jar so that makes it somewhat different :-)

Also, JRuby/SWT does support GTK3. It's the default GTK platform used on
Linux starting SWT 4.4 (which shoes 4 pre2 runs on). It uses cocoa on
mac, though as well as the windows api on Windows :-)

And it's good to have some dreams, although they sometimes take longer ;-)

Cheers,
Tobi

On 10/21/2014 10:43 AM, Cecil Coupe wrote:
> Slightly off topic  but what's new about that?
> 
> Shoes 3.2 packaging is now 100% Ruby which means it should work in Shoes
> 4 if needed. Silly? Why bother packaging for 3.2?  Perhaps a Shoes
> scripter wants  to include odd platforms like the raspberry pi or the
> largest possible audience.  The only problem is  the "require 'shoes'"
> at the front of a Shoes 4 script. That won't work on Shoes 3.2 although
> one could only issue that call if RUBY_PLATFORM=='java'
> 
> Conversely, there isn't much hindering (conceptually) allowing a Shoes
> 3.2 scripter from packaging an app for Shoes 4  (just  a new jruby
> target for 3.2 packaging ),  IFF  they use the same check for
> RUBY_PLATFORM around the require 'shoes' in their script.  Conceptually,
> in theory.  I should try it but I'm a little busy and I don't really
> understand the details of Shoes 4 packaging.
> 
> That's one reason I care about Harsh's bug. It's an incompatibility
> between 3 and 4.
> 
> @peter marien:  Don't ever ask your OSX users to install Ruby/Gtk/X11.
> Belgium is not large enough to hide you from their anger.  ;^). Last
> time I looked Ruby/GTK hasn't been touched in years and doesn't support
> gtk3. Nor does Green Shoes. Nor does swt/jruby.  Shoes 3.2 can be
> compiled to do that - it will be called Shoes 3.3 when a few bugs are
> fixed.  It works OK for many things but I've got things I want to fix in
> 3.2 before that: I want to allow packaging  a default or user specified
> Shoes script that is a tertiary installer that unpacks the shy and runs
> it and it could unpack and install gems included with the download. The
> scheme assumes you have the binary gems for the end users platform to
> include (or the default gem location has the binary gem - may do.
> 
> For now, those are just good intentions. Either I make them work or I
> pretend I never said anything about those dreams.
> 
> 3.2 is only a maintenance release until I do something interesting.
> Packaging a shy that downloads and installs Shoes if it's not installed
> is working for Linux and Windows. Osx soon. Then I can stretch my wings.
> 
> --Cecil
> 
> On 10/20/2014 02:58 PM, peter marien wrote:
>> @Tobias: i use jRuby when i need to distribute to colleague  that
>> don't use Ruby but do have experience with running JAR's. It's
>> cumbersome and brings me in too much contact with java and its
>> pecularities, which i use as little as possible too. I need to pay
>> special attention to several things when I code for jRuby (other gems,
>> paths, etc). When i JAR my project with warble I need to wait for a
>> minute or two before everything is compiled. I need to test everything
>> from the JAR also because often it gives other errors than just
>> running it straight with jRuby. Running the script takes also a lot
>> longer than with MRI because load times of the VM and anti virus
>> checking on JAR (company policies you know). The speed gain you could
>> have goes lost that way and since I use Ruby for small tasks MRI is a
>> lot faster.
>>
>> I appreciate what cecil does w ith Red Shoes, wish someone could do
>> that with Green Shoes, it is so flexible, just one gem to install and
>> you are up and running, in both Ruby 1.9.x and 2.x, no problem
>> combining it with other MRI specific gems. I can even compile to a
>> windows executable (yeah almost all windows boxes here in Belgium)
>> with the ocra gem if I don't need too much other gems.
>> If some functionality is missing I'm sometimes able to use the GTK
>> objects and methods that were used. 
>>
>> Ash is my hero but I'm afraid I can't be of assistence, I'm only a
>> mediocre programmer and have no experience with such projects, sorry.
>>
>> From me also a thumb up for all devs busy on any color of Shoes.
>>
>> Peter
>>
>> 2014-10-20 12:49 GMT+02:00 Tobias Pfeiffer <tobias.pfeiffer@
>> student.hpi.uni-potsdam.de
>> <mailto:tobias.pfeiffer@student.hpi.uni-potsdam.de>>:
>>
>>     Hi everyone,
>>
>>     sorry for my absence I've been in Portugal with a cancelled flight
>>     and all =)
>>
>>     I tried out the original and the work around sample on the current
>>     Shoes 4. Both work just fine :-) So you can give it a spin if you
>>     like @Harsh.
>>
>>     @peter marien:  any specific reason you like to stick with CRuby
>>     and not JRuby? Would love to know. Personally I feel like Shoes
>>     3.2 is the most complete implementation atm, then 3.1 as the good
>>     old reference with Shoes 4 gaining ground :-) My personal
>>     experience with green_shoes porting scripts back in the day hasn't
>>     been too good, but that might just be me. If you want to move
>>     green_shoes forward, please go ahead and do so - it's open source
>>     :-) If you do get some improvements out there I'm sure ash would
>>     be happy to give you access rights.
>>
>>     @cecil: The snippets do work on Shoes 4 so it might be a good
>>     change. Not all of these situations/queries will always work right
>>     now on shoes4 (positioning for elements that have no left/top set
>>     is only done at the end) but it is on our todo list to assign them
>>     their positions right away, which is a huge amount of work,
>>     though. Again, thanks for all your work on 3.2. I still remember
>>     how we gave up on it back in the day as we thought it was not
>>     doable, which gives me all the more respect and happiness as to
>>     how well you improved things there! Big thumbs up from me :-)
>>
>>     Shoes on everybody!
>>     Tobi
>>     On 10/20/2014 11:28 AM, Harsh Trivedi wrote:
>>     > Thanks a lot Cecil , Peter and Douglas for answering to my question,
>>     >
>>     > @Cecil , As you said : this code:
>>     >
>>     > Shoes.app do
>>     >     @circle = oval(:left => 20, :top => 23 , :radius => 40,
>>     fill: green)
>>     >     button "show" do
>>     >       Shoes.debug @circle.left #=> 0
>>     >       Shoes.debug @circle.top  #=> 0
>>     >       Shoes.debug @circle.height  #=> 0
>>     >       Shoes.debug @circle.width   #=> 0
>>     >   end
>>     > end
>>     >
>>     > works perfectly. And you have also convinced me for the fact why
>>     my ve
>>     > rsion of it would not have been running on Red Shoes. Thanks
>>     >
>>     > By the way, as a work around, I too had arrived to a solution
>>     which goes
>>     > like:
>>     >
>>     > Shoes.app do
>>     >     @circle = oval( radius: 40 ,fill: green)
>>     >     @circle.left = 20
>>     >     @circle.top = 23
>>     >
>>     >       Shoes.debug @circle.left #=> 20
>>     >       Shoes.debug @circle.top  #=> 23
>>     >       Shoes.debug @circle.height  #=> 80
>>     >       Shoes.debug @circle.width   #=> 80
>>     > end
>>     >
>>     >
>>     > And @peter, thanks for sharing with me that sample. It helped :)
>>     >
>>     > regards,
>>     > Harsh
>>     >
>>     >
>>     >
>>     >
>>     > On Mon, Oct 20, 2014 at 2:11 AM, Cecil Coupe <ccoupe@cableone.net
<mailto:ccoupe@cableone.net>
>>     > <mailto:ccoupe@cableone.net <mailto:ccoupe@cableone.net>>> wrote:
>>     >
>>     >     Peter,
>>     >
>>     >       Just a small correction. I am maintaining Red Shoes (3.2)
>>     and it's
>>     >     running better than 3.1 ever did on Windows 7+, OSX 10.9.4,
>>     Ubuntu
>>     >     14.04 and some recent versions of Fedora and Suse. 64 bit
>>     for linux
>>     >     and OSX and a Raspberry version.  Ruby 2.1.x.  Downloadable
>>     >     installers for 5 platforms. No need to build from source.
>>     >
>>     >       I just fixed a hanging bug on Windows thats frustrated us for
>>     >     years and years. Shoes 3.2 is self contained if you want it
>>     to be.
>>     >     I've restored most of all the packaging functionality and I
>>     hope to
>>     >     get 100% by the end of the week.
>>     >       Is it more work than some folks want to do? Yes.
>>     >
>>     >     I'm not interested is arguing which Shoes is better. The all
>>     have
>>     >     they fans and various strengths and weaknesses.  I have no
>>     deep love
>>     >     or fear for jruby or mri ruby.
>>     >
>>     >     The question is what the snippets do on Shoes 4? Changing that
>>     >     behaviour on Shoes 3.2 might be impossible and it's very
>>     late to the
>>     >     game changes to Shoes 4 (in either direction).
>>     >
>>     >     Green Shoes will improve when someone decides to do it.
>>     >
>>     >     --Cecil
>>     >
>>     >
>>     >     On 10/19/2014 01:22 PM, Peter Fitzgibbons wrote:
>>     > >     Hi peter.  The issue is that shoes three is largely
>>     > >     unmaintainable.  The code base cannot be compiled on any
>>     modern
>>     > >     OS.  Note that shoes 3 is not self contained.  It is
>>     comprised if
>>     > >     several component libraries.
>>     > >
>>     > >     We look forward to hearing more about your environment so
>>     we can
>>     > >     incorporate resolution of your issue into the shoes 4 base
>>     > >
>>     > >
>>     > >     Kindest regards,
>>     > >
>>     > >
>>     > >
>>     > >     On Sunday, October 19, 2014, peter marien
>>     <daddie88@gmail.com <mailto:daddie88@gmail.com>
>>     > >     <mailto:daddie88@gmail.com <mailto:daddie88@gmail.com>>>
>>     wrote:
>>     > >
>>     > >         Thnx for answering Peter but I don't plan to use Shoes 4.
>>     > >         I use Ruby MRI as much as I can and I'm quite happy
>>     with green
>>     > >         shoes.
>>     > >         If only some dev would update it from time to time so
>>     that it
>>     > >         doesn't go lost with its userbase.
>>     > >
>>     > >         @Harsh, I wrote a littl e sample that uses the
>>     coördinates of
>>     > >         a circle to do drag and drop, I hope it helps is some way
>>     > >
>>     > >         require 'green_shoes'
>>     > >
>>     > >         @app = Shoes.app do
>>     > >           para "Push the mousebutton to drag, release where
>>     you want
>>     > >         to move it."
>>     > >           @x,@y=0,25
>>     > >           @drag = false
>>     > >           @circle = oval(:left => @x , :top => @y , :radius => 40,
>>     > >         fill: green)
>>     > >
>>     > >           @circle.click do |button, x,y|
>>     > >             @drag = true
>>     > >           end
>>     > >
>>     > >           @circle.release do |button, x,y|
>>     > >             @drag = false
>>     > >           end
>>     > >
>>     > >           animate(12) do
>>     > >             if @drag
>>     > >               @x, @y = self.mouse[1,2]
>>     > >               @x -= @circle.radius
>>     > >         � �     @y -= @circle.radius
>>     > >               @circle.move(@x,@y)
>>     > >             end
>>     > >           end
>>     > >         end
>>     > >
>>     > >         2014-10-19 16:04 GMT+02:00 Peter Fitzgibbons
>>     > >         <peter.fitzgibbons@gmail.com
>>     <mailto:peter.fitzgibbons@gmail.com>>:
>>     > >
>>     > >             HI Peter,
>>     > >
>>     > >             I hear your frustration, and if you can help us
>>     with some
>>     > >             additional information we might be able to find
>>     out why
>>     > >             your code does not work on your computer on Shoes 4.
>>     > >             The inspiration for Shoes 4, way back after _why's
>>     > >             departure, was indeed Green Shoes an d Brown Sho es,
>>     > >             Purple Shoes, and Shoes 3 (Red Shoes).  The intent all
>>     > >             along has been twofold.  First to upgrade Red
>>     Shoes, which
>>     > >             had become impossible to recompile in the world of
>>     64-bit
>>     > >             os's, major-version upgrades of linux-kernel, and all
>>     > >             those base libs. Second to bring together the
>>     expertise of
>>     > >             all the Shoes Colors and focus our effort on one
>>     central
>>     > >             framework that could eventually be used to run all the
>>     > >             shoes "colors".
>>     > >             The Shoes Team's pre-release of 4.0 is the
>>     culmination of
>>     > >             years of work literally around the world.  Yet it is
>>     > >             indeed called "pre-release".  Edgecases and a very
>>     long
>>     > >             list of work to-do are still on the table.
>>     > >
>>     > >             If you please, could you tell us the Ruby version, OS,
>>     > >             Kernel version and Java version that you're using?
>>     > >
>>     > >             Thanks and Kindest Regards,
>>     > >
>>     > >             GO SHOES!
>>     > >
>>     > >             Peter Fitzgibbons
>>     > >             (847) 859-9550 <tel:%28847%29%20859-9550>
>>     <tel:%28847%29%20859-9550>
>>     > >             G+ : peter.fitzgibbons@gmail.com
>>     <mailto:peter.fitzgibbons@gmail.com>
>>     > >
>>     > >             On Sun, Oct 19, 2014 at 6:26 AM, peter marien
>>     > >             <daddie88@gmail.com <mailto:daddie88@gmail.com>>
>>     wrote:
>>     > >
>>     > >                 In green shoes both snippets work correctly (and
>>     > >                 logical) and show the real values.
>>     > >                 This kind of behaviour confirms me in my
>>     opinion that
>>     > >                 it is still the best implementation of shoes.
>>     > >                 Also the implementation the most used I dare
>>     to presume.
>>     > >                 Are there still no devs who take it further ?
>>     > >
>>     > >                 2014-10-19 1:34 GMT+02:00 Cecil Coupe
>>     > >                 <ccoupe@cableone.net
>>     <mailto:ccoupe@cableone.net>>:
>>     > >
>>     > >                     Ahh,
>>     > >                        It's one of the curiosities of Shoes. 
>>     Try the
>>     > >                     following code
>>     > >
>>     > >                     Shoes.app do
>>     > >                         @circle = oval(:left => 20, :top => 23 ,
>>     > >                     :radius => 40, fill: green)
>>     > >                         button "show" do
>>     > >                           Shoes.debug @circle.left #=> 0
>>     > >                           Shoes.debug @circle.top  #=> 0
>>     > >                           Shoes.debug @circle.height  #=> 0
>>     > >                           Shoes.debug @circle.width   #=> 0
>>     > >                       end
>>     > >                     end
>>     > >
>>     > >                     The call on @circle.left is run before the
>>     oval is
>>     > >                     actually drawn on screen.
>>     > >
>>     > >                     --Cecil
>>     > >
>>     > >                     On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
>>     > >>
>>     > >>                     I am making an application in Ruby Shoes 3.2
>>     > >>                     (Red). I am making a simple circle shape, for
>>     > >>                     which I later need to access the
>>     > >>                     co-ordinates(left and top). But instead of
>>     > >>                     getting correct co-ordinates , I get ZERO as
>>     > >>                     answer each time.
>>     > >>
>>     > >>                     I am not able to understand why this is
>>     happening.
>>     > >>
>>     > >>                     |Shoes.app do
>>     > >>                         @circle = oval(:left => 20, :top =>
>>     23 , :radius => 40, fill: green)
>>     > >>
>>     > >>                         Shoes.debug @circle.left #=> 0
>>     > >>                         Shoes.debug @circle.top  #=> 0
>>     > >>                         Shoes.debug @circle.height  #=> 0
>>     > >>                         Shoes.debug @circle.width   #=> 0
>>     > >>                     end|
>>     > >>
>>     > >>                     This thing works in green_shoes, but I
>>     dont know
>>     > >>                     why not in Red shoes. I think I am
>>     missing out
>>     > >>                     something because this things is much
>>     fundamental
>>     > >>                     for any shoes app to work.
>>     > >>
>>     > >>                     I am using Linux Ubuntu 13.10 (If this
>>     > >>                     information is at all required..)
>>     > >>
>>     > >>                     Please help, thanks in advance :)
>>     > >>
>>     > >
>>     > >
>>     > >
>>     > >
>>     > >
>>     > >
>>     > >     --
>>     > >     Peter Fitzgibbons
>>     > >     (847) 859-9550
>>     > >     G+ : peter.fitzgibbons@gmail.com
>>     <mailto:peter.fitzgibbons@gmail.com>
>>     <mailto:peter.fitzgibbons@gmail.com
>>     <mailto:peter.fitzgibbons@gmail.com>>
>>     > >
>>     >
>>     >
>>
>>     --
>>     www.pragtob.info <http://www.pragtob.info>
>>
>>
> 

-- 
www.pragtob.info

Re: [shoes] Unable to access correct co-ordinates in ruby Shoes application (please help)

From:
Cecil Coupe
Date:
2014-10-18 @ 20:06
Harsh,

    Confirmed. I don't remember working on that part of Shoes 3 but if 
Douglas says it works with
3.1,  I has to be something I did.

--Cecil

On 10/18/2014 10:16 AM, Harsh Trivedi wrote:
>
> I am making an application in Ruby Shoes 3.2 (Red). I am making a 
> simple circle shape, for which I later need to access the 
> co-ordinates(left and top). But instead of getting correct 
> co-ordinates , I get ZERO as answer each time.
>
> I am not able to understand why this is happening.
>
> |Shoes.appdo
>      @circle  =  oval(:left=>  20,  :top=>  23  ,  :radius=>  40,  fill:  green)
>      Shoes.debug@circle.left#=> 0
>      Shoes.debug@circle.top#=> 0
>      Shoes.debug@circle.height#=> 0
>      Shoes.debug@circle.width#=> 0
> end|
>
> This thing works in green_shoes, but I dont know why not in Red shoes. 
> I think I am missing out something because this things is much 
> fundamental for any shoes app to work.
>
> I am using Linux Ubuntu 13.10 (If this information is at all required..)
>
> Please help, thanks in advance :)
>