GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.ChildFocusEvent
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.ChildFocusEvent — wxPython 4.3.2 Docs

phoenix_title wx.ChildFocusEvent¶

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 wx.Window.FindFocus to retrieve the window which is actually getting focus.

events Events Emitted by this Class¶

Handlers bound for the following event types will receive a wx.ChildFocusEvent parameter.

  • EVT_CHILD_FOCUS: Process a wxEVT_CHILD_FOCUS event.

See also

Events and Event Handling


class_hierarchy Class Hierarchy¶

Inheritance diagram for class ChildFocusEvent:

Inheritance diagram of ChildFocusEvent


method_summary Methods Summary¶

__init__

Constructor.

GetWindow

Returns the direct child which receives the focus, or a (grand-)parent of the control receiving the focus.


property_summary Properties Summary¶

Window

See GetWindow


api Class API¶

class wx.ChildFocusEvent(CommandEvent)¶

Possible constructors:

ChildFocusEvent(win=None) -> None

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.


Methods¶

__init__(self, win=None)¶

Constructor.

Parameters:

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

Return type:

None



GetWindow(self)¶

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 wx.Window.FindFocus .

Return type:

wx.Window


Properties¶

Window¶

See GetWindow

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.