Generation

generate functionSun, 12 Feb 2023

input text using PySimpleGUI with defalt

def enterText(prompt='Enter text'): event, values = sg.Window('Get filename example', [[sg.Text(prompt)], [sg.Input(), sg.FileBrowse()], [sg.OK(), sg.Cancel()]]).read(close=True) return values[0]

Questions about programming?Chat with your personal AI assistant