AlertDialog.chooseFinish

int chooseFinish(gio.async_result.AsyncResult result)

Finishes the gtk.alert_dialog.AlertDialog.choose call and returns the index of the button that was clicked.

Parameters

resulta gio.async_result.AsyncResult

Returns

the index of the button that was clicked, or -1 if

the dialog was cancelled and gtk.alert_dialog.AlertDialog.cancelButton is not set

Throws