import sysfrom Tkinter import Toplevel, Button, Labelwin1 = Toplevel()win2 = Toplevel()Button(win1, text='Button 1', command=sys.exit).pack()Button(win2, text='Button 2', command=sys.exit).pack()Label(text='Popups').pack() win1.mainloop()