%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/lib-tk/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/lib-tk/tkFont.pyo

ó
Mêáac@sÎdZddlZdZdZdZdZd„Zddd	„ƒYZdd
„Z	dd„Z
edkrÊejƒZ
ed
ddddeƒZejƒGHejd
ƒGHejdƒGHejƒGHejd
ƒGHejdƒGHe
ƒGHejdƒGejdƒGHejƒGHeddƒZejdƒGejdƒGHeje
dddeƒZejƒeje
ddde
jƒZejƒededƒjƒZejdeƒejdeƒejƒndS(s0.9iÿÿÿÿNtnormaltromantboldtitaliccCstd|dtƒS(sFGiven the name of a tk named font, returns a Font representation.
    tnametexists(tFonttTrue(R((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt
nametofontsRcBsªeZdZd„Zd„Zd„Zddded„Zd„Z	d„Z
d„Zd„Zd	„Z
d
„Zdd„Zd„Zd
„ZeZd„Zd„ZRS(söRepresents 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)

    cCsig}xV|jƒD]H\}}t|tƒs=t|ƒ}n|jd|ƒ|j|ƒqWt|ƒS(Nt-(titemst
isinstancet
basestringtstrtappendttuple(tselftkwtoptionstktv((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt_set/scCs2g}x|D]}|jd|ƒq
Wt|ƒS(NR	(RR(RtargsRR((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt_get8s
cCsGi}x:tdt|ƒdƒD] }||d|||d<qW|S(Niii(trangetlen(RRRti((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt_mkdict>scKs=|stj}nt|d|ƒ}|rK|j|jdd|ƒƒ}n|j|ƒ}|sydtt|ƒƒ}n||_|röt	|_
|j|j|jddƒƒkrÑtjjd|jf‚n|r|jdd|j|Œqn"|jdd|j|Œt
|_
||_|j|_|j|_dS(Nttktfonttactualtnamess$named font %s does not already existt	configuretcreate(tTkintert
_default_roottgetattrt	splitlisttcallRR
tidRtFalsetdelete_fontt_tkintertTclErrorRt_tkt_splitt_call(RtrootRRRRR((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt__init__Ds(!		$		cCs|jS(N(R(R((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt__str__ascCst|tƒo|j|jkS(N(RRR(Rtother((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt__eq__dscCs
|j|ƒS(N(tcget(Rtkey((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt__getitem__gscCs|ji||6dS(N(R (RR5tvalue((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt__setitem__jscCsWy&|jr%|jdd|jƒnWn*ttfk
rB‚ntk
rRnXdS(NRtdelete(R)R.RtKeyboardInterruptt
SystemExitt	Exception(R((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt__del__ms	
cCst|j|jƒS(s*Return a distinct copy of the current font(RR,R(R((s)/usr/local/lib/python2.7/lib-tk/tkFont.pytcopyvscCsO|r#|jdd|jd|ƒS|j|j|jdd|jƒƒƒSdS(sReturn actual font attributesRRR	N(R.RRR-(Rtoption((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyRzscCs|jdd|jd|ƒS(sGet font attributeRtconfigR	(R.R(RR?((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyR4ƒscKsW|r+|jdd|j|j|ƒŒn(|j|j|jdd|jƒƒƒSdS(sModify font attributesRR@N(R.RRRR-(RR((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyR@‡s
cCst|jdd|j|ƒƒS(sReturn text widthRtmeasure(tintR.R(Rttext((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyRA“scGs |r.t|jdd|j|j|ƒƒƒS|j|jdd|jƒƒ}i}x@tdt|ƒdƒD]&}t||dƒ|||d<qnW|SdS(s}Return font metrics.

        For best performance, create a dummy widget
        using this font before calling this method.RtmetricsiiiN(RBR.RRR-RR(RRtresR((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyRD—s%!$N(t__name__t
__module__t__doc__RRRtNoneR(R0R1R3R6R8R=R>RR4R@R RARD(((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyRs"														
	cCs1|stj}n|jj|jjddƒƒS(sGet font families (as a tuple)Rtfamilies(R"R#RR%R&(R/((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyRJ¨scCs1|stj}n|jj|jjddƒƒS(s'Get names of defined fonts (as a tuple)RR(R"R#RR%R&(R/((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyR®st__main__tfamilyttimestsizeitweightthellot	linespaceRtCourieriRCsHello, worldsQuit!tcommand((RRiR(t__version__R"tNORMALtROMANtBOLDtITALICRRRIRJRRFtTkR/tfRR@R4RARDtLabeltwtpacktButtontdestroyR>tfbtmainloop(((s)/usr/local/lib/python2.7/lib-tk/tkFont.pyt<module>	s>		



Zerion Mini Shell 1.0