Two independent root windows

import Tkinter
from Tkinter import Tk, Button
Tkinter.NoDefaultRoot()
win1 = Tk()
win2 = Tk()
Button(win1, text='Button 1', command=win1.destroy).pack()
Button(win2, text='Button 2', command=win2.destroy).pack()
win1.mainloop()
Related examples in the same category