[Pharo-users] Updated Pharo By Example

Dimitris Chloupis kilon.alios at gmail.com
Mon Oct 26 12:30:19 EDT 2015


Hello Mariano, thank you for your kind word of course I am one of the many
contributors and UPBE is a collective effort.

We dont have an image right now for UPBE and I think that the best way to
approach this is to make a package for the Catalog Browser . This means you
will be able to use UPBE examples to any image you have instead of being
isolated to a different image.  When this will happen I cant promise
anything since our first priority is to make the documentation as up to
date as possible.

Currently we support Pharo 4 and 5 , with focus of course on Pharo 5.
Obviously in the future the focus will continuously shift towards the
latest version. So when we put the "Updated" to Pharo by Example, we mean
business.


On Mon, Oct 26, 2015 at 6:04 PM Mariano Martinez Peck <marianopeck at gmail.com>
wrote:

> Hi Dimitris,
>
> Thank you very much for your hard work. It was so much needed. In fact, I
> need it now :)
> I have question... remember the old PBE used to have a VM + image for the
> book, which was the image expected to be used while reading the book. Is
> there a new VM + image prepared for UPBE? If true, where? If not, then at
> least which Pharo version is expected to be used as a reference? 4.0?
>
> Thanks in advance,
>
>
> On Fri, Oct 23, 2015 at 4:19 PM, Stephan Eggermont <stephan at stack.nl>
> wrote:
>
>> On 23-10-15 19:15, Thierry Goubier wrote:
>>
>>> Le 23 oct. 2015 7:00 PM, "Dimitris Chloupis" <kilon.alios at gmail.com> a
>>> écrit :
>>>
>>>>
>>>> I completely agree with Stef, I did actually removed some screenshots
>>>> and
>>>>
>>> someone put them pack
>>>
>>>>
>>>> Maybe I can create a pharo script to auto make them for each version
>>>>
>>>
>>> Wasn't there a way to run Smalltalk code inside pillar? Code that would
>>> open windows, screenshot and return a png.
>>>
>>
>> Well, there is Documentation-Screenshots in StephanEggermont/Documentation
>>
>> You create a DOScreenshotExporter, set its directory and tell it which
>> forms/morphs/nautilus/world you want stored there under which filename.
>> I fixed a few remaining bugs today.
>>
>> I presume you should be able to use it in pillar.
>>
>> You can use it like
>>
>> so := DOScreenshotExporter new.
>> so directory: FileLocator home.
>> so writeNautilusMethod: DOScreenshotExporter>>#directory: as:
>> 'directoryMethod.png'
>>
>> It has methods like
>> DOScreenshotExporter>>writeNautilusMethod: aMethod as: aFileName
>>   self writeBlock: [(Nautilus openOnMethod: aMethod) ui window imageForm
>> ] as: aFileName
>>
>> This makes sure to first rename an existing file before overwriting it.
>>
>> DOScreenshotExporter>>writeBlock: aBlock as: aFileName
>>   |temp|
>>   (directory / aFileName) exists ifTrue: [
>>     temp := (directory / aFileName) renameTo: (aFileName,'tmp') ].
>>   PNGReadWriter putForm: aBlock value onFileNamed: (directory /
>> aFileName).
>>   temp ifNotNil: [ temp ensureDelete ]
>>
>> Stephan
>>
>>
>>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20151026/bf1719d0/attachment.html>


More information about the Pharo-users mailing list