[英]How I increase my box of inputText in pysimplegui?
input = [
[sg.Text("Type your text")],
[sg.InputText(key='text', size=(200,200), expand_y=True)],
[sg.Button("Sent")]
]
wInput = sg.Window("Exercicio Python", input, size=(400,450))
while True:
events, values = wInput.read()
if events == sg.WINDOW_CLOSED:
break
expand_y=boolean 和 expand_x=boolean 将拉伸 x 宽度和 y 高度的项目。 尝试将两者都添加到您的 InputText 并将 x 添加到您的按钮。 请告诉我它是否对您有用;-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.