This loads a file with words:
# import the application user interface framework module
import appuifw
import audio
import codecs
import string
dictionary = u"e:\\python\\words.dat"
f=codecs.open(dictionary,encoding="utf-8")
L = f.readlines()
L = map(string.rstrip,L)
# create the selection list
index = appuifw.selection_list(choices=L , search_field=1)
# use the result of the selection to trigger some action
text = L[index]
#audio.say(text)
appuifw.note(text, "info")
Talk with you a bit later (I will leave now for one or two hours), I'm thinking if it's worst to port all Babiloo to S60's or just use a simpler text format and load in more simple way. Not porting dict, XML, etc. etc. formats and use this approach...
Hello,
This loads a file with words:
# import the application user interface framework module
import appuifw
import audio
import codecs
import string
dictionary = u"e:\\python\ \words. dat"
f=codecs. open(dictionary ,encoding= "utf-8" )
L = f.readlines()
L = map(string. rstrip, L)
# create the selection list selection_ list(choices= L , search_field=1)
index = appuifw.
# use the result of the selection to trigger some action
text = L[index]
#audio.say(text)
appuifw.note(text, "info")
Talk with you a bit later (I will leave now for one or two hours), I'm thinking if it's worst to port all Babiloo to S60's or just use a simpler text format and load in more simple way. Not porting dict, XML, etc. etc. formats and use this approach...
Cheers,