gpt4 book ai didi

python - 增加 tkSimpleDialog 窗口大小

转载 作者:行者123 更新时间:2023-12-03 21:32:28 24 4
gpt4 key购买 nike

如何增加或定义 tkSimpleDialog 框的窗口大小?

import Tkinter, tkSimpleDialog
root = Tkinter.Tk()
root.withdraw()
test = tkSimpleDialog.askstring("testing", "Enter your search string text")
print test

最佳答案

使第二个参数尽可能大:

import Tkinter, tkSimpleDialog
root = Tkinter.Tk()
root.withdraw()
test = tkSimpleDialog.askstring("testing", "Enter your search string text in the space provided")
print test

关于python - 增加 tkSimpleDialog 窗口大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33417449/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com