Idea: get input() to display modal dialog to enter text
Lorp last edited by
I ran the idea past Frederik and he suggested trying Variable(). Compare:
print ("What is the sample text?") Variable([ dict(name="sampleText", ui="EditText") ], globals()) print (sampleText)
sampleText = input("What is the sample text?") print (sampleText)
I know I’ll never remember the first construction The Variable() dialog hangs around even after I have got the user input, which isn’t a nice experience. When the user closes the dialog, it’s gone forever.