1
0

kivy wizard: use own soft keyboard

This commit is contained in:
ThomasV
2016-02-13 15:10:17 +01:00
parent 950f3ae633
commit 656069070a
3 changed files with 168 additions and 56 deletions

View File

@@ -132,6 +132,11 @@ class Mnemonic(object):
words.append(self.wordlist[x])
return ' '.join(words)
def get_suggestions(self, prefix):
for w in self.wordlist:
if w.startswith(prefix) and w!=prefix:
yield w
def mnemonic_decode(self, seed):
n = len(self.wordlist)
words = seed.split()