Ejemplo n.º 1
0
  def ok_callback(self, table):
    if (table == None):
      return True

    for key,value in table.iteritems():
      gcompris.set_board_conf(self.configuring_profile,
                              self.gcomprisBoard, key, value)

    return True;
Ejemplo n.º 2
0
  def ok_callback(self, table):
    if (table == None):
      print 'Configuration returns None'
      return

    print "Keys and values returned by PythonTest config window:"

    if (len(table) == 0):
        print '%20s' % 'None'

    for key,value in table.iteritems():
      print '%20s:%20s    ' % (key, value)
      gcompris.set_board_conf(self.configuring_profile, self.gcomprisBoard, key, value)
Ejemplo n.º 3
0
 def apply_callback(self,table):
   if table:
     for key,value in table.iteritems():
       gcompris.set_board_conf(self.configure_profile, self.gcomprisBoard,
                             key, value)
   return True