[ENH]WorldTimeMorph (should now find your time zone!)

John Hinsley jhinsley at telinco.co.uk
Sun Aug 26 03:34:06 UTC 2001


I made an itsy bitsy correction to Karl's initializeLocally version of
his WorldTimeMorph (the latest version). If you want a version that runs
locally (that, is, which does not grab the image and time over the
Internet) file in Karls latest code and just add this to the  _class_
side of WorldTimeMorph:

initializeLocally
"WorldTimeMorph initializeLocally"       
"Download this jpeg and save it somewhere: 
http://www.3dup.com/textures/images/Solar_System/Earth/earth_map.jpg"
| morph |
morph _ self withForm: (Form fromFileNamed: 'earth_map.jpg' "or the path
to it on your system").
morph _ morph localTimeZone: 12 "gmt is 12 -- tweak this to suit your
location".
morph extent: 500 at 300.
morph openInWorld.

(And call it by doing: WorldTimeMorph initializeLocally )

this will work with the latest changesets.

It's a sensational little utility. Thanks again, Karl!

Cheers

John

-- 
Can't cope anymore? Desperate for help?
Join the 12 step program for those who yearn to give up Microsoft:
http://home.earthlink.net/~penguinrox/index.html




More information about the Squeak-dev mailing list