Python 在Tkinter中导入pywinauto时,窗口大小会更改

Python 在Tkinter中导入pywinauto时,窗口大小会更改,python,tkinter,import,resolution,pywinauto,Python,Tkinter,Import,Resolution,Pywinauto,下面是我的测试代码片段 from tkinter import * master=Tk() master.geometry('640x340') Button(master,text='check').pack() def new(): print('done') from pywinauto import Desktop, Application master.after(1000,new) master.mainloop() 在一秒钟内,创建的tkinter窗口缩小,

下面是我的测试代码片段

from tkinter import *

master=Tk()
master.geometry('640x340')
Button(master,text='check').pack()

def new():
    print('done')
    from pywinauto import Desktop, Application

master.after(1000,new)
master.mainloop()
在一秒钟内,创建的tkinter窗口缩小,按钮也会发生同样的情况。这只是我在尝试构建的应用程序中跟踪此问题后编写的测试代码。谁能告诉我为什么窗户会变大,我能做些什么来防止这种情况

我已经检查了所有我可以,官方文档只提到Tkinter一次,这是指pywinauto的后端,我不认为这是相关的。在第5页