InfoBar.addButton

Adds a button with the given text (or a stock button, if button_text is a stock ID) 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. Since 2.18

  1. Widget addButton(StockID stockID, int responseId)
  2. Widget addButton(string buttonText, int responseId)
    class InfoBar
    addButton
    (
    string buttonText
    ,)

Parameters

buttonText string

text of button, or stock ID

responseId int

response ID for the button

Return Value

Type: Widget

the button widget that was added. [transfer none]

Meta