ParthJadhav / Tkinter-Designer

An easy and fast way to create a Python GUI 🐍
BSD 3-Clause "New" or "Revised" License
8.96k stars 821 forks source link

FR: Turn Buttons into Labels to avoid border issue #193

Open omar2205 opened 2 years ago

omar2205 commented 2 years ago

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'))
ParthJadhav commented 2 years ago

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

omar2205 commented 2 years ago

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