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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -