Re: [Pharo-project] Worskpace question

2012-06-21 Thread Hilaire Fernandes
But try this code, and you will get my point: | m | m := Morph new. m openInWorld. m color: Color red. 1 to: 300 do: [:x | m extent: x@300. (Delay forMilliseconds: 10) wait. ]. m delete. I want to see the animation of the growing morph. Instead I get nothing. To get the

Re: [Pharo-project] Worskpace question

2012-06-21 Thread Guillermo Polito
On Thu, Jun 21, 2012 at 3:44 PM, Stefan Marr smallt...@stefan-marr.dewrote: On 21 Jun 2012, at 15:11, Hilaire Fernandes wrote: I want to see the animation of the growing morph. Instead I get nothing. To get the animation, you have to enclose the loop in a forked process, but it is

Re: [Pharo-project] Worskpace question

2012-06-21 Thread Stefan Marr
Hi: On 21 Jun 2012, at 15:57, Guillermo Polito wrote: I bet there is a Morphic API that allows you to process the next drawing request. Hmm, that sounds like forcing the framework... I think that having a second process is the right way... For an experiment? Getting the concurrency

Re: [Pharo-project] Worskpace question

2012-06-21 Thread Guillermo Polito
Maybe for a 5' experiment is well :). But World doOneCycle do handle events also, not just rendering, what should lead to a wrong state :). I don't forbid anybody to use it, just tell him to think about it :P. On Thu, Jun 21, 2012 at 4:13 PM, Stefan Marr smallt...@stefan-marr.dewrote: Hi:

Re: [Pharo-project] Worskpace question

2012-06-21 Thread Sean P. DeNigris
Hilaire Fernandes wrote To get the animation, you have to enclose the loop in a forked process, but it is inelegant: ... [1 to: 300 do: [:x | m extent: x@300. (Delay forMilliseconds: 10) wait. ]. m delete] fork. Hilaire, why don't you like this? It seems very

Re: [Pharo-project] Worskpace question

2012-06-21 Thread Sean P. DeNigris
Stefan Marr-3 wrote I bet there is a Morphic API that allows you to process the next drawing request. Hmm, that sounds like forcing the framework... I think that having a second process is the right way... For an experiment? Getting the concurrency right in a second process sound a

Re: [Pharo-project] Worskpace question

2012-06-21 Thread Gary Chambers
...@clipperadams.com To: pharo-project@lists.gforge.inria.fr Sent: Thursday, June 21, 2012 4:51 PM Subject: Re: [Pharo-project] Worskpace question Hilaire Fernandes wrote To get the animation, you have to enclose the loop in a forked process, but it is inelegant: ... [1 to: 300 do: [:x | m

[Pharo-project] Worskpace question

2012-06-20 Thread Hilaire Fernandes
DHello, I have a question regarding the Workspace when you execute code from there. Let me show with an example: I want to execute code instantiating an empty DrGeo sketch (a morph) then create programmatically content: |canvas| canvas := DrGeoCanvas new. canvas segment: 5@4 to: 10@20. canvas

Re: [Pharo-project] Worskpace question

2012-06-20 Thread Fernando Olivero
I don't think its related to the processes priority. Can you provide more code of the DrGeoCanvas#initialize ? Because, the following works just fine, by evaluating the first two lines, or the complete script. m := Morph new. m openInWorld. m color: Color red. m extent: 300@300. m delete