N button confirm dialog.
Call
show() to get it going, then ask for returnValue. It will be I
for button I, 1 based indices! If you specify '' for a button name,
it will be ignored and mess up your button count. The last valid
button value will be used for the 'close the window' value. If you
want to change this behavior, set myWinCloseValue to a positive
value before calling
show().
Buttons specified should be a tuple; e.g., (_("OK"),_("Bad"))
or, in the case of a single button, just a string; e.g., "OK". See
examples at the bottom. You should be able to run this standalone:
python ConfirmDialog as I'm not sure how to
unit test it.