1
有没有一种方法可以在GUI中拥有一个默认文本显示的文本框?Python:有没有办法让Entry字段具有默认值?
我想要的文本框将具有“请设置您想要的文件的路径...” 然而,当我运行它 - 如下是空白......
我的代码:
path=StringVar()
textEntry=Entry(master,textvariable=path,text='Please set the path of the file you want...')
textEntry.pack()