MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/self/root/proc/3/cwd/usr/lib/python2.4/lib-tk/tkFont.pyc
mò
‚=5Dc@sÍdZdkZdZdZdZdZd„Zdfd„ƒYZdd	„Z	dd
„Z
edjoaeiƒZ
edd
dddeƒZeiƒGHeidƒGHeidƒGHeiƒGHeidƒGHeidƒGHe
ƒGHeidƒGeidƒGHeiƒGHeddƒZeidƒGeidƒGHeie
dddeƒZeiƒeie
ddde
iƒZeiƒededƒiƒZeideƒeideƒeiƒndS(s0.9NtnormaltromantboldtitaliccCstd|dtƒS(sFGiven the name of a tk named font, returns a Font representation.
    tnametexistsN(tFontRtTrue(R((t#/usr/lib/python2.4/lib-tk/tkFont.pyt
nametofontsRcBsªtZdZd„Zd„Zd„Zeeeed„Zd„Z	d„Z
d„Zd„Zd	„Z
d
„Zed„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)

    cCsQg}x>|iƒD]0\}}|id|ƒ|it|ƒƒqWt|ƒS(Nt-(toptionstkwtitemstktvtappendtstrttuple(tselfRRRR((Rt_set8s
cCs2g}x|D]}|id|ƒq
Wt|ƒS(NR
(RtargsRRR(RRRR((Rt_get?s
cCsGh}x:tdt|ƒdƒD] }||d|||d<qW|S(Niii(RtrangetlenRti(RRRR((Rt_mkdictEs
cKsC|p
ti}n|o(|ii|iidd|ƒƒ}n|i|ƒ}|pdtt|ƒƒ}n||_
|opt|_|i
|iiddƒjotiid|i
f‚n|o |iidd|i
|Œqn&|iidd|i
|Œt|_||_|ii|_|ii|_dS(Ntfonttactualtnamess$named font %s does not already existt	configuretcreate(troottTkintert
_default_rootRttkt	splitlisttcallRRRRRtidRtFalsetdelete_fontt_tkintertTclErrorRt_roott_splitt_call(RR RRRR((Rt__init__Ks&
(		$		cCs|iS(N(RR(R((Rt__str__hscCs |i|ijo
t|tƒS(N(RRtothert
isinstanceR(RR0((Rt__eq__kscCs
|i|ƒS(N(Rtcgettkey(RR4((Rt__getitem__nscCs|ih||<dS(N(RRR4tvalue(RR4R6((Rt__setitem__qscCsKy(|io|idd|iƒnWnttifj
onXdS(NRtdelete(RR(R-RtAttributeErrorR!R*(R((Rt__del__ts

cCst|i|iƒS(s*Return a distinct copy of the current fontN(RRR+R(R((Rtcopy{scCsT|o!|idd|id|ƒSn)|i|i|idd|iƒƒƒSdS(sReturn actual font attributesRRR
N(toptionRR-RRR,(RR<((RRs!cCs|idd|id|ƒS(sGet font attributeRtconfigR
N(RR-RR<(RR<((RR3ˆscKsY|o&|idd|i|i|ƒŒn)|i|i|idd|iƒƒƒSdS(sModify font attributesRR=N(RRR-RRRR,(RR((RR=Œs&cCst|idd|i|ƒƒS(sReturn text widthRtmeasureN(tintRR-Rttext(RR@((RR>˜scGs¥|o,t|idd|i|i|ƒƒƒSno|i|idd|iƒƒ}h}x@tdt	|ƒdƒD]&}t||dƒ|||d<qsW|SdS(s}Return font metrics.

        For best performance, create a dummy widget
        using this font before calling this method.RtmetricsiiiN(RR?RR-RRR,tresRRR(RRRBR((RRAœs,!$(t__name__t
__module__t__doc__RRRtNoneR'R.R/R2R5R7R:R;RR3R=RR>RA(((RR!s"												
	cCs3|p
ti}n|ii|iiddƒƒS(sGet font families (as a tuple)RtfamiliesN(R R!R"R#R$R%(R ((RRG­s
cCs3|p
ti}n|ii|iiddƒƒS(s'Get names of defined fonts (as a tuple)RRN(R R!R"R#R$R%(R ((RR³s
t__main__tfamilyttimestsizeitweightthellot	linespaceRtCourieriR@sHello, worldsQuit!tcommand(ROiR(t__version__R!tNORMALtROMANtBOLDtITALICR	RRFRGRRCtTkR tfRR=R3R>RAtLabeltwtpacktButtontdestroyR;tfbtmainloop(RR!RTRRRWR]R	RYRSRRURGRQR ((Rt?s>		Œ