Dialog.getResponseForWidget

int getResponseForWidget(gtk.widget.Widget widget)

Gets the response id of a widget in the action area of a dialog.

Parameters

widgeta widget in the action area of dialog

Returns

the response id of widget, or [gtk.types.ResponseType.None]

if widget doesn’t have a response id set.

Deprecated

Use [gtk.window.Window] instead