tkinter tkMessageBox close programatically

Post here if you need help with creating a Graphical User Interface in Python.

tkinter tkMessageBox close programatically

Postby manuel » Tue Nov 26, 2013 11:07 am

I have a tkMessageBox poping up on an event,

I need to dismiss this messageBox when the user clicks ok or cancel which is working ok

but now I need to dismiss the messageBox programatically as well

is there a method to dismiss the pop up?

thanks!

here the code to open the pop up

Code: Select all
 def showPopUp(self): 

    result = tkMessageBox.askokcancel(title="", message="Help Request Submitted \nFirst floor")
    if result is True:
        print ("User clicked Ok")
    else:
        print ("User clicked Cancel")



so how to make it a property, and close it programatically?

thanks!
Last edited by Yoriz on Tue Nov 26, 2013 11:11 am, edited 1 time in total.
Reason: first post lock
manuel
 
Posts: 1
Joined: Tue Nov 26, 2013 11:03 am

Return to GUI

Who is online

Users browsing this forum: ZeSta and 2 guests