[CODE lang="python" title="Arkaplan" highlight="36"]
# Import module
from tkinter import *
# Create object
root = Tk()
# Adjust size
root.geometry("400x400")
# Add image file
bg = PhotoImage(file = "p.png" )
# Show image using label
label1 = Label( root, image = bg)
label1.place(x = 0, y = 0)
label2 = Label( root, text = "Welcome")
label2.pack(pady = 50)
# Create Frame
frame1 = Frame(root)
frame1.pack(pady = 20 )
# Add buttons
button1 = Button(frame1,text="Exit")
button1.pack(pady=20)
button2 = Button( frame1, text = "Start")
button2.pack(pady = 20)
button3 = Button( frame1, text = "Reset")
button3.pack(pady = 20)
# Execute tkinter
root.mainloop()[/CODE]
Şöyle bir şey buldum. Çok kurcalamadım
Direkt ilk çıkanı uyguladım.
[CODE lang="python" title="Arkaplan2" highlight="19"]
# Import module
from tkinter import *
# Create object
root = Tk()
# Adjust size
root.geometry("400x400")
# Add image file
bg = PhotoImage(file = "p.png" )
# Show image using label
label1 = Label( root, image = bg)
label1.place(x = 50, y = 50)
# Execute tkinter
root.mainloop()[/CODE]
Böyle düzenledim