Dialog.setDefaultResponse

void setDefaultResponse(int responseId)

Sets the default widget for the dialog based on the response ID.

Pressing “Enter” normally activates the default widget.

Parameters

responseIda response ID

Deprecated

Use gtk.window.Window instead