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.Window.ChildrenRepositioningGuard
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

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

phoenix_title wx.Window.ChildrenRepositioningGuard¶

Helper for ensuring EndRepositioningChildren is called correctly.

This class wraps the calls to BeginRepositioningChildren and EndRepositioningChildren by performing the former in its constructor and the latter in its destructor if, and only if, the first call returned True. This is the simplest way to call these methods and if this class is created as a local variable, it also ensures that EndRepositioningChildren is correctly called (or not) on scope exit, so its use instead of calling these methods manually is highly recommended.

Added in version 2.9.5.


class_hierarchy Class Hierarchy¶

Inheritance diagram for class ChildrenRepositioningGuard:

Inheritance diagram of ChildrenRepositioningGuard


method_summary Methods Summary¶

__init__

Constructor calls wx.Window.BeginRepositioningChildren .


api Class API¶

class wx.Window.ChildrenRepositioningGuard(object)¶

Possible constructors:

ChildrenRepositioningGuard(win) -> None

Helper for ensuring EndRepositioningChildren() is called correctly.


Methods¶

__init__(self, win)¶

Constructor calls wx.Window.BeginRepositioningChildren .

Parameters:

win (wx.Window) – The window to call BeginRepositioningChildren on. If it is nullptr, nothing is done.

Return type:

None

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — 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.