Добрый день. Только начал изучить Python, пишу GUI с помощью Tk. Подскажите как сделать что бы при нажатии кнопки открывалось еще одно окно.
# -*- coding: UTF-8 -*-
from Tkinter import *
root=Tk()
root.title('Менеджер исследований')
root.geometry('600x300+300+200')
var=IntVar()
second=Tk()
second.title('Менеджер исследований')
second.geometry('600x300+300+200')
var=IntVar()
rbutton1=Radiobutton(root,text='1',variable=var,value=1)
rbutton2=Radiobutton(root,text='2',variable=var,value=2)
rbutton3=Radiobutton(root,text='3',variable=var,value=3)
rbutton4=Radiobutton(root,text='4',variable=var,value=4)
rbutton5=Radiobutton(root,text='5',variable=var,value=5)
rbutton1.place(x=0,y=10,width=30,height=20)
rbutton2.place(x=0,y=50,width=30,height=20)
rbutton3.place(x=0,y=90,width=30,height=20)
rbutton4.place(x=0,y=130,width=30,height=20)
rbutton5.place(x=0,y=170,width=30,height=20)
text1 = Text()
text2 = Text()
text3 = Text()
text4 = Text()
text5 = Text()
text1.place(x=20,y=10,width=30,height=20)
text2.place(x=20,y=50,width=30,height=20)
text3.place(x=20,y=90,width=30,height=20)
text4.place(x=20,y=130,width=30,height=20)
text5.place(x=20,y=170,width=30,height=20)
text6 = Text()
text7 = Text()
text8 = Text()
text9 = Text()
text10 = Text()
text6.place(x=40,y=10,width=200,height=20)
text7.place(x=40,y=50,width=200,height=20)
text8.place(x=40,y=90,width=200,height=20)
text9.place(x=40,y=130,width=200,height=20)
text10.place(x=40,y=170,width=200,height=20)
text11 = Text()
text12 = Text()
text13 = Text()
text14 = Text()
text15 = Text()
text11.place(x=170,y=10,width=500,height=20)
text12.place(x=170,y=50,width=500,height=20)
text13.place(x=170,y=90,width=500,height=20)
text14.place(x=170,y=130,width=500,height=20)
text15.place(x=170,y=170,width=500,height=20)
button1=Button(root,text='Добавить исследование',bg='lightblue',fg='red',font='arial 14')
button1.place(x=400,y=250,width=50,height=20)
button2=Button(root,text='Просмотр исследования',bg='lightblue',fg='red',font='arial 14')
button2.place(x=460,y=250,width=50,height=20)
root.mainloop()