Python Forum

Full Version: Ctypes module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to use messagebox for database. And my question is how can i use parameter in messagebox icon.
for example:
when user click on OK button or Cancel button program should do sth.

Code:
import tkinter
import tkinter.messagebox as mbox




window = tkinter.Tk()
window.wm_withdraw()
mbox.askyesno('my app','my message')
Have a look here:http://effbot.org/tkinterbook/tkinter-st...ialogs.htm
    if tkMessageBox.askyesno("Print", "Print this report?"):
        report.print()