Hi,
I just wonder if there is a convenient way to separate the action clicking OK button from the action closing the window in a simple Zen message box where you only have the OK button? The window will return None in both cases and I would prefer that the closing of the window would result in an abortion of the script.
Kind regards
Fredrik Olsson
Possible to differentiate between clicking OK button and clicking closing window?
not directly, but there is a workaround:if there is a convenient way to separate the action clicking OK button from the action closing the window in a simple Zen message box
Code: Select all
click = Zen.Windows.ShowTextBox("Question","Continue with Ok, else exit")
print click