;ò §°½Cc@sŸdkZdklZdeifd„ƒYZd„ZdZedjoPdkZdk Z dk Z e i de i i eidƒgeid ƒndS( N(sstattexts TestPanelcBs#tZd„Zd„Zd„ZRS(NcCsètii||dƒ||_ti|ddƒ}|iti |i |ƒt i |ddƒ|_ |i itiƒ|i iƒ|_ti|_tiddddddƒ}|id ƒ|id ƒ|i|ƒ|i|i d titiBƒ|id d fƒ|id d fƒ|iti|dd ƒƒti|dd ƒ|_|iiƒ}|itiƒ|ii |ƒ|i|id tiƒ|iti|ddƒƒti|dd ƒ|_!|i!i |ƒ|i|i!d tiƒ|iti|ddƒƒti|dd ƒ|_"|i"i |ƒ|i|i"d tiƒ|iti|ddƒƒti|dd ƒ|_#|i#i |ƒ|i|i#d tiƒ|iti|ddƒƒti|dd ƒ|_$|i$i |ƒ|i|i$d tiƒ|id d fƒ|id d fƒ|iti|ddƒƒti|dd ƒ|_%|i%i |ƒ|i|i%d tiƒti&ti'ƒ}|i|d titiBti)Bdƒ|i*|ƒ|i+ƒdS(Niÿÿÿÿs Select Fonts Sample Textscolsisvgapishgapiiis PointSize:ssFamily:sStyle:sWeight:sFace:swx.NativeFontInfo:i(,swxsPanels__init__sselfsparentslogsButtonsbtnsBinds EVT_BUTTONs OnSelectFontsstattexts GenStaticTexts sampleTextsSetBackgroundColoursWHITEsGetFontscurFontsBLACKscurClrs FlexGridSizersfgssAddGrowableColsAddGrowableRowsAddsADJUST_MINSIZEsGROWs StaticTextspssfonts SetWeightsBOLDsSetFontsfamilysstylesweightsfacesnfisBoxSizersVERTICALssizersALLsSetSizersUpdateUI(sselfsparentslogsfontssizersfgssbtn((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FontDialog.pys__init__sZ      &&' cCsÖ|ii|iƒ|ii|iƒ|iit|ii ƒƒƒ|i i|ii ƒƒ|i i|ii ƒƒ|ii|iiƒƒ|ii|iiƒƒ|ii|iiƒiƒƒ|iƒdS(N(sselfs sampleTextsSetFontscurFontsSetForegroundColourscurClrspssSetLabelsstrs GetPointSizesfamilysGetFamilyStringsstylesGetStyleStringsweightsGetWeightStringsfaces GetFaceNamesnfisGetNativeFontInfosToStringsLayout(sself((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FontDialog.pysUpdateUIHscCsâtiƒ}|itƒ|i|iƒ|i|i ƒti ||ƒ}|i ƒti jos|iƒ}|iƒ}|iƒ}|iid|iƒ|iƒ|iƒfƒ||_ ||_|iƒn|iƒdS(Ns(You selected: "%s", %d points, color %s (swxsFontDatasdatas EnableEffectssTrues SetColoursselfscurClrsSetInitialFontscurFonts FontDialogsdlgs ShowModalsID_OKs GetFontDatas GetChosenFontsfonts GetColourscolourslogs WriteTexts GetFaceNames GetPointSizesGetsUpdateUIsDestroy(sselfsevtsdlgsfontsdatascolour((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FontDialog.pys OnSelectFontTs     /  (s__name__s __module__s__init__sUpdateUIs OnSelectFont(((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FontDialog.pys TestPanels @ cCst||ƒ}|SdS(N(s TestPanelsnbslogswin(sframesnbslogswin((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FontDialog.pysrunTestpss This class allows you to use the system font selection dialog from within your program. Generally speaking, this allows you to select a font by its name, font size, and weight, and on some systems such things as strikethrough and underline. As with other dialogs used in wxPython, it is important to use the class' methods to extract the information you need about the font before you destroy the dialog. Failure to observe this almost always leads to a program failure of some sort, often ugly. This demo serves two purposes; it shows how to use the dialog to GET font information from the user, but also shows how to APPLY that information once you get it. s__main__sii(swxswx.libsstattextsPanels TestPanelsrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv(ssyssrunsoverviewsstattextsrunTestswxsoss TestPanel((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FontDialog.pys?s  i