To be honest i am very new to python and i have written some scripts with the help from everyone but i stumbled onto something that i can't find anywhere. I'm trying to create a pysimplegui script that will present a input text for the user to type a name and a submit or cancel button. Cancel button will terminate the script right away but if the user presses submit then it will take the value from the input text, and create a directory on a location with that name
For example: The user typed "test", then pressed submit and finally it will create the "test" directory in the c:\
This is the simple GUI i have:
layout = [[sg.Text('Please enter the name of the directory:')],[sg.InputText()],
[sg.Submit(), sg.Cancel()]]
window = sg.Window('directory creator', layout)
PS, been lurking around the website but decided to sign up and ask the question