;ò ó‡iBc@sndkZdeifdeifdeifdeifdeifdeifdeifdeifd ei fd ei fd ei fd ei fd ei fdeifdeifgZdkZdeifd„ƒYZdeifd„ƒYZd„ZdZedjoPdkZdkZdkZeideiieidƒgeidƒndS(Nswx.ANDs wx.AND_INVERTswx.AND_REVERSEswx.CLEARswx.COPYswx.EQUIVs wx.INVERTswx.NANDswx.NO_OPswx.ORs wx.OR_INVERTs wx.OR_REVERSEswx.SETs wx.SRC_INVERTswx.XORsTestMaskWindowcBstZd„Zd„ZRS(NcCsðtii||dƒ|itidddƒƒtiƒ|_ tiƒ|_ ti ƒ|_ ti |i ƒ}|i i|ƒtiƒ|_ti |itiƒ}|ii|ƒ|iddddddƒ|iti|iƒdS(Niÿÿÿÿii€ii¼iÌ(swxsScrolledWindows__init__sselfsparentsSetBackgroundColoursColoursimagessgetTestStar2Bitmaps bmp_nomasks bmp_withmasksgetTestMaskBitmaps bmp_themasksMasksmasksSetMasksbmp_withcolourmasksWHITEs SetScrollbarssBinds EVT_PAINTsOnPaint(sselfsparentsmask((sd/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Mask.pys__init__ sc Cs|itidddƒƒti|ƒ}|i|ƒ|itiƒ|i ti ƒx2t dƒD]$}|i d|d|ddƒqeW|idddƒ|i|idddƒ|idddƒ|i|iddd ƒ|id dd ƒ|i|idd dƒ|id ddƒ|i|iddd ƒ|iiƒ|iiƒf\}} tiƒ}d}x”tD]Œ\}}dd|ddd|df\} }|i|| |dƒ|i|iƒ|i | ||| |dd|t!ƒ |d }qzWdS(Nii€idi soriginal imageiswith colour maskixisthe mask imageiÈiÜs masked imagei,i@i–i("sselfsSetBackgroundColourswxsColoursPaintDCsdcs PrepareDCsSetTextForegroundsWHITEsSetPensMEDIUM_GREY_PENsrangesisDrawLinesDrawTexts DrawBitmaps bmp_nomasksbmp_withcolourmasks bmp_themasks bmp_withmasksGetWidths GetHeightscxscysMemoryDCsmdcs logicListstextscodesxsys SelectObjectsBlitsTrue( sselfsescodesismdcsdcscxstextsysxscy((sd/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Mask.pysOnPaint<s4  "$  *%(s__name__s __module__s__init__sOnPaint(((sd/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Mask.pysTestMaskWindows s TestPanelcBstZd„Zd„ZRS(NcCs?tii|||ƒt|ƒ|_|iti |i ƒdS(N( swxsPanels__init__sselfsparentsIDsTestMaskWindowswinsBindsEVT_SIZEsOnSize(sselfsparentsID((sd/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Mask.pys__init__bscCs|ii|iƒƒdS(N(sselfswinsSetSizesevtsGetSize(sselfsevt((sd/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Mask.pysOnSizegs(s__name__s __module__s__init__sOnSize(((sd/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Mask.pys TestPanelas cCst|dƒ}|SdS(Niÿÿÿÿ(s TestPanelsnbswin(sframesnbslogswin((sd/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Mask.pysrunTestmssThis class encapsulates a monochrome mask bitmap, where the masked area is black and the unmasked area is white. When associated with a bitmap and drawn in a device context, the unmasked area of the bitmap will be drawn, and the masked area will not be drawn. This example shows not only how to create a Mask, but the effects of the Device Context (dc) Blit() method's logic codes. s__main__sii( swxsANDs AND_INVERTs AND_REVERSEsCLEARsCOPYsEQUIVsINVERTsNANDsNO_OPsORs OR_INVERTs OR_REVERSEsSETs SRC_INVERTsXORs logicListsimagessScrolledWindowsTestMaskWindowsPanels TestPanelsrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv( ssyssrunsTestMaskWindowsoverviews logicListsrunTestsimagesswxsoss TestPanel((sd/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/Mask.pys?s º B