Widget.isFocus
bool isFocus()Determines if the widget is the focus widget within its toplevel.
This does not mean that the gtk.widget.Widget.hasFocus property is necessarily set; gtk.widget.Widget.hasFocus will only be set if the toplevel widget additionally has the global input focus.
Returns
true if the widget is the focus widget.