pButton = Button(root, text="Play", command="playButton").grid(row=1)
Here you are creating an object of type Button
, but you are immediately calling the grid
method over it, which returns None
. Thus, pButton
gets assigned None
, and that's why the next row fails.
You should do instead:
pButton = Button(root, text="Play", command="playButton")
pButton.grid(row=1)
pButton.config(image=PlayUp)
i.e. first you create the button and assign it to pButton
, then you do stuff over it.