input - Closing a Tkinter Entry Box in Python -
I am trying to create a simple popup text entry for the user in which a user enters a text and submits Does (one button) When I click on submit, I want to close the popup entry box and continue with the rest of the code. The sample code to display below is what I've taken: I do not have much experience with the tanker, so I'm not sure where and how to do the proper function to close the entry. The user then hits 'Submit', my guess is that it should be inside the If I understand you correctly, you just need to call the root window method at the end Therefore, it is equivalent to manually clicking the X button in the corner of the window. getName () function?
getName function:
def getName (): print ent.get () root.destroy ()
Comments
Post a Comment