Activity Development for Gcompris Suite
Lavanya Gunasekaran
Mentor : Bruno Coudin
Gcompris! What is it all about?
Development Tools
● Gcompris python API
● Python
● Inkscape
● PyGooCanvas
● pyGtk
Activities
Cryptography CookBook Computer Meteo Station Stop,Look,Listen
Encryption Decryption Play with parts Computer
Simulation
class Steering:
def __init__(self, stop_look_listen, steeringitems):
self.rootitem = stop_look_listen.rootitem
self.pos = 0
self.steeringitems = steeringitems
self.timer = 0
self.svghandle = gcompris.utils.load_svg
("stop_look_listen/background.svgz")
self.road = Road(self, self.svghandle)
self.sign = Sign(self, self.svghandle)
self.show(self.rootitem)
# Create the Svg items on new rootitem
def show(self, rootitem):
self.rootitem = rootitem
self.steering = goocanvas.Svg(parent = self.rootitem,
svg_handle = self.svghandle,
svg_id = "#STEERING_0"
)
self.road.show(self.rootitem)
self.sign.show(self.rootitem)
/*Bit of Code*/
Screenshots
Thank you
Lavanya Gunasekaran
lavanyagunasekar@gmail.com
lava_g on #GCompris and #GNOME
https://wiki.gnome.org/lavanya

GSoC presentation

  • 1.
    Activity Development forGcompris Suite Lavanya Gunasekaran Mentor : Bruno Coudin
  • 2.
    Gcompris! What isit all about?
  • 3.
    Development Tools ● Gcomprispython API ● Python ● Inkscape ● PyGooCanvas ● pyGtk
  • 4.
    Activities Cryptography CookBook ComputerMeteo Station Stop,Look,Listen Encryption Decryption Play with parts Computer Simulation
  • 5.
    class Steering: def __init__(self,stop_look_listen, steeringitems): self.rootitem = stop_look_listen.rootitem self.pos = 0 self.steeringitems = steeringitems self.timer = 0 self.svghandle = gcompris.utils.load_svg ("stop_look_listen/background.svgz") self.road = Road(self, self.svghandle) self.sign = Sign(self, self.svghandle) self.show(self.rootitem) # Create the Svg items on new rootitem def show(self, rootitem): self.rootitem = rootitem self.steering = goocanvas.Svg(parent = self.rootitem, svg_handle = self.svghandle, svg_id = "#STEERING_0" ) self.road.show(self.rootitem) self.sign.show(self.rootitem) /*Bit of Code*/
  • 6.
  • 7.
    Thank you Lavanya Gunasekaran lavanyagunasekar@gmail.com lava_gon #GCompris and #GNOME https://wiki.gnome.org/lavanya