Tkinter-Designer icon indicating copy to clipboard operation
Tkinter-Designer copied to clipboard

FR: Turn Buttons into Labels to avoid border issue

Open omar2205 opened this issue 3 years ago • 2 comments

If we are using Buttons as an Image, then we should use Label

from tkinter import Label

# img

btn = Label(
    image=img
)
btn.bind('<Button-1>', lambda _: print('Button was pressed'))

omar2205 avatar Feb 09 '22 21:02 omar2205

Can you create a pull request ? We can test how it works and then merge it.

ParthJadhav avatar Feb 20 '22 05:02 ParthJadhav

I used it in https://github.com/omar2205/imgs-lottie and it works as expected.

omar2205 avatar Feb 20 '22 05:02 omar2205