librelist archives

« back to archive

Re: Re: [shoes] green shoes error on STDOUT when trying to clear a flow.

Re: Re: [shoes] green shoes error on STDOUT when trying to clear a flow.

From:
Christian Kranz
Date:
2011-03-03 @ 21:22



-- Gesendet von meinem Palm Pre
ashbb <ashbbb@gmail.com> schrieb am 03.03.2011 16:56: 

Hi Eelco,

I fetched Catsquotl/tcm-study from github and confirmed your problem.

The following is a monkey patch.

[patch] 
- Replace line 132 of helper_methods.rb to 

  if e.real and !e.is_a?(Pattern) and !e.hided and !e.is_a?(Button)


Just add `and !e.is_a?(Button)` condition only.
I think your helper_methods.rb is this: 
c:/ruby192/lib/ruby/gems/1.9.1/gems/green_shoes-0.171.0/lib/shoes/helper_methods.rb

This is a monkey patch. So, I'll do some tests and if it's okay, I'll 
merge it to my github repo.


If possible, try it out please. ;-)

Cheers,
ashbb

Re: Re: Re: [shoes] green shoes error on STDOUT when trying to clear a flow.

From:
Catsquotl
Date:
2011-03-03 @ 22:28
Hi Ashbb

Yes this seems to work..
Although.. I tried making the buttons links....
The links get repainted and they seem to clear, but after the 
Blaas.csv(the most buttons or links) if you hover over the space where 
blaas links have been the reappear. That is after they should and seem 
to have been replaced?

Isn't that a funny side effect..
I wish i could help out in fixing some of this..But after looking at 
some of the source....It just does not make that much sence to me yet.

Eelco
-----------------------------
fwin1 = flow width: 0.5, height: 0.3 do
     background khaki
     list = Dir.glob("./data/*.csv")
     list.each do|x|
         para link("#{x}"){@fwin2.clear {a = ZangFu.new
             a.set_punten(x)
             a.punten.each {|e|
                 para link e.afk,do #:height =>30, :width =>50  do
                     @fwin4.clear{para strong("Afkorting\t:")," #{e.afk}\n",
                         strong("Ch. naam\t:")," #{e.chname}\n",
                         strong("Naam\t:")," #{e.name}\n",
                         strong("Locatie\t:")," #{e.locatie}\n",
                         strong("Aard\t:")," #{e.aard}\n",
                         strong("Actie\t:")," #{e.actie}\n"}
                 end
             }
         }}
     end
     end
------------------------------------------------------------------
> ------------------------------------------------------------------------
> ashbb <ashbbb@gmail.com> schrieb am 03.03.2011 16:56:
>
> Hi Eelco,
>
> I fetched Catsquotl/tcm-study from github and confirmed your problem.
>
> The following is a monkey patch.
>
> [patch]
> - Replace line 132 of helper_methods.rb to
>
>   if e.real and !e.is_a?(Pattern) and !e.hided and !e.is_a?(Button)
>
> Just add `and !e.is_a?(Button)` condition only.
> I think your helper_methods.rb is this: 
> 
c:/ruby192/lib/ruby/gems/1.9.1/gems/green_shoes-0.171.0/lib/shoes/helper_methods.rb
>
> This is a monkey patch. So, I'll do some tests and if it's okay, I'll 
> merge it to my github repo.
>
> If possible, try it out please. ;-)
>
> Cheers,
> ashbb

Re: Re: [shoes] green shoes error on STDOUT when trying to clear a flow.

From:
Christian Kranz
Date:
2011-03-03 @ 21:22



-- Gesendet von meinem Palm Pre
ashbb <ashbbb@gmail.com> schrieb am 03.03.2011 16:56: 

Hi Eelco,

I fetched Catsquotl/tcm-study from github and confirmed your problem.

The following is a monkey patch.

[patch] 
- Replace line 132 of helper_methods.rb to 

  if e.real and !e.is_a?(Pattern) and !e.hided and !e.is_a?(Button)


Just add `and !e.is_a?(Button)` condition only.
I think your helper_methods.rb is this: 
c:/ruby192/lib/ruby/gems/1.9.1/gems/green_shoes-0.171.0/lib/shoes/helper_methods.rb

This is a monkey patch. So, I'll do some tests and if it's okay, I'll 
merge it to my github repo.


If possible, try it out please. ;-)

Cheers,
ashbb