コード例 #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
コード例 #2
0
ファイル: lang.py プロジェクト: GNOME/gcompris
  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;
コード例 #3
0
ファイル: pythontest.py プロジェクト: afenkart/gcompris-devel
  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)
コード例 #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;
コード例 #5
0
ファイル: tuxpaint.py プロジェクト: GNOME/gcompris
 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
コード例 #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