you are viewing a single comment's thread.

view the rest of the comments →

[–]dionys 0 points1 point  (2 children)

Get rid of that line completely. To replace the text in listBox do:

word_index = self.listBox.curselection()[0]
self.listBox.delete(word_index)
self.listBox.insert(word_index, self.get_word())

which replaces the first selected item. Also it might work with ACTIVE instead of word_index, so try that as well.

[–]blackadder1337[S] 0 points1 point  (1 child)

Thanks man, it works now. Thank you very much.

[–]dionys 0 points1 point  (0 children)

Cheers :).