【发布时间】:2021-12-06 16:24:10
【问题描述】:
这是我的窗口代码:
# Creating the GUI window.
sg.theme('DarkAmber') # Add a touch of color
# All the stuff inside your window.
lengthOfInputBar = 40 # Length of the bar where inputs are entered.
layout = [ [sg.Text(text='Valgrind Message .txt File Location'),
sg.Input(default_text='', size=(lengthOfInputBar, 1),
enable_events=True, key='-VALGRIND_OUTPUT_TXT_INP-'),
sg.FileBrowse(file_types=[('TXT (*.txt)', '*.txt')])] ]
我该怎么做?
【问题讨论】:
标签: python input window pysimplegui