Merhaba. Tkinter ile yaptığım bir kod var 2-3 gündür bu problemi çözmeye çalışıyorum ama olmuyor. Butonların ikisini ayrı ayrı denedim ikisi de çalışıyor ama aynı anda çalışmadılar bir türlü. Bilen arkadaşlar varsa yardım ederse sevinirim. Kod bu:
Kod:
import tkinter as tk
d = 1
def print_hello_world():
print("hello world")
def t_a():
print("2")
d = tk.Tk()
d.attributes("-fullscreen",1)
d.configure(bg="black")
b = tk.Button(d, text="1234", command=print_hello_world(), height=5, width=60, bg="black")
b["font"] = ("Ariel",25)
b["fg"] = ("white")
b.grid(row=0, column=0, padx = 200, pady=450)
y = tk.Button(d, text="1254", command=t_a(), height=5 , width=60,bg="black")
y["font"] = ("Ariel",25)
y["fg"] =("white")
y.grid(row=1, column=1, padx=201, pady=30)
d.mainloop()