I was trying to make a dice in tkinter on python and this gives me the error AttributeError: 'NoneType' object has no attribute 'configure' when i click on the button. I've not got a single clue why. btw not sure if it changes anything but im using a mac. thanks!
def Roll():
roll = 0
roll = random.randint(1,6)
Roll.configure(text = str(roll))
Roll = Button(root, text = "Roll", command = Roll, bg = "Lawn Green", fg = "Green", height = 4, width = 10).grid(row = 1, column = 6)