so, I have a small program which I run using tkinter. when the user start the program he is asked in the command line to enter a user name. my problem is that after he enters the name, the program starts but it is behind the command window (or pycharm if I use it). I saw that if I don't use the command line to enter the user name, the window pops up when I call root.mainloop() but I have to use the command line becuase if the user name is illegal I want the user to enter a new one.
I tried everyt I looked here how-to-give-tkinter-file-focuse but everything there didn't work as well.
thanks for the help!