Gtk.AlertDialog.get_cancel_button – gtk4 Reference Manual
Packages
gtk4
Gtk
AlertDialog
buttons
cancel_button
default_button
detail
message
modal
AlertDialog
choose
get_buttons
get_cancel_button
get_default_button
get_detail
get_message
get_modal
set_buttons
set_cancel_button
set_default_button
set_detail
set_message
set_modal
show
get_cancel_button
Description:
public
int
get_cancel_button
()
Returns the index of the cancel button.
Parameters:
this
an alert dialog
Returns:
the index of the cancel button, or -1