hi,
how can I assign a numeric value instead of a string to specify the color of my button ? What the exact syntax ?
button = tk.Button(itemFrame, text="", bg="red", width=10, command=callback)
i.e bg = #FF0000
thanks
hi,
how can I assign a numeric value instead of a string to specify the color of my button ? What the exact syntax ?
button = tk.Button(itemFrame, text="", bg="red", width=10, command=callback)
i.e bg = #FF0000
thanks
There are two general ways to specify colors in Tkinter.
#rgb Four bits per color
#rrggbb Eight bits per color
#rrrgggbbb Twelve bits per color
The format should be string
bg='#FF0000'
and not bg=#FF0000