tkinter 直接运行messagebox, Entry不能点击?

from tkinter import *
import tkinter.messagebox as messagebox

window = Tk()
window.title('倒计时')
window.geometry('800x500')

chongjian_yanshi=IntVar(value=3)
Label(window, text='写入数值').place(x=137, y=100, anchor='nw')
Entry(window,textvariable = chongjian_yanshi,show=None,width=4).place(x=190,y=100,anchor='nw')

# 执行下面弹窗后,上面的Entry输入框不能编辑??
messagebox.showinfo(title='信息', message='hahaha')

window.mainloop()

 

查看全部
weixin_44864723
weixin_44864723
2020/12/03 14:03
  • python
  • 点赞
  • 收藏
  • 回答
    私信

1个回复