Example #1
0
 def ok_callback(self, table):
     if (not table):
         return True
     for key, value in table.iteritems():
         gcompris.set_board_conf(self.configuring_profile,
                                 self.gcomprisBoard, key, value)
     return True
Example #2
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;
Example #3
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)
Example #4
0
  def ok_callback(self, table):
    if (table == None):
      print 'Configuration returns None'
      return True

    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)

    return True;
Example #5
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
Example #6
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