Activity Team/Sample code/Ruler: Difference between revisions
Created page with '[http://git.sugarlabs.org/projects/ruler/repos/mainline/trees/master Ruler] is a simple activity that uses Cairo graphics. It is also an example of how to use both the new (0.86+…' |
m moved Walter is a wanker 10/Sample code/Ruler to Activity Team/Sample code/Ruler over redirect: revert |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
[http://git.sugarlabs.org/projects/ruler/repos/mainline/trees/master Ruler] is a simple activity that uses Cairo graphics. It is also an example of how to use both the new (0.86+) and old (pre-0,86) toolbar, and simple Journal interaction. Not the | [http://git.sugarlabs.org/projects/ruler/repos/mainline/trees/master Ruler] is a simple activity that uses Cairo graphics. It is also an example of how to use both the new (0.86+) and old (pre-0,86) toolbar, and simple Journal interaction. Not the most beautiful code, but it works. | ||
Misc. imports. Note that we catch an exception if the new 0.86 toolbars aren't available. | Misc. imports. Note that we catch an exception if the new 0.86 toolbars aren't available. | ||
| Line 41: | Line 41: | ||
import show_angles | import show_angles | ||
</pre> | </pre> | ||