Widget.hasFocus

Determines if the widget has the global input focus. See 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.

Meta

Since

2.18