;ò ŽÏ¥Cc@s’dkZdeifd„ƒYZd„ZdZedjoPdkZdkZdkZei dei i ei dƒgei dƒndS( NsTestLayoutConstraintscBstZd„Zd„ZRS(NcCs tii||dƒ|itƒ|iti|i ddƒ|i ti dƒƒti |ddti ƒ|_|ii tiƒti|iddddfddfƒ}|i tiƒ|itiƒtiƒ}|ii|tid ƒ|ii|tid ƒ|ii|tid ƒ|ii|tidƒ|ii |ƒti |ddti ƒ|_!|i!i ti"ƒtiƒ}|ii|tid ƒ|ii|tid ƒ|ii|tid ƒ|ii#|id ƒ|i!i |ƒti |ddti ƒ|_$|i$i tiƒtiƒ}|ii%|i!d ƒ|ii|tid ƒ|ii|tid ƒ|ii#|id ƒ|i$i |ƒti&|idd ƒ}tiƒ}|i(i|iti)ƒ|i*i|iti+ƒ|i,i-ƒ|i.i|iti/dƒ|i |ƒti&|i!dd ƒ}tiƒ}|ii|i!tid ƒ|ii|i!tidƒ|i,i-ƒ|i.i-ƒ|i |ƒti |i$ddti ƒ|_0|i0i ti1ƒti|i0ddddfƒi ti1ƒti&|i$ddƒ}tiƒ}|ii%|i0ƒ|ii#|i0ƒ|i,i-ƒ|i.i-ƒ|i |ƒtiƒ}|ii|i$ti2dƒ|ii|i$ti/dƒ|i,i|ti2ƒ|i.i|ti/ƒ|i0i |ƒdS(Niÿÿÿÿsidids MEDIUM ORCHIDsstylesRResize the window and see what happens... Notice that there is no OnSize handler.ii2i is Panel A s Panel B iisPanel Ds Panel C (3swxsPanels__init__sselfsparents SetAutoLayoutsTruesBinds EVT_BUTTONsOnButtonsSetBackgroundColours NamedColoursWindows SIMPLE_BORDERspanelAsBLUEs StaticTextstxtsSetForegroundColoursWHITEsLayoutConstraintsslcstopsSameAssTopsleftsLeftsbottomsBottomsrights PercentOfsRightsSetConstraintsspanelBsREDsRightOfspanelCsBelowsButtonsbscentreXsCentreXscentreYsCentreYsheightsAsIsswidthsWidthspanelDsGREENsHeight(sselfsparentsbslcstxt((sq/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/LayoutConstraints.pys__init__s~           !+     cCstiƒdS(N(swxsBell(sselfsevent((sq/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/LayoutConstraints.pysOnButton[s(s__name__s __module__s__init__sOnButton(((sq/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/LayoutConstraints.pysTestLayoutConstraintss TcCst|ƒ}|SdS(N(sTestLayoutConstraintssnbswin(sframesnbslogswin((sq/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/LayoutConstraints.pysrunTestas sÛ Objects of this class can be associated with a window to define its layout constraints, with respect to siblings or its parent.

The class consists of the following eight constraints of class wxIndividualLayoutConstraint, some or all of which should be accessed directly to set the appropriate constraints.

Most constraints are initially set to have the relationship wxUnconstrained, which means that their values should be calculated by looking at known constraints. The exceptions are width and height, which are set to wxAsIs to ensure that if the user does not specify a constraint, the existing width and height will be used, to be compatible with panel items which often have take a default size. If the constraint is wxAsIs, the dimension will not be changed. s__main__sii( swxsPanelsTestLayoutConstraintssrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv(ssyssrunsoverviewsrunTestswxsossTestLayoutConstraints((sq/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/LayoutConstraints.pys?s [ '