;ò ¤NBc@s’dkZdeifd„ƒYZd„ZdZedjoPdkZdkZdkZei dei i ei dƒgei dƒndS( NsTestSashWindowcBs#tZd„Zd„Zd„ZRS(Nc Csƒtii||dƒ||_g}ti|dtiddfti ti Bƒ}|i ddfƒ|i tiƒ|itiƒ|itidddƒƒ|ititƒ||_|i|iƒƒti|dtiddfti ti Bƒ}|i ddfƒ|i tiƒ|itiƒ|itidddƒƒ|ititƒ||_|i|iƒƒti|dtiddfti ti Bƒ}|i ddfƒ|i tiƒ|itiƒ|itidddƒƒ|iti tƒ|i!dƒti"|dd titi#ti$ti%Bƒ}|i'd ƒ||_(|i|iƒƒti|dtiddfti ti Bƒ}|i ddfƒ|i tiƒ|itiƒ|itidddƒƒ|iti tƒ||_*|i|iƒƒti|dd ti%ƒ|_+|i,ti-|i.d t/|ƒd t0|ƒƒ|i,ti1|i2ƒdS(NiÿÿÿÿiÈiièiÿiixi ss A sub windowsstylesidsid2(3swxsPanels__init__sselfsparentslogswinidssSashLayoutWindowsDefaultPositions NO_BORDERsSW_3DstopwinsSetDefaultSizesSetOrientationsLAYOUT_HORIZONTALs SetAlignments LAYOUT_TOPsSetBackgroundColoursColoursSetSashVisibles SASH_BOTTOMsTrues topWindowsappendsGetIds bottomwins LAYOUT_BOTTOMsSASH_TOPs bottomWindowsleftwin1sLAYOUT_VERTICALs LAYOUT_LEFTs SASH_RIGHTsSetExtraBorderSizesTextCtrls DefaultSizes TE_MULTILINEs SUNKEN_BORDERs textWindowsSetValues leftWindow1sleftwin2s leftWindow2sremainingSpacesBindsEVT_SASH_DRAGGED_RANGEs OnSashDragsminsmaxsEVT_SIZEsOnSize( sselfsparentslogsleftwin1sleftwin2stopwinswinidss textWindows bottomwin((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/SashWindow.pys__init__s^       cCsp|iƒtijo|iidƒdSn|iƒ}||i jo3|iidƒ|i i d|i ƒi fƒnÊ||i jo3|iidƒ|i i |i ƒidfƒn‡||ijo3|iidƒ|ii |i ƒidfƒnD||ijo3|iidƒ|ii d|i ƒi fƒntiƒi||iƒ|iiƒdS(Nsdrag is out of rangestopwin received drag eventièsleftwin1 received drag eventsleftwin2 received drag eventsbottomwin received drag event(sevents GetDragStatusswxsSASH_STATUS_OUT_OF_RANGEsselfslogswritesGetEventObjectseobjs topWindowsSetDefaultSizes GetDragRectsheights leftWindow1swidths leftWindow2s bottomWindowsLayoutAlgorithms LayoutWindowsremainingSpacesRefresh(sselfseventseobj((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/SashWindow.pys OnSashDrag^s$ ####cCstiƒi||iƒdS(N(swxsLayoutAlgorithms LayoutWindowsselfsremainingSpace(sselfsevent((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/SashWindow.pysOnSizeys(s__name__s __module__s__init__s OnSashDragsOnSize(((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/SashWindow.pysTestSashWindows V cCst||ƒ}|SdS(N(sTestSashWindowsnbslogswin(sframesnbslogswin((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/SashWindow.pysrunTest~ssÉwx.SashLayoutWindow responds to OnCalculateLayout events generated by wxLayoutAlgorithm. It allows the application to use simple accessors to specify how the window should be laid out, rather than having to respond to events. The fact that the class derives from wx.SashWindow allows sashes to be used if required, to allow the windows to be user-resizable. The documentation for wx.LayoutAlgorithm explains the purpose of this class in more detail. s__main__sii( swxsPanelsTestSashWindowsrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv(ssyssrunsoverviewsTestSashWindowsrunTestsosswx((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/SashWindow.pys?s x