ret = tk_yesnocancel(text [, default]) Open a window with 'text' printed and asking for YES, NO or CANCEL the default being 'default'. The return value is 0 for YES, 1 for NO and 2 for CANCEL (the default if 'default' is not specified) see also: tk_dialog