Problem with a for loop and a list

John McMonagle jmcmonagle at velseis.com.au
Wed Jul 2 10:33:25 CEST 2008


Alexnb wrote:
> well okay, so what can I do?
> 
> 
> 
Firstly, stop top posting.  Replies to a thread "flow" better if bottom
posted.

Secondly, it sounds like you want to build a list of the results from
your entry.get() calls.

Try this:

self.wordList = []
def getWords(self):
    for entry in self.listBuffer:
        self.wordList.append(entry.get())

print self.wordList





More information about the Python-list mailing list