import tkinter as tk
from tkinter import *
pencere = tk.tk()
pencere2 = Toplevel(bg="red")
buton = Button(text="ok")
buton.pack()
pencere.mainloop()
Yukarıdaki gibi bir kod yazdım. Lakin kod çalıştığında buton 1. pencerede oluyo ben 2.pencerede olmasını istyiyorum.
Bunu nasıl düzeltebilirim? Yardımcı olursanız sevinirim.