:right-sidebar: True ButtonsType =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: ButtonsType :no-contents-entry: Prebuilt sets of buttons for ``GtkDialog``. If none of these choices are appropriate, simply use :const:`~gi.repository.Gtk.ButtonsType.NONE` and call :obj:`~gi.repository.Gtk.Dialog.add_buttons`. > Please note that :const:`~gi.repository.Gtk.ButtonsType.OK`, :const:`~gi.repository.Gtk.ButtonsType.YES_NO` > and :const:`~gi.repository.Gtk.ButtonsType.OK_CANCEL` are discouraged by the > `GNOME Human Interface Guidelines `_. Fields ------ .. rst-class:: interim-class .. class:: ButtonsType :no-index: .. attribute:: CANCEL A Cancel button .. attribute:: CLOSE A Close button .. attribute:: NONE No buttons at all .. attribute:: OK An OK button .. attribute:: OK_CANCEL OK and Cancel buttons .. attribute:: YES_NO Yes and No buttons