Dialog.addButton

gtk.widget.Widget addButton(string buttonText, int responseId)

Adds a button with the given text.

GTK arranges things so that clicking the button will emit the [gtk.dialog.Dialog.response] signal with the given response_id. The button is appended to the end of the dialog’s action area. The button widget is returned, but usually you don’t need it.

Parameters

buttonTexttext of button
responseIdresponse ID for the button

Returns

the [gtk.button.Button] widget that was added

Deprecated

Use [gtk.window.Window] instead