i have this code and i would like to know whether the user clicks ok or cancel.
import ctypes
def Mbox(title, text, style):
return ctypes.windll.user32.MessageBoxW(0, text, title, style)
Mbox('User Input', 'Click OK to continue or Cancel to stop', 1)
If anyone knows how to store the users input to continue the code in one of two ways ("Ok" leads to one path of code and "Cancel" leads to another path of code) please tell me.