A child focus event is sent to a (parent-)window when one of its child windows gains focus, so that the window could restore the focus back to its corresponding child if it loses it now and regains later.
Notice that child window is the direct child of the window receiving event. Use Window.FindFocus to retrieve the window which is actually getting focus.
Handlers bound for the following event types will receive a ChildFocusEvent parameter.
See also
__init__ | Constructor. |
GetWindow | Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus. |
A child focus event is sent to a (parent-)window when one of its child windows gains focus, so that the window could restore the focus back to its corresponding child if it loses it now and regains later.
Possible constructors:
ChildFocusEvent(win=None)
Constructor.
Parameters: | win (Window) – The direct child which is (or which contains the window which is) receiving the focus. |
---|
Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus.
To get the actually focused control use Window.FindFocus .
Return type: | Window |
---|