[etoys-dev] sixteen items for Squeaklamd 2012 - item 2: Calendar

Scott Wallace scott.wallace at squeakland.org
Thu Jan 26 02:24:59 EST 2012


> 2. calendar? (tools) add help  (ask developers about cost of adding projects)

This derives from Ricardo Moran's "Calendario" project.  It provides a Calendar object looking like this:



… which can be scripted using tiles found in the "calendar" category of its Viewer:




The date, month, etc., all refer to the calendar's currently "selected date", whose month and year are showing and whose day-of-month is highlighted.  Whenever any value affecting that date is changed (by script or via the UI in a Viewer or Watcher) the calendar will switch to showing the month in which that date occurs, and will highlight the newly selected date.

I've submitted a mildly modified version of Ricardo's code to the Squeakland tracker as item SQ-1008, and propose, pending comments from testers, that it be included in the forthcoming Squeakland 2012 release.

Many good things can be done with this object, and using two calendars side by side suggests further ideas -- e.g it's easy to make a project that instantly computes the number of days between any two dates.  It's also easy to build a little tool that will tell you what day-of-the-week you birthday will fall in any given year, etc.  

Many thanks to Richo for this work.  

  -- Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20120125/5a6a14b4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-2.tiff
Type: image/tiff
Size: 27686 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20120125/5a6a14b4/attachment-0002.tiff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.tiff
Type: image/tiff
Size: 284646 bytes
Desc: not available
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20120125/5a6a14b4/attachment-0003.tiff>


More information about the etoys-dev mailing list