On Thu, Jul 31, 2008 at 1:24 AM, Seth Thomas Rasmussen
<[EMAIL PROTECTED]> wrote:
> Some context from the code might be helpful.

Sorry, I'm not following you. The full source code is below and it
"works" as it is.
http://plea.se/me/shoes/kumlatemp/

If I change:

timer(1)  do
  draw_thermometer
end

to:

draw_thermometer

or:

start do
    draw_thermometer
end

No thermometer is drawn on application start even though the start
event is fired. Then after waiting the full five minutes it is drawn
by the:
every(300) do
      draw_thermometer
end

Still unclear?

-- 
/J




> On Sat, Jul 26, 2008 at 4:28 PM, Jonas Elfström <[EMAIL PROTECTED]> wrote:
>> Were this problem totally uncomprehensible? Would it help if I add
>> that a call to the draw_thermometer-method directly following the
>> Shoes.app-line does nothing as well?
>>
>> http://plea.se/me/shoes/kumlatemp/
>>
>>
>> On Sat, Jul 19, 2008 at 9:23 PM, Jonas Elfström <[EMAIL PROTECTED]> wrote:
>>> I very new to Shoes so excuse if this is totally obvious. If I call a
>>> certain draw_thermometer-method in the start event absolutetely
>>> nothing happens but if I call the same method in a timer(1) do block
>>> it works perfectly. Why is it so?
>>>
>>> Also I wonder if it is by design that an every-slot/block does not
>>> execute and then waits the n seconds instead of first waiting n
>>> seconds before executing?
>>>
>>> Source code can be found here: 
>>> http://plea.se/me/shoes/kumlatemp/kumla-temp.txt
>>> Screenshot: http://plea.se/me/shoes/kumlatemp/thermometer.png
>>>
>>> I'm on Windows XP and r811.
>>>
>>> PS. alt-\ for console does not work with swedish keyboard. We press
>>> "alt gr" / right alt for \. But alt+alt-gr+\ does not bring up the
>>> console so I have to switch to english keyboard. Not a very big deal.
>>> DS.
>>
>> --
>> Jonas Elfström
>>
>
>
>
> --
> Seth Thomas Rasmussen
> http://greatseth.com
>



-- 
Jonas Elfström

Reply via email to