InfoBar.addButton

Adds a button with the given text and sets things up so that clicking the button will emit the “response” signal with the given response_id. The button is appended to the end of the info bars's action area. The button widget is returned, but usually you don't need it.

class InfoBar
addButton
(
string buttonText
,)

Parameters

buttonText string

text of button

responseId int

response ID for the button

Return Value

Type: gtk.button.Button

the #GtkButton widget that was added