So I have a simple button:
f1button3=Button(text=\"Database\", command = lambda: DatabaseWidgets()).place(x=1,y=30)
The buton is always a recta
I hit the same problem. My solution was to use an image, then bind that to a click. Here is the code I used:
from Tkinter import *
from PIL import ImageTk, Image
app = Tk()
def do(event):
print("Button Clicked!")
#...
img = ImageTk.PhotoImage(Image.open("Button.gif"))
button = Label(app, image = img)
button.pack()
button.bind('<Button-1>', do)
app.mainloop()
The <Button-1>
binds the image to a right click. The "Button.gif"
is the picture I used.
Here is the output picture: