wx.ChildFocusEvent

Inheritance diagram for wx.ChildFocusEvent:



Description

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.

Note

Notice that child window is the direct child of the window receiving event. Use FindFocus to retreive the window which is actually getting focus.

Derived From

Event Name Description
wx.EVT_CHILD_FOCUS(func) Process a wx.wxEVT_CHILD_FOCUS event.

Methods Summary

Properties Summary

Class API

Methods

__init__(win=None)

Constructor.

Parameters:

  • win (wx.Window): The direct child which is (or which contains the window which is) receiving the focus.

Returns:

wx.ChildFocusEvent


GetWindow()

The window, or (grand)parent of the window which has just received the focus.


Returns:

wx.Window

Note

To get the actually focused control use wx.Window.FindFocus


Properties

Window
See GetWindow