Anurag Gupta
Anurag Gupta

Reputation: 1

Take user input with a dialog box during script run crashes python

I am trying to take user input during python script run so I can use it as variable. I can use input() but I want to make a popup dialog box that asks for user input to give it a nice touch. I used easygui library and it does create a popup but after providing input it crashes python. Is there is a simple and elegant way to ask for user input without crashing python?

import easygui
pathname=easygui.enterbox('What is the path name where you want to store file? ')
filename=easygui.enterbox('What is the file you want to use?')
print("the whole file path name is :"+pathname+filename+'.xlsx')

Upvotes: 0

Views: 251

Answers (0)

Related Questions