Guys, On 17 Jun 2013, at 16:55, Damien Cassou <damien.cassou@gmail.com> wrote:
On Mon, Jun 17, 2013 at 4:48 PM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Thanks Stephan, I will have a look using a Moose image later this evening. I guess Glamour can be loaded in Pharo 2.0 ?
yes it can. http://www.smalltalkhub.com/#!/~Moose/Glamour
-- Damien Cassou http://damiencassou.seasidehosting.st
This is seriously cool ! I did a curl get.moostechnology.org/Glamour25 | bash And in that image I first did | data | data := (1 to: 100) collect: [ :each | { #number->each. #double->(each*each). #reciprocal->each reciprocal asFloat. #words->each asWords} asDictionary ]. GLMWrapper new show: [ :a | a table display: [ :x | x ]; column: 'Number' evaluated: [ :x | (x at: #number) asString ]; column: 'Double' evaluated: [ :x | (x at: #double) asString ]; column: 'Reciprocal' evaluated: [ :x | (x at: #reciprocal) asString ]; column: 'Words' evaluated: [ :x | x at: #words ] ]; openOn: data. Which did what I wanted, but then I improved it to | data fields | data := (1 to: 100) collect: [ :each | { #number->each. #double->(each*each). #reciprocal->each reciprocal asFloat. #words->each asWords} asDictionary ]. fields := #(number double reciprocal words). GLMWrapper new show: [ :a | | table | (table := a table) display: [ :x | x ]. fields do: [ :field | table column: field capitalized asString evaluated: [ :x | (x at: field) asString ] ] ]; openOn: data. Which is totally what I wanted ;-) What part/group of Glamour do I have to load to get this in another image with minimal fuss or deps ? #bleedingEdge 'Core' & 'Morphic' maybe ? Thx, Sven -- Sven Van Caekenberghe Proudly supporting Pharo http://pharo.org http://association.pharo.org http://consortium.pharo.org