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¶Possible constructors:
ChildrenRepositioningGuard(win) -> None
Helper for ensuring EndRepositioningChildren() is called correctly.
Constructor calls wx.Window.BeginRepositioningChildren
.
win (wx.Window) â The window to call BeginRepositioningChildren
on. If it is None
, nothing is done.
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