I am trying to update a listbox in PySimpleGUI.I have a listbox with a key, so I use this code:
I get this error:
window.FindElement('_OUTPUT_').Update(values=test)
File "/Users/richard/anaconda/lib/python3.5/site-packages/PySimpleGUI/PySimpleGUI.py", line 719, in Update
self.TKListbox.delete(0, 'end')
AttributeError: 'NoneType' object has no attribute 'delete'
It is as if the listbox with '_OUTPUT_' key is not found...
1 2 |
test = [ 'aaaa' , 'bbbb' , 'cccc' ] window.FindElement( '_OUTPUT_' ).Update(values = test) |
window.FindElement('_OUTPUT_').Update(values=test)
File "/Users/richard/anaconda/lib/python3.5/site-packages/PySimpleGUI/PySimpleGUI.py", line 719, in Update
self.TKListbox.delete(0, 'end')
AttributeError: 'NoneType' object has no attribute 'delete'
It is as if the listbox with '_OUTPUT_' key is not found...