X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b881fc787d2823bdd8a415080b82feee90804a17..3d2d9036037d9ee51f47d878c3dcef4af4a6ef41:/wxPython/wx/lib/anchors.py diff --git a/wxPython/wx/lib/anchors.py b/wxPython/wx/lib/anchors.py index af7cd8abfe..d90eebf67e 100644 --- a/wxPython/wx/lib/anchors.py +++ b/wxPython/wx/lib/anchors.py @@ -15,23 +15,27 @@ # o Updated for wx namespace # o Tested with updated demo # +""" +`LayoutAnchors` is a class that implements Delphi's Anchors using +`wx.LayoutConstraints`. +""" import wx class LayoutAnchors(wx.LayoutConstraints): - """ A class that implements Delphi's Anchors with wx.LayoutConstraints. + """ + A class that implements Delphi's Anchors with wx.LayoutConstraints. - Anchored sides maintain the distance from the edge of the - control to the same edge of the parent. - When neither side is selected, the control keeps the same - relative position to both sides. + Anchored sides maintain the distance from the edge of the control + to the same edge of the parent. When neither side is selected, + the control keeps the same relative position to both sides. - The current position and size of the control and it's parent - is used when setting up the constraints. To change the size or - position of an already anchored control, set the constraints to - None, reposition or resize and reapply the anchors. + The current position and size of the control and it's parent is + used when setting up the constraints. To change the size or + position of an already anchored control, set the constraints to + None, reposition or resize and reapply the anchors. - Examples: + Examples:: Let's anchor the right and bottom edge of a control and resize it's parent. @@ -59,6 +63,7 @@ class LayoutAnchors(wx.LayoutConstraints): | +-------*-------+ | +-------------------+ * = anchored edge + """ def __init__(self, control, left=1, top=1, right=0, bottom=0): wx.LayoutConstraints.__init__(self)