A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://wxpython.org/Phoenix/docs/html/wx.Window.ChildrenRepositioningGuard.html below:

wx.Window.ChildrenRepositioningGuard — wxPython Phoenix 4.2.4a1 documentation

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¶

Inheritance diagram for class

ChildrenRepositioningGuard

:

Methods Summary¶ 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 None, nothing is done.

Return type:

None


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4