0

When I dissable a button with a image on it, the image gets a white filter over it. I want to disable that filter, while keeping the button dissabled.

import tkinter
import PIL
import PIL.ImageTk

root = tkinter.Tk ()

img = PIL.Image.new (mode = "RGB", size = (100, 100), color = (255, 0, 0))

tkImg = PIL.ImageTk.PhotoImage (img, master = root)
b = tkinter.Button (root, image = tkImg)
b.pack ()
b.config (state = "disabled")
root.mainloop ()

disabled button

Sagitario
  • 102
  • 8

0 Answers0