: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 The type of the None singleton. .. attribute:: CLOSE The type of the None singleton. .. attribute:: NONE The type of the None singleton. .. attribute:: OK The type of the None singleton. .. attribute:: OK_CANCEL The type of the None singleton. .. attribute:: YES_NO The type of the None singleton.