EventControllerFocus
-
class EventControllerFocus(**properties: Any)
Superclasses: EventController, Object
GtkEventControllerFocus is an event controller to keep track of
keyboard focus.
The event controller offers enter
and leave signals, as well as
is_focus and
contains_focus properties
which are updated to reflect focus changes inside the widget hierarchy
that is rooted at the controllers widget.
Constructors
-
class EventControllerFocus
-
classmethod new() → EventController
Creates a new event controller that will handle focus events.
Methods
-
class EventControllerFocus
-
contains_focus() → bool
Returns True if focus is within self or one of its children.
-
is_focus() → bool
Returns True if focus is within self, but not one of its children.
Properties
-
class EventControllerFocus
-
props.contains_focus: bool
The type of the None singleton.
-
props.is_focus: bool
The type of the None singleton.
Signals
-
class EventControllerFocus.signals
-
enter() → None
The type of the None singleton.
-
leave() → None
The type of the None singleton.