Nov-01-2020, 09:35 PM
I don't understand- do you want a background image overlaid by the buttons or insert the image with the buttons? I don't the text widget is a great candidate for the first option, maybe a scrolled canvas with an image and buttons placed over.
the second try:
the second try:
from PIL import Image, ImageTk a = Tk() img = Image.open("example.png") image_ = ImageTk.PhotoImage(img) scroll = Scrollbar(a, orient="vertical") text = Text(a, width=25, height=15, wrap="none", yscrollcommand=scroll.set) text.image_create("1.0", image=image_)