Back to index

gcompris  8.2.2
Public Member Functions | Public Attributes
admin.wordlist.Words_list Class Reference

List of all members.

Public Member Functions

def __init__
def wordlist_callback
def wordlist_validate

Public Attributes

 cur
 con
 active_profile
 main_vbox
 prop
 wordlist_dir

Detailed Description

GCompris Words  List Tool

Definition at line 32 of file wordlist.py.


Constructor & Destructor Documentation

def admin.wordlist.Words_list.__init__ (   self,
  db_connect,
  db_cursor,
  profile 
)

Definition at line 37 of file wordlist.py.

00037 
00038   def __init__(self, db_connect, db_cursor, profile):
00039 
00040     self.cur = db_cursor
00041     self.con = db_connect
00042     self.active_profile = profile
00043 
00044     print "Words_list __init__"
00045 
00046     files = glob.glob('wordlist_*.xml')
00047 
00048     print "Matching files :", files
00049 
00050     self.main_vbox = gcompris.configuration_window ( \
00051       _('<b>%s</b> configuration\n for profile <b>%s</b>') % ('Wordlist', self.active_profile.name ),
00052       self.wordlist_callback
00053       )
00054 
00055     self.prop = gcompris.get_properties()
00056 
00057     self.wordlist_dir = self.prop.shared_dir +'/wordlist'
00058 
00059     print self.wordlist_dir
00060 
00061     gcompris.textview('Words list',
00062                       'wordlist',
00063                       'Enter the words, comma, space, return separated. Then click on th check button.',
00064                       '',
00065                       self.wordlist_validate)


Member Function Documentation

def admin.wordlist.Words_list.wordlist_callback (   self,
  table 
)

Definition at line 66 of file wordlist.py.

00066 
00067   def wordlist_callback(self, table):
00068     print "wordlist_callback"
00069     for k, v in table.iteritems():
00070       print k, v
00071 

def admin.wordlist.Words_list.wordlist_validate (   self,
  key,
  text,
  label 
)

Definition at line 72 of file wordlist.py.

00072 
00073   def wordlist_validate( self, key, text, label):
00074     print "wordlist_validate"
00075     print key, text
00076     label.set_markup(text)
00077     return True
00078 
00079 
00080 

Member Data Documentation

Definition at line 41 of file wordlist.py.

Definition at line 40 of file wordlist.py.

Definition at line 39 of file wordlist.py.

Definition at line 49 of file wordlist.py.

Definition at line 54 of file wordlist.py.

Definition at line 56 of file wordlist.py.


The documentation for this class was generated from the following file: