Smalltalk interactive tutorial in good English

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Smalltalk interactive tutorial in good English

Torsten Bergmann
There is also the World's smallest drawing program

http://wiki.squeak.org/squeak/126

which has to be adapted due to sensor changes
(take care it is dog slow compared to squeak):


| myPen |
myPen := Pen new defaultNib: 2.
myPen up.
myPen goto: Sensor cursorPoint.
myPen down.
[Sensor waitButton. Sensor yellowButtonPressed] whileFalse:
    [Sensor redButtonPressed
        ifTrue: [myPen goto: Sensor cursorPoint]].
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk interactive tutorial in good English

Mariano Martinez Peck
Cool. But I think the idea is not to use Sensor anymore but InputEventSensor. At least, when possible.

Cheers

Mariano

On Fri, Jan 15, 2010 at 5:24 PM, Torsten Bergmann <[hidden email]> wrote:
There is also the World's smallest drawing program

http://wiki.squeak.org/squeak/126

which has to be adapted due to sensor changes
(take care it is dog slow compared to squeak):


| myPen |
myPen := Pen new defaultNib: 2.
myPen up.
myPen goto: Sensor cursorPoint.
myPen down.
[Sensor waitButton. Sensor yellowButtonPressed] whileFalse:
   [Sensor redButtonPressed
       ifTrue: [myPen goto: Sensor cursorPoint]].
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Smalltalk interactive tutorial in good English

Stéphane Ducasse
+1

Yes
We should clean this part.

I remember that there was a fun expression to fetch an image over the network

Stef
On Jan 15, 2010, at 5:28 PM, Mariano Martinez Peck wrote:

> Cool. But I think the idea is not to use Sensor anymore but InputEventSensor. At least, when possible.
>
> Cheers
>
> Mariano
>
> On Fri, Jan 15, 2010 at 5:24 PM, Torsten Bergmann <[hidden email]> wrote:
> There is also the World's smallest drawing program
>
> http://wiki.squeak.org/squeak/126
>
> which has to be adapted due to sensor changes
> (take care it is dog slow compared to squeak):
>
>
> | myPen |
> myPen := Pen new defaultNib: 2.
> myPen up.
> myPen goto: Sensor cursorPoint.
> myPen down.
> [Sensor waitButton. Sensor yellowButtonPressed] whileFalse:
>    [Sensor redButtonPressed
>        ifTrue: [myPen goto: Sensor cursorPoint]].
> --
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project