这是我的密码。父窗口打开子窗口打开,但在python中,tkinter锁定了如何打开父窗口
from tkinter import *
root = Tk()
root.title('Registration form')
root.geometry("200x200")
def openaddimage():
addimage = Toplevel(root)
addimage.title("Add image/screenshot below")
addimage.geometry("400x200")
btn2 = Button(root, text='Add Image', width=10, bg='darkblue',
fg='white', command=openaddimage).place(x=170, y=300)
root.mainloop()```
相关问题 更多 >
编程相关推荐