librelist archives

« back to archive

green_shoes

green_shoes

From:
Catsquotl
Date:
2011-03-05 @ 18:24
Hi ashbb,

Wow you are quick.
All seems to be in working order...
Although change uses self instead of self.text... Took me a few tries to 
work out. LOL

I may have found another issue though.
For debugging i am used to use puts and look at the cmd screen to see 
what comes up.
today I use para to let some info appear inside the shoes app.

--------------------------------
require 'green_shoes'

Shoes.app do
para self.instance_variables
end
-----------------------------------

It seems that the output does not wrap inside the boundaries of the app 
window.
Making it impossible to use in this way.
  By the way i am just observing and commenting. You don't have to 
address these issues right away on my account

Eelco

Re: [shoes] green_shoes

From:
ashbb
Date:
2011-03-06 @ 03:57
Hi Eelco,

> Although change uses self instead of self.text...
Yes. I decided to change the spec. Now button, edit_line, edit_box
and list_box give self to the block attached as same as Red Shoes.

> It seems that the output does not wrap inside the boundaries of
> the app window.
OHH. Umm,... I don't know why Pango doesn't split by space...
In the meantime, try this:

--------------------------------
require 'green_shoes'
Shoes.app do
  para self.instance_variables.join(' ')
end
-----------------------------------

> By the way i am just observing and commenting. You don't have to
> address these issues right away on my account.
Okay.
But your commens are helpful. So, if you have any findings,
please let me know. ;-)

ashbb