python 3.x - Can't configure tkinter object Listbox -


this question has answer here:

when run code create listbox , change appearance, given error "'nonetype' object has no attribute 'configure'":

listbox = listbox(myscreen).grid(row=1, column=0, sticky=nsew, rowspan=2) listbox.config(border=2, relief=sunken) 

`

try configuring listbox before placing it.

listbox = listbox(myscreen) listbox.config(border=2, relief=sunken) listbox.grid(row=1, column=0, sticky=nsew, rowsoan=2) 

Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -