more beginners trouble changing flow content this time
- From:
- Catsquotl
- Date:
- 2011-03-01 @ 09:42
Hi,
Thanks for the heads up on button sizes..
Next question...
I have a Shoes.app with 4 flows.
All sized 0.5 width and height.
How can I change the content of say the 3d flow?
I tried puting the flows in instance variables. and change the variable.
Para changes give a error in failure to write_to_png
background changes don't change the background.
Eelco
[code]
require 'green_shoes'
Shoes.app do
@w1 = flow width: 0.5,height: 0.5 do
background pink
end
@w2 = flow width: 0.5, height: 0.5 do
background red
button"click" do
@w3 =flow width: 0.5, height: 0.5 do
background red
para " lalalalalalalal"
puts @w3.contents
end
end
end
@w3 =flow width: 0.5, height: 0.5 do
background blue
para " dit is regel 1"
end
@w4 = flow width: 0.5, height: 0.5 do
background yellow
end
puts @w3.contents
end
[/code]
Re: more beginners trouble changing flow content this time
- From:
- Catsquotl
- Date:
- 2011-03-01 @ 13:52
Found it....
Thanks for reading though....
Eelco
require 'green_shoes'
Shoes.app do
flow width: 0.5,height: 0.5 do
background pink
end
flow width: 0.5, height: 0.5, do
background red
button"click" do
@w3.clear {
background red
para 'hihi'
}
end
end
@w3 = flow width: 0.5, height: 0.5 do
background brown
para 'hi'
end
flow width: 0.5, height: 0.5 do
background yellow
end
end
Re: [shoes] Re: more beginners trouble changing flow content this time
- From:
- ashbb
- Date:
- 2011-03-01 @ 13:57
Hi Catsquotl,
Yeah, you got it. Fantastic!
Thank you for playing Green Shoes.
I'm so happy. Let's have fun! :)
ashbb
Re: [shoes] Re: more beginners trouble changing flow content this time
- From:
- ashbb
- Date:
- 2011-03-02 @ 15:38
Hi again,
I noticed a bug by executing Catsquotl's helpful code.
Now fixed and uploaded into RubyGem.org
Try out green_shoes 0.176.0: http://rubygems.org/gems/green_shoes
Thank you, Catsquotl. :)
Commit is this:
https://github.com/ashbb/green_shoes/commit/4d5d99249858683ab36fc1ea4bb94bd39e89066d
Cheers,
ashbb
Re: [shoes] Re: more beginners trouble changing flow content this
time
- From:
- Catsquotl
- Date:
- 2011-03-03 @ 08:51
Wow I'm glad I could help..
The program i am writing (and used the precious code as an excersise
for) is on github:
https://github.com/Catsquotl/tcm-study
Eelco
Op 2-3-2011 16:38, ashbb schreef:
> Hi again,
>
> I noticed a bug by executing Catsquotl's helpful code.
> Now fixed and uploaded into RubyGem.org
>
> Try out green_shoes 0.176.0: http://rubygems.org/gems/green_shoes
>
> Thank you, Catsquotl. :)
>
> Commit is this:
>
https://github.com/ashbb/green_shoes/commit/4d5d99249858683ab36fc1ea4bb94bd39e89066d
>
> Cheers,
> ashbb
Re: [shoes] Re: more beginners trouble changing flow content this time
- From:
- ashbb
- Date:
- 2011-03-03 @ 11:26
Hi Eelco,
Are you developing Green Shoes app? Fantastic!
If you have any problem, feel free let me know. ;-)
Cheers,
ashbb
Re: [shoes] Re: more beginners trouble changing flow content this
time
- From:
- Catsquotl
- Date:
- 2011-03-03 @ 12:41
I am trying to anyway.
As I am just learning Ruby and programming So I still need a few hours
of experimenting and looking at the samples, just to get the most basic
things to work..
That by the way is what drew me to green_shoes. Having it as a require
in my rubyfile and just hit F5 to see if my code runs..
So expect some silly questions..
Almost mailed some code this morning that i couldn,t figure out. But
writing it down gave me the aha moment i was looking for.
Eelco
Op 3-3-2011 12:26, ashbb schreef:
> Hi Eelco,
>
> Are you developing Green Shoes app? Fantastic!
>
> If you have any problem, feel free let me know. ;-)
>
> Cheers,
> ashbb