0

How can I create a button on the a image background? The image background hides the button but the button should be on the image .

from tkinter import *
import tkinter
from PIL import Image, ImageTk
from tkinter import ttk

#Window Settings
window = Tk()
window.geometry("1100x650")
content = ttk.Frame(window)
window.title('Minecraft Seed Generator')


#Backround
background = ImageTk.PhotoImage(file = r'C:\MinecraftSeedGenerator\Background.png')
Label(window,image = background).pack()

#Generate Seed Function
def buttonFunction():
    print("Hello World!")

GenerateSeedButton = Button(window,text="Generate Seed",command=buttonFunction).pack(side=TOP)

window.mainloop()
EavenCS
  • 15
  • 4

0 Answers0