Widget.hasDefault

bool hasDefault()

Determines whether widget is the current default widget within its toplevel. See [gtk.widget.Widget.setCanDefault].

Returns

true if widget is the current default widget within

its toplevel, false otherwise