python - How to create a message box with tkinter? -
I'm trying to create a fairly simple message box in the "Yes" and "No" "If I push the button internally then he should go and write YES in a file. Similarly, when "no" is pushed, then a file should be written in. how can I do this?
You can use the module for this version for Python 2.7 or Python 3. It's called tkinter.messagebox
.
It looks like inquiry ()
is the function that you want it to be the string "yes"
or "no" / Code> will also return.
Comments
Post a Comment