Widget.hasFocus

Determines if the widget has the global input focus.

See gtk.widget.Widget.isFocus for the difference between having the global input focus, and only having the focus within a toplevel.

class Widget
bool
hasFocus
()

Return Value

Type: bool

true if the widget has the global input focus.