A member project of the
        Software Freedom
          Conservancy
20/01/10     LCA Wellington   Walter Bender
Part I:
  1. What is Sugar?
  2. Why should you care?
  3. What can you do?



20/01/10   LCA Wellington   Walter Bender
1. Sugar is the core component
of a worldwide effort to provide
every child with an opportunity
for a quality education.
2...
2. Sugar is a critical-thinking
 tool in the context of open-
 ended exploration and
 discovery, going beyond the
 use of ...
3.1 Try Sugar




20/01/10    LCA Wellington   Walter Bender
20/01/10   LCA Wellington   Walter Bender
3.2 Join our community




           http://sugarlabs.org




20/01/10       LCA Wellington     Walter Bender
3.3 Contribute to Sugar




20/01/10    LCA Wellington   Walter Bender
Part II:
The Anatomy of a Sugar
Activity




20/01/10   LCA Wellington   Walter Bender
The “number” game




20/01/10   LCA Wellington   Walter Bender
View Source




20/01/10     LCA Wellington   Walter Bender
What are all these files?
card.py       – defines an individual card
gencards.py – svg image generator for cards
sprites.p...
What is in the files?
card.py:class Card:
deck.py:class Deck:
game.py:class Game:
game.py:class Combination:
grid.py:class...
deck.py
   def __init__(self, sprites, card_type)
   def shuffle(self):
   def deal_next_card(self):
   def cards_remainin...
Let's add Mayan to the
               Number Game.




                 Source: http://en.wikipedia.org/wiki/File:Maya.svg...
Some Python, an icon, ...
def number_mayan(n, stroke):                                  svg_string += svg_circle(x1,y10s,3...
et voila!




20/01/10   LCA Wellington   Walter Bender
walter@sugarlabs.org




20/01/10         LCA Wellington   Walter Bender
Upcoming SlideShare
Loading in...5
×

LCA Education Miniconference Bender

1,106

Published on

Walter Bender's presentation for LCA2010 education mini conference.
Wellington, New Zealand. 19 January 2010.
Presented remotely via audio call.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,106
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "LCA Education Miniconference Bender"

  1. 1. A member project of the Software Freedom Conservancy 20/01/10 LCA Wellington Walter Bender
  2. 2. Part I: 1. What is Sugar? 2. Why should you care? 3. What can you do? 20/01/10 LCA Wellington Walter Bender
  3. 3. 1. Sugar is the core component of a worldwide effort to provide every child with an opportunity for a quality education. 20/01/10 LCA Wellington Walter Bender
  4. 4. 2. Sugar is a critical-thinking tool in the context of open- ended exploration and discovery, going beyond the use of the computer as a tool of instruction. 20/01/10 LCA Wellington Walter Bender
  5. 5. 3.1 Try Sugar 20/01/10 LCA Wellington Walter Bender
  6. 6. 20/01/10 LCA Wellington Walter Bender
  7. 7. 3.2 Join our community http://sugarlabs.org 20/01/10 LCA Wellington Walter Bender
  8. 8. 3.3 Contribute to Sugar 20/01/10 LCA Wellington Walter Bender
  9. 9. Part II: The Anatomy of a Sugar Activity 20/01/10 LCA Wellington Walter Bender
  10. 10. The “number” game 20/01/10 LCA Wellington Walter Bender
  11. 11. View Source 20/01/10 LCA Wellington Walter Bender
  12. 12. What are all these files? card.py – defines an individual card gencards.py – svg image generator for cards sprites.py – draws images on the screen deck.py – defines a deck of cards grid.py – defines a playing surface game.py – game logic VisualMatchActivity.py – Sugar UI (toolbars, journal, sharing) 20/01/10 LCA Wellington Walter Bender
  13. 13. What is in the files? card.py:class Card: deck.py:class Deck: game.py:class Game: game.py:class Combination: grid.py:class Grid: sprites.py:class Sprites: sprites.py:class Sprite: VisualMatchActivity.py:class VisualMatchActivity(activity.Activity): VisualMatchActivity.py:class ChatTube(ExportedGObject): 20/01/10 LCA Wellington Walter Bender
  14. 14. deck.py def __init__(self, sprites, card_type) def shuffle(self): def deal_next_card(self): def cards_remaining(self): 20/01/10 LCA Wellington Walter Bender
  15. 15. Let's add Mayan to the Number Game. Source: http://en.wikipedia.org/wiki/File:Maya.svg 20/01/10 LCA Wellington Walter Bender
  16. 16. Some Python, an icon, ... def number_mayan(n, stroke): svg_string += svg_circle(x1,y10s,3,stroke,stroke,2) x = 42.5 svg_string += svg_circle(x2,y10s,3,stroke,stroke,2) x1,x2,xc,x3,x4 = x+5,x+15,x+20,x+25,x+35 svg_string += svg_circle(x3,y10s,3,stroke,stroke,2) y = 60 svg_string += svg_circle(x4,y10s,3,stroke,stroke,2) y1s,y5s,y10s,y20s = y,y-10,y-20,y-40 elif n == 15: if n == 5: svg_string = svg_bar(x,y1s,stroke) svg_string = svg_bar(x,y1s,stroke) svg_string += svg_bar(x,y5s,stroke) elif n == 7: svg_string += svg_bar(x,y10s,stroke) svg_string = svg_bar(x,y1s,stroke) elif n == 21: svg_string += svg_circle(x2,y5s,3,stroke,stroke,2) svg_string = svg_circle(xc,y1s,3,stroke,stroke,2) svg_string += svg_circle(x3,y5s,3,stroke,stroke,2) svg_string += svg_circle(xc,y20s,3,stroke,stroke,2) elif n == 22: elif n == 10: svg_string = svg_circle(x2,y1s,3,stroke,stroke,2) svg_string = svg_bar(x,y1s,stroke) svg_string += svg_circle(x3,y1s,3,stroke,stroke,2) svg_string += svg_bar(x,y5s,stroke) svg_string += svg_circle(xc,y20s,3,stroke,stroke,2) elif n == 11: elif n == 33: svg_string = svg_bar(x,y1s,stroke) svg_string = svg_bar(x,y1s,stroke) svg_string += svg_bar(x,y5s,stroke) svg_string += svg_bar(x,y5s,stroke) svg_string += svg_circle(x+20,y10s,3,stroke,stroke,2) svg_string += svg_circle(xc,y10s,3,stroke,stroke,2) elif n == 14: svg_string += svg_circle(xc,y20s,3,stroke,stroke,2) svg_string = svg_bar(x,y1s,stroke) return svg_string svg_string += svg_bar(x,y5s,stroke) 20/01/10 LCA Wellington Walter Bender
  17. 17. et voila! 20/01/10 LCA Wellington Walter Bender
  18. 18. walter@sugarlabs.org 20/01/10 LCA Wellington Walter Bender
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×