Line 46: |
Line 46: |
| | | |
| | | |
− | ===Packages and History=== | + | ==Development== |
| + | |
| + | This code is released in Public Domain, so you can do whatever you want with it. This is simple enough that Python learners can try to add or change features. |
| + | |
| + | Point of interests: |
| + | * PyGTK events programming. |
| + | * GTK/GDK drawing and Pango layout. |
| + | * Localization. Though a clock face should look quite similar in all cultures, you can adapt the way it displays hours numbers and date. Use of Pango markup allows to adapt the views to cultural representations of date and time. |
| + | * SVG rendering. The nice clock background is the SVG file clock.svg (drawn with [http://www.inkscape.org Inkscape]). You can change it to your liking. |
| + | * How to call an external process (espeak) to read the current time aloud. |
| + | * A small inference engine to translate time to full letters, where the set of rules can be adapted to new languages. |
| + | |
| + | Look at the README file for notes and ideas. |
| + | |
| + | ===Package and History=== |
| | | |
| As a Python application, the full source is included in the package for you to enjoy. | | As a Python application, the full source is included in the package for you to enjoy. |
Line 60: |
Line 74: |
| | | |
| Version 3 or older versions of Clock activity uses a lot of CPU time, slowing down all other activities that run at the same time. Please upgrade to version 4 (for OS 650, 656 or 8.2) or newer (8.2 and up). | | Version 3 or older versions of Clock activity uses a lot of CPU time, slowing down all other activities that run at the same time. Please upgrade to version 4 (for OS 650, 656 or 8.2) or newer (8.2 and up). |
− |
| |
− | ==Development==
| |
− |
| |
− | This code is released in Public Domain, so you can do whatever you want with it. This is simple enough that Python learners can try to add or change features.
| |
− |
| |
− | Point of interests:
| |
− | * PyGTK events programming.
| |
− | * GTK/GDK drawing and Pango layout.
| |
− | * Localization. Though a clock face should look quite similar in all cultures, you can adapt the way it displays hours numbers and date. Use of Pango markup allows to adapt the views to cultural representations of date and time.
| |
− | * SVG rendering. The nice clock background is the SVG file clock.svg (drawn with [http://www.inkscape.org Inkscape]). You can change it to your liking.
| |
− | * How to call an external process (espeak) to read the current time aloud.
| |
− | * A small inference engine to translate time to full letters, where the set of rules can be adapted to new languages.
| |
− |
| |
− | Look at the README file for notes and ideas.
| |
| | | |
| | | |
Line 85: |
Line 85: |
| :I haven't downloaded it yet to check that it implements this, but did you know that Swahili clocks are angled differently? [[wikipedia:Swahili#Swahili_time]] | | :I haven't downloaded it yet to check that it implements this, but did you know that Swahili clocks are angled differently? [[wikipedia:Swahili#Swahili_time]] |
| | | |
− | =Functional Test= | + | ==Functional Test== |
| | | |
| * Open the clock activity. | | * Open the clock activity. |
Line 92: |
Line 92: |
| * Close the activity; ensure that it closes properly. | | * Close the activity; ensure that it closes properly. |
| | | |
− | =Enhancements= | + | ==Enhancements== |
| | | |
| * Better Sugar integration; current display stops after 50 seconds when power saving fires up. | | * Better Sugar integration; current display stops after 50 seconds when power saving fires up. |