Widget.setCanFocus

Specifies whether widget can own the input focus. See gtk.widget.Widget.grabFocus for actually setting the input focus on a widget.

class Widget
void
setCanFocus
()

Parameters

canFocus bool

whether or not widget can own the input focus.