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

Popular posts from this blog

c# - PInvoke of NetUserAdd returns 24 -

actionscript 2 - getURL action script 2 and IE 7/8 -