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++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -