Hi everybody, I would like to create a preferences menu for my app.
I used this to create the form, but I would store choices and show them when user wants to change them.
I'm using two functions (save/load) with e32dbm module, but every time I try to use them something goes wrong.
These are the functions:
db = e32dbm.open(PREF_FILE, "cf")
db[u"first"] = scelte
db[u"second"] = scelte
where scelte is a 2 items array in which I store the position the chosen elements to focus on them opening the form.
db = e32dbm.open(PREF_FILE, "r")
scelte = db[u"first"]
scelte = db[u"second"]
scelte = first.find(myForm.getFirst( ))
scelte = second.find(myForm.getSecond( ))
What am I doing wrong?
self._iFields = [( u'First', 'combo', ( self._iFirst, scelte ) ),
( u'Second', 'combo', ( self._iSecond, scelte ) )]