nfc@sdZddlZdZdZdZdZdZddd YZdd Z dd Z e d krej Z ed ddddeZejGHejd GHejdGHejGHejd GHejdGHe GHejdGejdGHejGHeddZejdGejdGHeje dddeZejeje ddde jZejededjZejdeejdeejndS(s0.9iNtnormaltromantboldtitaliccCstd|dtS(sFGiven the name of a tk named font, returns a Font representation. tnametexists(tFonttTrue(R((s%/usr/lib64/python2.7/lib-tk/tkFont.pyt nametofontsRcBseZdZdZdZdZdddedZdZ dZ dZ dZ d Z d Zdd Zd Zd ZeZdZdZRS(sRepresents a named font. Constructor options are: font -- font specifier (name, system font, or (family, size, style)-tuple) name -- name to use for this font configuration (defaults to a unique name) exists -- does a named font by this name already exist? Creates a new named font if False, points to the existing font if True. Raises _Tkinter.TclError if the assertion is false. the following are ignored if font is specified: family -- font 'family', e.g. Courier, Times, Helvetica size -- font size in points weight -- font thickness: NORMAL, BOLD slant -- font slant: ROMAN, ITALIC underline -- font underlining: false (0), true (1) overstrike -- font strikeout: false (0), true (1) cCsQg}x>|jD]0\}}|jd||jt|qWt|S(Nt-(titemstappendtstrttuple(tselftkwtoptionstktv((s%/usr/lib64/python2.7/lib-tk/tkFont.pyt_set/s cCs2g}x|D]}|jd|q Wt|S(NR (R R (RtargsRR((s%/usr/lib64/python2.7/lib-tk/tkFont.pyt_get6s cCsGi}x:tdt|dD] }||d|||dN(R+RRRR*(RR((s%/usr/lib64/python2.7/lib-tk/tkFont.pyR>s cCst|jdd|j|S(sReturn text widthRtmeasure(tintR+R(Rttext((s%/usr/lib64/python2.7/lib-tk/tkFont.pyR?scGs|r.t|jdd|j|j|S|j|jdd|j}i}x@tdt|dD]&}t||d|||dRR?RB(((s%/usr/lib64/python2.7/lib-tk/tkFont.pyRs"           cCs1|stj}n|jj|jjddS(sGet font families (as a tuple)Rtfamilies(RR R!R"R#(R,((s%/usr/lib64/python2.7/lib-tk/tkFont.pyRHs cCs1|stj}n|jj|jjddS(s'Get names of defined fonts (as a tuple)RR(RR R!R"R#(R,((s%/usr/lib64/python2.7/lib-tk/tkFont.pyRs t__main__tfamilyttimestsizeitweightthellot linespaceRtCourieriRAs Hello, worldsQuit!tcommand((RPiR(t __version__RtNORMALtROMANtBOLDtITALICRRRGRHRRDtTkR,tfRR>R2R?RBtLabeltwtpacktButtontdestroyR<tfbtmainloop(((s%/usr/lib64/python2.7/lib-tk/tkFont.pyt s>