Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
natron / opt / Natron2 / lib / python2.7 / lib-tk / Tkinter.pyo
Size: Mime:
ó
ögWc@sýdZdZddlZejdkr6ddlZnddlZeZejZddlTddl	Tddl
Z
dZeej
ƒZeejƒZejZejZejZyejWnek
r×ee_nXyejWnek
rÿee_nXe
jdƒZe
jdƒZd	„Zd
„Zd„Zy
ejZWnek
rYnXd„Zy
ejZWnek
rƒnXeed
„Z dfd„ƒYZ!da"ea#d„Z$d„Z%dd„Z&da'dfd„ƒYZ(de(fd„ƒYZ)de(fd„ƒYZ*de(fd„ƒYZ+de(fd„ƒYZ,dd„Z-e.Z/eZ0d„Z1d fd!„ƒYZ2d"fd#„ƒYZ3d$fd%„ƒYZ4d&fd'„ƒYZ5d(fd)„ƒYZ6d*e2e6fd+„ƒYZ7eed*dd,„Z8d-fd.„ƒYZ9d/fd0„ƒYZ:d1fd2„ƒYZ;d3e2fd4„ƒYZ<d5e<e9e:e;fd6„ƒYZ=d7e<e6fd8„ƒYZ>d9e=fd:„ƒYZ?d;„Z@d<„ZAd=„ZBd>„ZCed?„ZDd@e=e4e5fdA„ƒYZEdBe=fdC„ƒYZFdDe=e4fdE„ƒYZGdFe=fdG„ƒYZHdHe=fdI„ƒYZIdJe=e4e5fdK„ƒYZJdLe=fdM„ƒYZKdNe=fdO„ƒYZLdPe=fdQ„ƒYZMdRe=fdS„ƒYZNdTe=fdU„ƒYZOdVe=fdW„ƒYZPdXe=e4e5fdY„ƒYZQdZfd[„ƒYZRd\eLfd]„ƒYZSd^fd_„ƒYZTd`eTfda„ƒYZUdbeTfdc„ƒYZVdd„ZWde„ZXdfe=e4fdg„ƒYZYdhe=fdi„ƒYZZdje=fdk„ƒYZ[dle?fdm„ƒYZ\dne?fdo„ƒYZ]dp„Z^e_dqkrùe^ƒndS(rs2Wrapper functions for Tcl/Tk.

Tkinter provides classes which allow the display, positioning and
control of widgets. Toplevel widgets are Tk and Toplevel. Other
widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton,
Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox
LabelFrame and PanedWindow.

Properties of the widgets are specified with keyword arguments.
Keyword arguments have the same name as the corresponding resource
under Tk.

Widgets are positioned with one of the geometry managers Place, Pack
or Grid. These managers can be called with methods place, pack, grid
available in every Widget.

Actions are bound to events by resources (e.g. keyword argument
command) or with the method bind.

Example (Hello, World):
import Tkinter
from Tkconstants import *
tk = Tkinter.Tk()
frame = Tkinter.Frame(tk, relief=RIDGE, borderwidth=2)
frame.pack(fill=BOTH,expand=1)
label = Tkinter.Label(frame, text="Hello, World")
label.pack(fill=X, expand=1)
button = Tkinter.Button(frame,text="Exit",command=tk.destroy)
button.pack(side=BOTTOM)
tk.mainloop()
s$Revision: 81008 $iÿÿÿÿNtwin32(t*is([\\{}])s([\s])cCsdjtt|ƒƒS(sInternal function.t (tjointmapt
_stringify(tvalue((s./lib-tk/Tkinter.pyt_joinAscCst|ttfƒrjt|ƒdkrWt|dƒ}|ddkrgd|}qgqdt|ƒ}n°t|tƒr‹t|dƒ}nt|tƒs©t|ƒ}n|s¸d}nbtj	|ƒrîtj
d|ƒ}tj
d|ƒ}n,|ddks
tj	|ƒrd|}n|S(	sInternal function.iit{s{%s}sutf-8s{}s\\\1t"(t
isinstancetlistttupletlenRRtstrtunicodet	_magic_retsearchtsubt	_space_re(R((s./lib-tk/Tkinter.pyREs$	
cCsbd}xU|D]M}t|ƒttfkr>|t|ƒ}q
|dk	r
||f}q
q
W|S(sInternal function.(N(ttypet	TupleTypetListTypet_flattentNone(Rtrestitem((s./lib-tk/Tkinter.pyR]s
cCs´t|ƒtkr|St|ƒttfkr2|Si}xqt|ƒD]c}y|j|ƒWqEttfk
r§}dG|GHx(|jƒD]\}}|||<qŠWqEXqEW|SdS(sInternal function.s_cnfmerge: fallback due to:N(	RtDictionaryTypetNoneTypet
StringTypeRtupdatetAttributeErrort	TypeErrortitems(tcnfstcnftctmsgtktv((s./lib-tk/Tkinter.pyt	_cnfmergejs	c	Cs²|j|ƒ}t|ƒdr.tdƒ‚nt|ƒ}i}xkt||ƒD]Z\}}t|ƒ}|r‹|ddkr‹|d}n|r ||ƒ}n|||<qPW|S(sReturn a properly formatted dict built from Tcl list pairs.

    If cut_minus is True, the supposed '-' prefix will be removed from
    keys. If conv is specified, it is used to convert values.

    Tcl list is expected to contain an even number of elements.
    isNTcl list representing a dict is expected to contain an even number of elementsit-i(t	splitlistR
tRuntimeErrortitertzipR(	ttkR't	cut_minustconvtttittdicttkeyR((s./lib-tk/Tkinter.pyt
_splitdict~s
tEventcBseZdZRS(sÊContainer for the properties of an event.

    Instances of this type are generated if one of the following events occurs:

    KeyPress, KeyRelease - for keyboard events
    ButtonPress, ButtonRelease, Motion, Enter, Leave, MouseWheel - for mouse events
    Visibility, Unmap, Map, Expose, FocusIn, FocusOut, Circulate,
    Colormap, Gravity, Reparent, Property, Destroy, Activate,
    Deactivate - for window events.

    If a callback function for one of these events is registered
    using bind, bind_all, bind_class, or tag_bind, the callback is
    called with an Event as first argument. It will have the
    following attributes (in braces are the event types for which
    the attribute is valid):

        serial - serial number of event
    num - mouse button pressed (ButtonPress, ButtonRelease)
    focus - whether the window has the focus (Enter, Leave)
    height - height of the exposed window (Configure, Expose)
    width - width of the exposed window (Configure, Expose)
    keycode - keycode of the pressed key (KeyPress, KeyRelease)
    state - state of the event as a number (ButtonPress, ButtonRelease,
                            Enter, KeyPress, KeyRelease,
                            Leave, Motion)
    state - state as a string (Visibility)
    time - when the event occurred
    x - x-position of the mouse
    y - y-position of the mouse
    x_root - x-position of the mouse on the screen
             (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion)
    y_root - y-position of the mouse on the screen
             (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion)
    char - pressed character (KeyPress, KeyRelease)
    send_event - see X/Windows documentation
    keysym - keysym of the event as a string (KeyPress, KeyRelease)
    keysym_num - keysym of the event as a number (KeyPress, KeyRelease)
    type - type of the event as a number
    widget - widget in which the event occurred
    delta - delta of wheel movement (MouseWheel)
    (t__name__t
__module__t__doc__(((s./lib-tk/Tkinter.pyR6•s)cCsdadabdS(s¨Inhibit setting of default root window.

    Call this function to inhibit that the first instance of
    Tk is used for windows without an explicit parent window.
    iN(t_support_default_rootRt
_default_root(((s./lib-tk/Tkinter.pyt
NoDefaultRootÄscCsdS(sInternal function.N((terr((s./lib-tk/Tkinter.pyt_tkerrorÐsicCs1yt|ƒ}Wntk
r#nXt|‚dS(sBInternal function. Calling it will raise the exception SystemExit.N(tintt
ValueErrort
SystemExit(tcode((s./lib-tk/Tkinter.pyt_exitÔs

tVariablecBszeZdZdZdZdddd„Zd„Zd„Zd„Z	d„Z
d„ZeZd„Z
d	„Zd
„ZRS(sºClass to define value holders for e.g. buttons.

    Subclasses StringVar, IntVar, DoubleVar, BooleanVar are specializations
    that constrain the type of the value returned from get().tcCs³|st}n|jƒ|_|j|_|r<||_ndttƒ|_td7a|dk	ru|j|ƒn:|jj	|jj
dd|jƒƒs¯|j|jƒndS(s.Construct a variable

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to "")
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        tPY_VARitinfotexistsN(R;t_rootR.t_tkt_nametreprt_varnumRtsett
getbooleantcallt_default(tselftmasterRtname((s./lib-tk/Tkinter.pyt__init__äs	
'cCs“|jdkrdS|jj|jjdd|jƒƒrP|jj|jƒn|jdk	rx!|jD]}|jj|ƒqiWd|_ndS(sUnset the variable in Tcl.NRGRH(RJRRORPRKtglobalunsetvart_tclCommandst
deletecommand(RRRT((s./lib-tk/Tkinter.pyt__del__üs'cCs|jS(s'Return the name of the variable in Tcl.(RK(RR((s./lib-tk/Tkinter.pyt__str__scCs|jj|j|ƒS(sSet the variable to VALUE.(RJtglobalsetvarRK(RRR((s./lib-tk/Tkinter.pyRN
scCs|jj|jƒS(sReturn value of variable.(RJtglobalgetvarRK(RR((s./lib-tk/Tkinter.pytget
scCsÑt|d|jƒj}tt|ƒƒ}y
|j}Wntk
rJnXy||j}Wntk
ronX|j	j
||ƒ|jdkržg|_n|jj|ƒ|j	j
dd|j||ƒ|S(s
Define a trace callback for the variable.

        MODE is one of "r", "w", "u" for read, write, undefine.
        CALLBACK must be a function which is called when
        the variable is read, written or undefined.

        Return the name of the callback.
        ttracetvariableN(tCallWrapperRRIt__call__RLtidtim_funcRR7RJt
createcommandRWtappendRPRK(RRtmodetcallbacktftcbname((s./lib-tk/Tkinter.pyttrace_variables 	


cCs[|jjdd|j||ƒ|jj|ƒy|jj|ƒWntk
rVnXdS(sÅDelete the trace callback for a variable.

        MODE is one of "r", "w", "u" for read, write, undefine.
        CBNAME is the name of the callback returned from trace_variable or trace.
        R^tvdeleteN(RJRPRKRXRWtremoveR@(RRRfRi((s./lib-tk/Tkinter.pyt
trace_vdelete*s
cCs4t|jj|jj|jjdd|jƒƒƒS(s&Return all trace callback information.R^tvinfo(RRJtsplitR*RPRK(RR((s./lib-tk/Tkinter.pyttrace_vinfo6scCs(|jj|jjko'|j|jkS(s•Comparison for equality (==).

        Note: if the Variable's master matters to behavior
        also compare self._master == other._master
        (t	__class__R7RK(RRtother((s./lib-tk/Tkinter.pyt__eq__:sN(R7R8R9RQRRWRURYRZRNR]RjR^RmRpRs(((s./lib-tk/Tkinter.pyRDÝs							t	StringVarcBs/eZdZdZdddd„Zd„ZRS(s#Value holder for strings variables.REcCstj||||ƒdS(s6Construct a string variable.

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to "")
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(RDRU(RRRSRRT((s./lib-tk/Tkinter.pyRUFs
cCs2|jj|jƒ}t|tƒr(|St|ƒS(s#Return value of variable as string.(RJR\RKR
t
basestringR(RRR((s./lib-tk/Tkinter.pyR]RsN(R7R8R9RQRRUR](((s./lib-tk/Tkinter.pyRtCstIntVarcBs8eZdZdZdddd„Zd„Zd„ZRS(s#Value holder for integer variables.icCstj||||ƒdS(s7Construct an integer variable.

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to 0)
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(RDRU(RRRSRRT((s./lib-tk/Tkinter.pyRU\s
cCs.t|tƒrt|ƒ}ntj||ƒS(s;Set the variable to value, converting booleans to integers.(R
tboolR?RDRN(RRR((s./lib-tk/Tkinter.pyRNhscCst|jj|jƒƒS(s/Return the value of the variable as an integer.(tgetintRJR\RK(RR((s./lib-tk/Tkinter.pyR]nsN(R7R8R9RQRRURNR](((s./lib-tk/Tkinter.pyRvYs
	t	DoubleVarcBs/eZdZdZdddd„Zd„ZRS(s!Value holder for float variables.gcCstj||||ƒdS(s6Construct a float variable.

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to 0.0)
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(RDRU(RRRSRRT((s./lib-tk/Tkinter.pyRUus
cCst|jj|jƒƒS(s,Return the value of the variable as a float.(t	getdoubleRJR\RK(RR((s./lib-tk/Tkinter.pyR]sN(R7R8R9RQRRUR](((s./lib-tk/Tkinter.pyRyrst
BooleanVarcBs8eZdZeZdddd„Zd„Zd„ZRS(s#Value holder for boolean variables.cCstj||||ƒdS(s:Construct a boolean variable.

        MASTER can be given as master widget.
        VALUE is an optional value (defaults to False)
        NAME is an optional Tcl name (defaults to PY_VARnum).

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(RDRU(RRRSRRT((s./lib-tk/Tkinter.pyRUˆs
cCs"|jj|j|jj|ƒƒS(sSet the variable to VALUE.(RJR[RKRO(RRR((s./lib-tk/Tkinter.pyRN”scCs|jj|jj|jƒƒS(s+Return the value of the variable as a bool.(RJROR\RK(RR((s./lib-tk/Tkinter.pyR]˜sN(	R7R8R9tFalseRQRRURNR](((s./lib-tk/Tkinter.pyR{…s
	cCstjj|ƒdS(sRun the main loop of Tcl.N(R;R.tmainloop(tn((s./lib-tk/Tkinter.pyR}œscCstjj|ƒS(s1Convert true and false to integer values 1 and 0.(R;R.RO(ts((s./lib-tk/Tkinter.pyRO¤stMisccBsDeZdZd¬Zd„Zd„Zd¬d„Zd„Zd„Z	d„Z
dd„ZeZd¬d	„Z
d¬d
„Zddd„Zdd
„ZeZeZd„Zd„ZeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd¬d„Zd„Z d„Z!dd„Z"d„Z#d„Z$d„Z%d„Z&d „Z'd!„Z(d"„Z)d#„Z*d¬d$„Z+d%„Z,d&„Z-d¬d'„Z.d(„Z/d)„Z0d*„Z1d+„Z2d,„Z3d-„Z4d¬d.„Z5d¬d/„Z6e6Z7d¬d0„Z8dd1„Z9dd2„Z:d3„Z;d4„Z<d5„Z=d6„Z>dd7„Z?d8„Z@d9„ZAd:„ZBd;„ZCd<„ZDd=„ZEdd>„ZFd?„ZGd@„ZHdA„ZIdB„ZJddC„ZKdD„ZLdE„ZMdF„ZNdG„ZOdH„ZPdI„ZQdJ„ZRdK„ZSdL„ZTdM„ZUdN„ZVdO„ZWdP„ZXdQ„ZYdR„ZZdS„Z[dT„Z\dU„Z]dV„Z^dW„Z_dX„Z`dY„ZaddZ„Zbd[„Zcd\„Zdd]„Zed^„Zfd_„Zgd`„Zhda„Zidb„Zjdc„Zkdd„Zlde„Zmd¬df„Zndgdh„Zod¬d¬d¬di„Zpd¬dj„Zqd¬d¬d¬dk„Zrdl„Zsd¬d¬d¬dm„Ztdn„Zuddo„Zvdp„Zwdq„Zxdr„Zyds„Zzdt„Z{e|du„ƒZ}d¬dv„Z~dw„ZeZ€d¬dgdx„ZeZ‚dy„Zƒd­Z„dj…e„ƒZ†dŽ„Z‡d„Zˆd„Z‰d‘„ZŠd’„Z‹d¬d“„ZŒeŒZd”„ZŽeŽZd•„Zd–„Z‘d—„Z’d˜„Z“d™gZ”e”dš„Z•e•Z–d›„Z—e—Z˜dœ„Z™d¬d¬d¬d¬d„ZšešZ›dž„ZœdŸ„Zid „ZžežZŸd¡„Z e”d¢„Z¡id£„Z¢e¢Z£d¤„Z¤e¤Z¥d¬d¬d¥„Z¦d¦„Z§d§„Z¨d¨„Z©d¬d©„Zªdª„Z«d«„Z¬RS(®sRInternal class.

    Base class which defines methods common for interior widgets.cCsC|jdk	r?x!|jD]}|jj|ƒqWd|_ndS(skInternal function.

        Delete all Tcl commands created for
        this widget in the Tcl interpreter.N(RWRR.RX(RRRT((s./lib-tk/Tkinter.pytdestroy°scCs<|jj|ƒy|jj|ƒWntk
r7nXdS(sDInternal function.

        Delete the Tcl command provided in NAME.N(R.RXRWRlR@(RRRT((s./lib-tk/Tkinter.pyRXºs

cCs"|jj|jjdd|ƒƒS(sßSet Tcl internal variable, whether the look and feel
        should adhere to Motif.

        A parameter of 1 means adhere to Motif (e.g. no color
        change if mouse passes over slider).
        Returns the set value.RNttk_strictMotif(R.RORP(RRtboolean((s./lib-tk/Tkinter.pyR‚ÄscCs|jjdƒdS(sDChange the color scheme to light brown as used in Tk 3.6 and before.t	tk_bisqueN(R.RP(RR((s./lib-tk/Tkinter.pyR„ÍscOs.|jjdt|ƒt|jƒƒƒdS(sSet a new color scheme for all widget elements.

        A single color as argument will cause that all colors of Tk
        widget elements are derived from this.
        Alternatively several keyword parameters and its associated
        colors can be given. The following keywords are valid:
        activeBackground, foreground, selectColor,
        activeForeground, highlightBackground, selectBackground,
        background, highlightColor, selectForeground,
        disabledForeground, insertBackground, troughColor.t
tk_setPaletteN(s
tk_setPalette(R.RPRR!(RRtargstkw((s./lib-tk/Tkinter.pyR…Ðs	cGs&ddl}|jdtddƒdS(s)Do not use. Needed in Tk 3.6 and earlier.iÿÿÿÿNs4tk_menuBar() does nothing and will be removed in 3.6t
stackleveli(twarningstwarntDeprecationWarning(RRR†R‰((s./lib-tk/Tkinter.pyt
tk_menuBarÝs	RFcCs|jjdd|ƒdS(sƒWait until the variable is modified.

        A parameter of type IntVar, StringVar, DoubleVar or
        BooleanVar must be given.ttkwaitR_N(R.RP(RRRT((s./lib-tk/Tkinter.pyt
wait_variableãscCs2|dkr|}n|jjdd|jƒdS(sQWait until a WIDGET is destroyed.

        If no parameter is given self is used.RtwindowN(RR.RPt_w(RRR((s./lib-tk/Tkinter.pytwait_windowês	cCs2|dkr|}n|jjdd|jƒdS(sxWait until the visibility of a WIDGET changes
        (e.g. it appears).

        If no parameter is given self is used.Rt
visibilityN(RR.RPR(RRR((s./lib-tk/Tkinter.pytwait_visibilityñs	t1cCs|jj||ƒdS(sSet Tcl variable NAME to VALUE.N(R.tsetvar(RRRTR((s./lib-tk/Tkinter.pyR•ùscCs|jj|ƒS(s"Return value of Tcl variable NAME.(R.tgetvar(RRRT((s./lib-tk/Tkinter.pyR–üscCs|jj|ƒS(sPReturn a boolean value for Tcl boolean values true and false given as parameter.(R.RO(RRR((s./lib-tk/Tkinter.pyROscCs|jjd|jƒdS(sÍDirect input focus to this widget.

        If the application currently does not have the focus
        this widget will get the focus if the application gets
        the focus through the window manager.tfocusN(R.RPR(RR((s./lib-tk/Tkinter.pyt	focus_setscCs|jjdd|jƒdS(stDirect input focus to this widget even if the
        application does not have the focus. Use with
        caution!R—s-forceN(R.RPR(RR((s./lib-tk/Tkinter.pytfocus_forcescCs6|jjdƒ}|dks%|r)dS|j|ƒS(sÔReturn the widget which has currently the focus in the
        application.

        Use focus_displayof to allow working with several
        displays. Return None if application does not have
        the focus.R—tnoneN(R.RPRt
_nametowidget(RRRT((s./lib-tk/Tkinter.pyt	focus_getscCs?|jjdd|jƒ}|dks.|r2dS|j|ƒS(s¥Return the widget which has currently the focus on the
        display where this widget is located.

        Return None if the application does not have the focus.R—s
-displayofRšN(R.RPRRR›(RRRT((s./lib-tk/Tkinter.pytfocus_displayofscCs?|jjdd|jƒ}|dks.|r2dS|j|ƒS(syReturn the widget which would have the focus if top level
        for this widget gets the focus from the window manager.R—s-lastforRšN(R.RPRRR›(RRRT((s./lib-tk/Tkinter.pyt
focus_lastfor#scCs|jjdƒdS(sXThe widget under mouse will get automatically focus. Can not
        be disabled easily.ttk_focusFollowsMouseN(R.RP(RR((s./lib-tk/Tkinter.pyRŸ)scCs/|jjd|jƒ}|s"dS|j|ƒS(snReturn the next widget in the focus order which follows
        widget which has currently the focus.

        The focus order first goes to the next child, then to
        the children of the child recursively and then to the
        next sibling which is higher in the stacking order.  A
        widget is omitted if it has the takefocus resource set
        to 0.ttk_focusNextN(R.RPRRR›(RRRT((s./lib-tk/Tkinter.pyR -s	cCs/|jjd|jƒ}|s"dS|j|ƒS(sHReturn previous widget in the focus order. See tk_focusNext for details.ttk_focusPrevN(R.RPRRR›(RRRT((s./lib-tk/Tkinter.pyR¡9scsiˆsˆjjd|ƒnI‡‡‡‡fd†}ˆj|_ˆj|ƒ‰ˆjjd|ˆƒSdS(sCall function once after given time.

        MS specifies the time in milliseconds. FUNC gives the
        function which shall be called. Additional parameters
        are given as parameters to the function call.  Return
        identifier to cancel scheduling with after_cancel.taftercs;zˆˆŒWdyˆjˆƒWntk
r5nXXdS(N(RXtTclError((R†tfuncRTRR(s./lib-tk/Tkinter.pytcallitIs
N(R.RPR7t	_register(RRtmsR¤R†R¥((R†R¤RTRRs./lib-tk/Tkinter.pyR¢>scGs|jd||ŒS(s–Call FUNC once if the Tcl main loop has no event to
        process.

        Return an identifier to cancel the scheduling with
        after_cancel.tidle(R¢(RRR¤R†((s./lib-tk/Tkinter.pyt
after_idleTscCsmy?|jjdd|ƒ}|jj|ƒd}|j|ƒWntk
rRnX|jjdd|ƒdS(sCancel scheduling of function identified with ID.

        Identifier returned by after or after_idle must be
        given as first parameter.R¢RGitcancelN(R.RPR*RXR£(RRRbtdatatscript((s./lib-tk/Tkinter.pytafter_cancel[s
icCs!|jjd|j|ƒƒdS(sRing a display's bell.tbellN(sbell(R.RPt
_displayof(RRt	displayof((s./lib-tk/Tkinter.pyR®iscKsd|krd|jdkrdy+d|d<|jjd|j|ƒƒSWqdtk
r`|d=qdXn|jjd|j|ƒƒS(sïRetrieve data from the clipboard on window's display.

        The window keyword defaults to the root window of the Tkinter
        application.

        The type keyword specifies the form in which the data is
        to be returned and should be an atom name such as STRING
        or FILE_NAME.  Type defaults to STRING, except on X11, where the default
        is to try UTF8_STRING and fall back to STRING.

        This command is equivalent to:

        selection_get(CLIPBOARD)
        Rtx11tUTF8_STRINGt	clipboardR](R³sget(R³sget(t_windowingsystemR.RPt_optionsR£(RRR‡((s./lib-tk/Tkinter.pyt
clipboard_getns
!
cKs=d|kr|j|d<n|jjd|j|ƒƒdS(s‘Clear the data in the Tk clipboard.

        A widget specified for the optional displayof keyword
        argument specifies the target display.R°R³tclearN(s	clipboardsclear(RR.RPRµ(RRR‡((s./lib-tk/Tkinter.pytclipboard_clear…scKsGd|kr|j|d<n|jjd|j|ƒd|fƒdS(sÊAppend STRING to the Tk clipboard.

        A widget specified at the optional displayof keyword
        argument specifies the target display. The clipboard
        can be retrieved with selection_get.R°R³Res--N(s	clipboardsappend(RR.RPRµ(RRtstringR‡((s./lib-tk/Tkinter.pytclipboard_appendŒs	cCs2|jjdd|jƒ}|s%dS|j|ƒS(sOReturn widget which has currently the grab in this application
        or None.tgrabtcurrentN(R.RPRRR›(RRRT((s./lib-tk/Tkinter.pytgrab_current–scCs|jjdd|jƒdS(s.Release grab for this widget if currently set.R»treleaseN(R.RPR(RR((s./lib-tk/Tkinter.pytgrab_releaseœscCs|jjdd|jƒdS(swSet grab for this widget.

        A grab directs all events to this and descendant
        widgets in the application.R»RNN(R.RPR(RR((s./lib-tk/Tkinter.pytgrab_setŸscCs |jjddd|jƒdS(sÊSet global grab for this widget.

        A global grab directs all events to this and
        descendant widgets on the display. Use with caution -
        other applications do not get events anymore.R»RNs-globalN(R.RPR(RR((s./lib-tk/Tkinter.pytgrab_set_global¥scCs4|jjdd|jƒ}|dkr0d}n|S(sYReturn None, "local" or "global" if this widget has
        no, a local or a global grab.R»tstatusRšN(R.RPRR(RRRÂ((s./lib-tk/Tkinter.pytgrab_status¬s	cCs |jjdd|||ƒdS(s©Set a VALUE (second parameter) for an option
        PATTERN (first parameter).

        An optional third parameter gives the numeric priority
        (defaults to 80).toptiontaddN(R.RP(RRtpatternRtpriority((s./lib-tk/Tkinter.pyt
option_add²scCs|jjddƒdS(sPClear the option database.

        It will be reloaded if option_add is called.RÄR·N(R.RP(RR((s./lib-tk/Tkinter.pytoption_clear¹scCs|jjdd|j||ƒS(s‡Return the value for an option NAME for this widget
        with CLASSNAME.

        Values with higher priority override lower values.RÄR](R.RPR(RRRTt	className((s./lib-tk/Tkinter.pyt
option_get¾scCs|jjdd||ƒdS(svRead file FILENAME into the option database.

        An optional second parameter gives the numeric
        priority.RÄtreadfileN(R.RP(RRtfileNameRÇ((s./lib-tk/Tkinter.pytoption_readfileÄscKs=d|kr|j|d<n|jjd|j|ƒƒdS(sClear the current X selection.R°t	selectionR·N(s	selectionsclear(RR.RPRµ(RRR‡((s./lib-tk/Tkinter.pytselection_clearÊscKsd|kr|j|d<nd|kr€|jdkr€y+d|d<|jjd|j|ƒƒSWq€tk
r||d=q€Xn|jjd|j|ƒƒS(	s•Return the contents of the current X selection.

        A keyword parameter selection specifies the name of
        the selection and defaults to PRIMARY.  A keyword
        parameter displayof specifies a widget on the display
        to use. A keyword parameter type specifies the form of data to be
        fetched, defaulting to STRING except on X11, where UTF8_STRING is tried
        before STRING.R°RR±R²RÏR](s	selectionsget(s	selectionsget(RR´R.RPRµR£(RRR‡((s./lib-tk/Tkinter.pyt
selection_getÎs	
!
cKs=|j|ƒ}|jjd|j|ƒ|j|fƒdS(sSpecify a function COMMAND to call if the X
        selection owned by this widget is queried by another
        application.

        This function must return the contents of the
        selection. The function will be called with the
        arguments OFFSET and LENGTH which allows the chunking
        of very long selections. The following keyword
        parameters can be provided:
        selection - name of the selection (default PRIMARY),
        type - type of the selection (e.g. STRING, FILE_NAME).RÏthandleN(s	selectionRÒ(R¦R.RPRµR(RRtcommandR‡RT((s./lib-tk/Tkinter.pytselection_handleßs	cKs+|jjd|j|ƒ|jfƒdS(s‚Become owner of X selection.

        A keyword parameter selection specifies the name of
        the selection (default PRIMARY).RÏtownN(s	selectionRÕ(R.RPRµR(RRR‡((s./lib-tk/Tkinter.pyt
selection_ownîs	cKsRd|kr|j|d<n|jjd|j|ƒƒ}|sEdS|j|ƒS(sÚReturn owner of X selection.

        The following keyword parameter can
        be provided:
        selection - name of the selection (default PRIMARY),
        type - type of the selection (e.g. STRING, FILE_NAME).R°RÏRÕ(s	selectionsownN(RR.RPRµRR›(RRR‡RT((s./lib-tk/Tkinter.pytselection_own_getõscGs|jjd||f|ƒS(sDSend Tcl command CMD to different interpreter INTERP to be executed.tsend(R.RP(RRtinterptcmdR†((s./lib-tk/Tkinter.pyRØscCs|jjd|j|ƒdS(s(Lower this widget in the stacking order.tlowerN(R.RPR(RRt	belowThis((s./lib-tk/Tkinter.pyRÛscCs|jjd|j|ƒdS(s(Raise this widget in the stacking order.traiseN(R.RPR(RRt	aboveThis((s./lib-tk/Tkinter.pyttkraisescCs|jjdd|j|ƒS(sUseless. Not implemented in Tk.R.t
colormodel(R.RPR(RRR((s./lib-tk/Tkinter.pyRà
scCs0d|j|ƒ|f}t|jj|ƒƒS(s*Return integer which represents atom NAME.twinfotatom(RáRâ(R¯RxR.RP(RRRTR°R†((s./lib-tk/Tkinter.pyt
winfo_atom
scCs*d|j|ƒ|f}|jj|ƒS(s'Return name of atom with identifier ID.Rátatomname(swinfoRä(R¯R.RP(RRRbR°R†((s./lib-tk/Tkinter.pytwinfo_atomnamescCst|jjdd|jƒƒS(s7Return number of cells in the colormap for this widget.Rátcells(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_cellsscCsjg}x]|jj|jjdd|jƒƒD]4}y|j|j|ƒƒWq.tk
raq.Xq.W|S(s?Return a list of all widgets which are children of this widget.Rátchildren(R.R*RPRReR›tKeyError(RRtresulttchild((s./lib-tk/Tkinter.pytwinfo_childrens"
cCs|jjdd|jƒS(s(Return window class name of this widget.Rátclass(R.RPR(RR((s./lib-tk/Tkinter.pytwinfo_class'scCs%|jj|jjdd|jƒƒS(s?Return true if at the last color request the colormap was full.Rátcolormapfull(R.RORPR(RR((s./lib-tk/Tkinter.pytwinfo_colormapfull*s	cCsFd|j|ƒ||f}|jj|ƒ}|s9dS|j|ƒS(s@Return the widget which is at the root coordinates ROOTX, ROOTY.Rát
containing(swinfoRñN(R¯R.RPRR›(RRtrootXtrootYR°R†RT((s./lib-tk/Tkinter.pytwinfo_containing.s
cCst|jjdd|jƒƒS(s$Return the number of bits per pixel.Rátdepth(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_depth5scCst|jjdd|jƒƒS(s"Return true if this widget exists.RáRH(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_exists8scCs"t|jjdd|j|ƒƒS(sWReturn the number of pixels for the given distance NUMBER
        (e.g. "3c") as float.Rátfpixels(RzR.RPR(RRtnumber((s./lib-tk/Tkinter.pyt
winfo_fpixels<scCs|jjdd|jƒS(sFReturn geometry string for this widget in the form "widthxheight+X+Y".Rátgeometry(R.RPR(RR((s./lib-tk/Tkinter.pytwinfo_geometryAscCst|jjdd|jƒƒS(sReturn height of this widget.Rátheight(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_heightDscCs%|jj|jjdd|jƒƒS(s%Return identifier ID for this widget.RáRb(R.RxRPR(RR((s./lib-tk/Tkinter.pytwinfo_idHs	cCs/d|j|ƒ}|jj|jj|ƒƒS(s9Return the name of all Tcl interpreters for this display.Rátinterps(swinfoR(R¯R.R*RP(RRR°R†((s./lib-tk/Tkinter.pyt
winfo_interpsLscCst|jjdd|jƒƒS(s%Return true if this widget is mapped.Rátismapped(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_ismappedPscCs|jjdd|jƒS(s0Return the window mananger name for this widget.Rátmanager(R.RPR(RR((s./lib-tk/Tkinter.pyt
winfo_managerTscCs|jjdd|jƒS(sReturn the name of this widget.RáRT(R.RPR(RR((s./lib-tk/Tkinter.pyt
winfo_nameWscCs|jjdd|jƒS(s-Return the name of the parent of this widget.Rátparent(R.RPR(RR((s./lib-tk/Tkinter.pytwinfo_parentZscCs*d|j|ƒ|f}|jj|ƒS(s.Return the pathname of the widget given by ID.Rátpathname(swinfospathname(R¯R.RP(RRRbR°R†((s./lib-tk/Tkinter.pytwinfo_pathname]scCs"t|jjdd|j|ƒƒS(s'Rounded integer value of winfo_fpixels.Rátpixels(RxR.RPR(RRRù((s./lib-tk/Tkinter.pytwinfo_pixelsbscCst|jjdd|jƒƒS(s:Return the x coordinate of the pointer on the root window.Rátpointerx(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_pointerxfscCs"|j|jjdd|jƒƒS(sHReturn a tuple of x and y coordinates of the pointer on the root window.Rát	pointerxy(t_getintsR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_pointerxyjscCst|jjdd|jƒƒS(s:Return the y coordinate of the pointer on the root window.Rátpointery(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_pointerynscCst|jjdd|jƒƒS(s'Return requested height of this widget.Rát	reqheight(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_reqheightrscCst|jjdd|jƒƒS(s&Return requested width of this widget.Rátreqwidth(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_reqwidthvscCs%|j|jjdd|j|ƒƒS(sUReturn tuple of decimal values for red, green, blue for
        COLOR in this widget.Rátrgb(RR.RPR(RRtcolor((s./lib-tk/Tkinter.pyt	winfo_rgbzscCst|jjdd|jƒƒS(sSReturn x coordinate of upper left corner of this widget on the
        root window.Rátrootx(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_rootxscCst|jjdd|jƒƒS(sSReturn y coordinate of upper left corner of this widget on the
        root window.Rátrooty(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_rooty„scCs|jjdd|jƒS(s&Return the screen name of this widget.Rátscreen(R.RPR(RR((s./lib-tk/Tkinter.pytwinfo_screen‰scCst|jjdd|jƒƒS(sTReturn the number of the cells in the colormap of the screen
        of this widget.Rátscreencells(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_screencellsŒscCst|jjdd|jƒƒS(s\Return the number of bits per pixel of the root window of the
        screen of this widget.Rátscreendepth(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_screendepth‘scCst|jjdd|jƒƒS(sXReturn the number of pixels of the height of the screen of this widget
        in pixel.Rátscreenheight(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_screenheight–scCst|jjdd|jƒƒS(sUReturn the number of pixels of the height of the screen of
        this widget in mm.Rátscreenmmheight(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_screenmmheight›scCst|jjdd|jƒƒS(sTReturn the number of pixels of the width of the screen of
        this widget in mm.Rát
screenmmwidth(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_screenmmwidth scCs|jjdd|jƒS(sŸReturn one of the strings directcolor, grayscale, pseudocolor,
        staticcolor, staticgray, or truecolor for the default
        colormodel of this screen.Rátscreenvisual(R.RPR(RR((s./lib-tk/Tkinter.pytwinfo_screenvisual¥scCst|jjdd|jƒƒS(sWReturn the number of pixels of the width of the screen of
        this widget in pixel.Rátscreenwidth(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_screenwidthªscCs|jjdd|jƒS(sxReturn information of the X-Server of the screen of this widget in
        the form "XmajorRminor vendor vendorVersion".Rátserver(R.RPR(RR((s./lib-tk/Tkinter.pytwinfo_server¯scCs"|j|jjdd|jƒƒS(s*Return the toplevel widget of this widget.Ráttoplevel(R›R.RPR(RR((s./lib-tk/Tkinter.pytwinfo_toplevel³scCst|jjdd|jƒƒS(sBReturn true if the widget and all its higher ancestors are mapped.Rátviewable(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_viewable·scCs|jjdd|jƒS(s—Return one of the strings directcolor, grayscale, pseudocolor,
        staticcolor, staticgray, or truecolor for the
        colormodel of this widget.Rátvisual(R.RPR(RR((s./lib-tk/Tkinter.pytwinfo_visual»scCs|jjdd|jƒS(s7Return the X identifier for the visual for this widget.Rátvisualid(R.RPR(RR((s./lib-tk/Tkinter.pytwinfo_visualidÀscCsp|jj|jjdd|j|r*dp-dƒƒ}t|ƒtkr`|jj|ƒg}nt|j|ƒS(sÞReturn a list of all visuals available for the screen
        of this widget.

        Each item in the list consists of a visual name (see winfo_visual), a
        depth and if INCLUDEIDS=1 is given also the X identifier.Rátvisualsavailablet
includeidsN(	R.RoRPRRRRRt_Misc__winfo_parseitem(RRR:R«((s./lib-tk/Tkinter.pytwinfo_visualsavailableÃs	cCs"|d tt|j|dƒƒS(sInternal function.i(RRt_Misc__winfo_getint(RRR1((s./lib-tk/Tkinter.pyt__winfo_parseitemÏscCs
t|dƒS(sInternal function.i(R?(RRtx((s./lib-tk/Tkinter.pyt__winfo_getintÒscCst|jjdd|jƒƒS(s§Return the height of the virtual root window associated with this
        widget in pixels. If there is no virtual root window return the
        height of the screen.Rátvrootheight(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_vrootheightÕscCst|jjdd|jƒƒS(s¤Return the width of the virtual root window associated with this
        widget in pixel. If there is no virtual root window return the
        width of the screen.Rát
vrootwidth(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_vrootwidthÛscCst|jjdd|jƒƒS(siReturn the x offset of the virtual root relative to the root
        window of the screen of this widget.Rátvrootx(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_vrootxáscCst|jjdd|jƒƒS(siReturn the y offset of the virtual root relative to the root
        window of the screen of this widget.Rátvrooty(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_vrootyæscCst|jjdd|jƒƒS(s Return the width of this widget.Rátwidth(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_widthëscCst|jjdd|jƒƒS(sVReturn the x coordinate of the upper left corner of this widget
        in the parent.RáR?(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_xïscCst|jjdd|jƒƒS(sVReturn the y coordinate of the upper left corner of this widget
        in the parent.Ráty(RxR.RPR(RR((s./lib-tk/Tkinter.pytwinfo_yôscCs|jjdƒdS(sEEnter event loop until all pending events have been processed by Tcl.RN(R.RP(RR((s./lib-tk/Tkinter.pyRùscCs|jjddƒdS(sžEnter event loop until all idle callbacks have been called. This
        will update the display of windows but not process events caused by
        the user.Rt	idletasksN(R.RP(RR((s./lib-tk/Tkinter.pytupdate_idletasksüscCsK|dkr.|jj|jjd|jƒƒS|jjd|j|ƒdS(s,Set or get the list of bindtags for this widget.

        With no argument return the list of all bindtags associated with
        this widget. With a list of strings as argument the bindtags are
        set to this list. The bindtags determine in which order events are
        processed (see bind).tbindtagsN(RR.R*RPR(RRttagList((s./lib-tk/Tkinter.pyRPs	icCsÊt|ƒtkr/|jj|||fƒn—|r|j||j|ƒ}d|r\dp_d||jf}|jj|||fƒ|S|rª|jj||fƒS|jj|jj|ƒƒSdS(sInternal function.s"%sif {"[%s %s]" == "break"} break
t+REN(RRR.RPR¦t_substitutet_subst_format_strR*(RRtwhattsequenceR¤RÅtneedcleanuptfuncidRÚ((s./lib-tk/Tkinter.pyt_bind
s	cCs|jd|jf|||ƒS(sOBind to this widget at event SEQUENCE a call to function FUNC.

        SEQUENCE is a string of concatenated event
        patterns. An event pattern is of the form
        <MODIFIER-MODIFIER-TYPE-DETAIL> where MODIFIER is one
        of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4,
        Button1, B1, Mod5, M5 Button2, B2, Meta, M, Button3,
        B3, Alt, Button4, B4, Double, Button5, B5 Triple,
        Mod1, M1. TYPE is one of Activate, Enter, Map,
        ButtonPress, Button, Expose, Motion, ButtonRelease
        FocusIn, MouseWheel, Circulate, FocusOut, Property,
        Colormap, Gravity Reparent, Configure, KeyPress, Key,
        Unmap, Deactivate, KeyRelease Visibility, Destroy,
        Leave and DETAIL is the button number for ButtonPress,
        ButtonRelease and DETAIL is the Keysym for KeyPress and
        KeyRelease. Examples are
        <Control-Button-1> for pressing Control and mouse button 1 or
        <Alt-A> for pressing A and the Alt key (KeyPress can be omitted).
        An event pattern can also be a virtual event of the form
        <<AString>> where AString can be arbitrary. This
        event can be generated by event_generate.
        If events are concatenated they must appear shortly
        after each other.

        FUNC will be called if the event sequence occurs with an
        instance of Event as argument. If the return value of FUNC is
        "break" no further bound function is invoked.

        An additional boolean parameter ADD specifies whether FUNC will
        be called additionally to the other bound function or whether
        it will replace the previous function.

        Bind will return an identifier to allow deletion of the bound function with
        unbind without memory leak.

        If FUNC or SEQUENCE is omitted the bound function or list
        of bound events are returned.tbind(RYR(RRRVR¤RÅ((s./lib-tk/Tkinter.pyRZs'cCs6|jjd|j|dƒ|r2|j|ƒndS(sWUnbind for this widget for event SEQUENCE  the
        function identified with FUNCID.RZREN(R.RPRRX(RRRVRX((s./lib-tk/Tkinter.pytunbindFscCs|jd|||dƒS(sBind to all widgets at an event SEQUENCE a call to function FUNC.
        An additional boolean parameter ADD specifies whether FUNC will
        be called additionally to the other bound function or whether
        it will replace the previous function. See bind for the return value.RZtalli(sbindsall(RY(RRRVR¤RÅ((s./lib-tk/Tkinter.pytbind_allLscCs|jjdd|dƒdS(s8Unbind for all widgets for event SEQUENCE all functions.RZR\REN(R.RP(RRRV((s./lib-tk/Tkinter.pyt
unbind_allRscCs|jd|f|||dƒS(s=Bind to widgets with bindtag CLASSNAME at event
        SEQUENCE a call of function FUNC. An additional
        boolean parameter ADD specifies whether FUNC will be
        called additionally to the other bound function or
        whether it will replace the previous function. See bind for
        the return value.RZi(RY(RRRÊRVR¤RÅ((s./lib-tk/Tkinter.pyt
bind_classUs	cCs|jjd||dƒdS(sWUnbind for all widgets with bindtag CLASSNAME for event SEQUENCE
        all functions.RZREN(R.RP(RRRÊRV((s./lib-tk/Tkinter.pytunbind_class_scCs|jj|ƒdS(sCall the mainloop of Tk.N(R.R}(RRR~((s./lib-tk/Tkinter.pyR}cscCs|jjƒdS(s8Quit the Tcl interpreter. All widgets will be destroyed.N(R.tquit(RR((s./lib-tk/Tkinter.pyRafscCs)|r%ttt|jj|ƒƒƒSdS(sInternal function.N(RRRxR.R*(RRR¹((s./lib-tk/Tkinter.pyRiscCs)|r%ttt|jj|ƒƒƒSdS(sInternal function.N(RRRzR.R*(RRR¹((s./lib-tk/Tkinter.pyt_getdoublesmscCs|r|jj|ƒSdS(sInternal function.N(R.RO(RRR¹((s./lib-tk/Tkinter.pyt_getbooleanqscCs-|rd|fS|dkr)d|jfSdS(sInternal function.s
-displayofN((RR(RRR°((s./lib-tk/Tkinter.pyR¯us


cCsLy|jƒjSWn4tk
rG|jjddƒ}|jƒ_|SXdS(sInternal function.R.twindowingsystemN(RIt_windowingsystem_cachedRR.RP(RRtws((s./lib-tk/Tkinter.pyR´|s

"cCs<|rt||fƒ}nt|ƒ}d}x|jƒD]ú\}}|dk	r:|ddkro|d }nt|dƒr|j|ƒ}nt|ttfƒrg}xo|D]U}t|tt	fƒsÑPq²t|t	ƒrô|j
d|ƒq²|j
t|ƒƒq²Wdj|ƒ}n|d||f}q:q:W|S(	sInternal function.iÿÿÿÿt_Ras%dRR)(N(
R(R!RthasattrR¦R
RRRuR?ReRR(RRR#R‡RR&R'tnvR((s./lib-tk/Tkinter.pyRµ…s*

cCsjt|ƒjdƒ}|}|ds>|jƒ}|d}nx%|D]}|sUPn|j|}qEW|S(sPReturn the Tkinter instance of a widget identified by
        its Tcl name NAME.t.ii(RRoRIRè(RRRTtwR~((s./lib-tk/Tkinter.pytnametowidgetŸs


cCs¸t|||ƒj}tt|ƒƒ}y
|j}Wntk
rGnXy||j}Wntk
rlnX|jj||ƒ|r´|j	dkr¡g|_	n|j	j|ƒn|S(sÏReturn a newly created Tcl function. If this
        function is called, the Python function FUNC will
        be executed. An optional function SUBST can
        be given which will be executed before FUNC.N(R`RaRLRbRcRR7R.RdRWRRe(RRR¤tsubstRWRhRT((s./lib-tk/Tkinter.pyR¦°s 


cCs#|}x|jr|j}q	W|S(sInternal function.(RS(RRRk((s./lib-tk/Tkinter.pyRIÆs
s%#s%bs%fs%hs%ks%ss%ts%ws%xs%ys%As%Es%Ks%Ns%Ws%Ts%Xs%Ys%DRcGs	t|ƒt|jƒkr|S|jj}t}d„}|\}}}}}	}
}}}
}}}}}}}}}}tƒ}||ƒ|_||ƒ|_y||ƒ|_Wnt	k
rÆnX||ƒ|_
||	ƒ|_||
ƒ|_||ƒ|_
||ƒ|_||
ƒ|_||ƒ|_||_y||ƒ|_Wnt	k
r_nX||_||ƒ|_||_y|j|ƒ|_Wntk
r³||_nX||ƒ|_||ƒ|_y||ƒ|_Wntk
rd|_nX|fS(sInternal function.cSs'yt|ƒSWntk
r"|SXdS(s?Tk changed behavior in 8.4.2, returning "??" rather more often.N(R?R@(R((s./lib-tk/Tkinter.pytgetint_eventÕs
i(R
t
_subst_formatR.ROR?R6tserialtnumR—R£RýtkeycodetstatettimeRIR?RLtchart
send_eventtkeysymt
keysym_numRR›twidgetRétx_rootty_roottdeltaR@(RRR†RORxRntnsigntbRhthR&RR1RkR?RLtAtEtKtNtWtTtXtYtDte((s./lib-tk/Tkinter.pyRSÏsN	?	
	
		



cCsLddl}|j|j|j}}}|jƒ}|j|||ƒdS(sInternal function.iÿÿÿÿN(tsystexc_typet	exc_valuet
exc_tracebackRItreport_callback_exception(RRRŠtexctvalttbtroot((s./lib-tk/Tkinter.pyt_report_exceptionscGsji}x]|jj|jj|ŒƒD]=}|jj|ƒ}|ddf|d||dd<q%W|S(s;Call Tcl configure command and return the result as a dict.ii(R.R*RP(RRR†R#R?((s./lib-tk/Tkinter.pyt
_getconfigures
%)cGs5|jj|jj|Œƒ}|ddf|dS(Nii(R.R*RP(RRR†R?((s./lib-tk/Tkinter.pyt_getconfigure1scCs½|rt||fƒ}n|r0t|ƒ}n|dkrX|jt|j|fƒƒSt|ƒtkr|jt|j|d|fƒƒS|jj	t|j|fƒ|j
|ƒƒdS(sInternal function.R)N(R(RR”RRRRR•R.RPRµ(RRRÚR#R‡((s./lib-tk/Tkinter.pyt
_configures#cKs|jd||ƒS(sÌConfigure resources of a widget.

        The values for resources are specified as keyword
        arguments. To get an overview about
        the allowed keyword arguments call the method keys.
        t	configure(R–(RRR#R‡((s./lib-tk/Tkinter.pyR—'scCs|jj|jdd|ƒS(s4Return the resource value for a KEY given as string.tcgetR)(R.RPR(RRR4((s./lib-tk/Tkinter.pyR˜0scCs|ji||6ƒdS(N(R—(RRR4R((s./lib-tk/Tkinter.pyt__setitem__4scCstdƒ‚dS(Ns)Tkinter objects don't support 'in' tests.(R (RRR4((s./lib-tk/Tkinter.pyt__contains__6scCs=g|jj|jj|jdƒƒD]}|dd^q%S(s3Return a list of all resource names of this widget.R—ii(R.R*RPR(RRR?((s./lib-tk/Tkinter.pytkeys8scCs|jS(s+Return the window path name of this widget.(R(RR((s./lib-tk/Tkinter.pyRZ<st_noarg_cCsQ|tjkr1|j|jjdd|jƒƒS|jjdd|j|ƒdS(sSet or get the status for propagation of geometry information.

        A boolean argument specifies whether the geometry information
        of the slaves will determine the size of this widget. If no argument
        is given the current setting will be returned.
        tpackt	propagateN(R€RœRcR.RPR(RRtflag((s./lib-tk/Tkinter.pytpack_propagateAscCs1t|j|jj|jjdd|jƒƒƒS(sHReturn a list of all slaves of this widget
        in its packing order.Rtslaves(RR›R.R*RPR(RR((s./lib-tk/Tkinter.pytpack_slavesNs		cCs1t|j|jj|jjdd|jƒƒƒS(sHReturn a list of all slaves of this widget
        in its packing order.tplaceR¡(RR›R.R*RPR(RR((s./lib-tk/Tkinter.pytplace_slavesVs			cCs‡dd|jf}|dk	r=|dk	r=|||f}n|dk	rh|dk	rh|||f}n|j|jj|Œƒp†dS(sÓReturn a tuple of integer coordinates for the bounding
        box of this widget controlled by the geometry manager grid.

        If COLUMN, ROW is given the bounding box applies from
        the cell with row and column 0 to the specified
        cell. If COL2 and ROW2 are given the bounding box
        starts at that cell.

        The returned integers specify the offset of the upper left
        corner in the master widget and the width and height.
        tgridtbboxN(RRRR.RP(RRtcolumntrowtcol2trow2R†((s./lib-tk/Tkinter.pyt	grid_bbox^scCsmt|ttjfƒriy:t|ƒ}|s1dSd|krGt|ƒSt|ƒSWqitk
reqiXn|S(NRj(R
Rt_tkintertTcl_ObjRRzRxR@(RRRtsvalue((s./lib-tk/Tkinter.pyt_gridconvvaluess

cCsðt|ƒtkr_|r_|ddkr6|d }n|d dkrSd|}n|f}n|j||ƒ}|s¨t|j|jjd||j|ƒd|jƒS|jjd||j|f|ƒ}t|ƒdkrì|j|ƒSdS(sInternal function.iÿÿÿÿRgiR)R¥R0N(	RRRµR5R.RPRR¯R
(RRRÓtindexR#R‡toptionsR((s./lib-tk/Tkinter.pyt_grid_configures"


	
cKs|jd|||ƒS(sãConfigure column INDEX of a grid.

        Valid resources are minsize (minimum size of the column),
        weight (how much does additional space propagate to this column)
        and pad (how much space to let additionally).tcolumnconfigure(R²(RRR°R#R‡((s./lib-tk/Tkinter.pytgrid_columnconfigure–scCs.|j|jjdd|j||ƒƒp-dS(s”Return a tuple of column and row which identify the cell
        at which the pixel at position X and Y inside the master
        widget is located.R¥tlocationN(RR.RPRR(RRR?RL((s./lib-tk/Tkinter.pyt
grid_locationžs	cCsQ|tjkr1|j|jjdd|jƒƒS|jjdd|j|ƒdS(sSet or get the status for propagation of geometry information.

        A boolean argument specifies whether the geometry information
        of the slaves will determine the size of this widget. If no argument
        is given, the current setting will be returned.
        R¥RžN(R€RœRcR.RPR(RRRŸ((s./lib-tk/Tkinter.pytgrid_propagate¥scKs|jd|||ƒS(sÚConfigure row INDEX of a grid.

        Valid resources are minsize (minimum size of the row),
        weight (how much does additional space propagate to this row)
        and pad (how much space to let additionally).trowconfigure(R²(RRR°R#R‡((s./lib-tk/Tkinter.pytgrid_rowconfigure±scCs(|j|jjdd|jƒƒp'dS(s<Return a tuple of the number of column and rows in the grid.R¥tsizeN(RR.RPRR(RR((s./lib-tk/Tkinter.pyt	grid_size¹scCs|d}|dk	r%|d|f}n|dk	rD|d|f}nt|j|jj|jjdd|jf|ƒƒƒS(sHReturn a list of all slaves of this widget
        in its packing order.s-rows-columnR¥R¡(N(RRR›R.R*RPR(RRR¨R§R†((s./lib-tk/Tkinter.pytgrid_slaves¾s	cGs'dd|f|}|jj|ƒdS(s›Bind a virtual event VIRTUAL (of the form <<Name>>)
        to an event SEQUENCE such that the virtual event is triggered
        whenever SEQUENCE occurs.teventRÅN(R.RP(RRtvirtualt	sequencesR†((s./lib-tk/Tkinter.pyt	event_addÍscGs'dd|f|}|jj|ƒdS(s-Unbind a virtual event VIRTUAL from SEQUENCE.R½tdeleteN(R.RP(RRR¾R¿R†((s./lib-tk/Tkinter.pytevent_deleteÔscKs`dd|j|f}x4|jƒD]&\}}|d|t|ƒf}q"W|jj|ƒdS(s‚Generate an event SEQUENCE. Additional
        keyword arguments specify parameter of the event
        (e.g. x, y, rootx, rooty).R½tgenerates-%sN(RR!RR.RP(RRRVR‡R†R&R'((s./lib-tk/Tkinter.pytevent_generateÙscCs"|jj|jjdd|ƒƒS(suReturn a list of all virtual events or the information
        about the SEQUENCE bound to the virtual event VIRTUAL.R½RG(R.R*RP(RRR¾((s./lib-tk/Tkinter.pyt
event_infoâs	cCs|jj|jjddƒƒS(s*Return a list of all existing image names.timagetnames(R.R*RP(RR((s./lib-tk/Tkinter.pytimage_namesêscCs|jj|jjddƒƒS(s?Return a list of all available image types (e.g. phote bitmap).RÆttypes(R.R*RP(RR((s./lib-tk/Tkinter.pytimage_typesîsN(s%#s%bs%fs%hs%ks%ss%ts%ws%xs%ys%As%Es%Ks%Ns%Ws%Ts%Xs%Ys%D(­R7R8R9RRWRRXR‚R„R…RŒRŽtwaitvarR‘R“R•R–R?RxtfloatRzROR˜R—R™RœRRžRŸR R¡R¢R©R­R®R¶R¸RºR½R¿RÀRÁRÃRÈRÉRËRÎRÐRÑRÔRÖR×RØRÛRßtliftRàRãRåRçRìRîRðRôRöR÷RúRüRþRÿRRRRRR
RRRRRRRRRR R"R$R&R(R*R,R.R0R2R4R6R8R<R;R=RBRDRFRHRJRKRMRRORPRYRZR[R]R^R_R`R}RaRRbRcR¯tpropertyR´RµRlR›R¦tregisterRIRoRRTRSR“R”R•R–R—tconfigR˜t__getitem__R™RšR›RZRœR RžR¢R¡R¤R«R¦R¯R²R´R³R¶R·R¹R¸R»RºR¼RÀRÂRÄRÅRÈRÊ(((s./lib-tk/Tkinter.pyR€©sP	
	
			
					
										
															
																																													(	
										9																					R`cBs eZdZd„Zd„ZRS(swInternal class. Stores function to call when some user
    defined Tcl function is called e.g. after an event occurred.cCs||_||_||_dS(s(Store FUNC, SUBST and WIDGET as members.N(R¤RmRy(RRR¤RmRy((s./lib-tk/Tkinter.pyRUös		cGsby,|jr|j|Œ}n|j|ŒSWn/tk
rJ}t|‚n|jjƒnXdS(s3Apply first function SUBST to arguments, than FUNC.N(RmR¤RARyR“(RRR†R%((s./lib-tk/Tkinter.pyRaûs	(R7R8R9RURa(((s./lib-tk/Tkinter.pyR`ós	tXViewcBs)eZdZd„Zd„Zd„ZRS(sXMix-in class for querying and changing the horizontal position
    of a widget's window.cGs2|jj|jd|Œ}|s.|j|ƒSdS(s5Query and change the horizontal position of the view.txviewN(R.RPRRb(RRR†R((s./lib-tk/Tkinter.pyRÓscCs |jj|jdd|ƒdS(ssAdjusts the view in the window so that FRACTION of the
        total width of the canvas is off-screen to the left.RÓtmovetoN(R.RPR(RRtfraction((s./lib-tk/Tkinter.pytxview_movetoscCs#|jj|jdd||ƒdS(s\Shift the x-view according to NUMBER which is measured in "units"
        or "pages" (WHAT).RÓtscrollN(R.RPR(RRRùRU((s./lib-tk/Tkinter.pytxview_scrolls(R7R8R9RÓRÖRØ(((s./lib-tk/Tkinter.pyRÒs		tYViewcBs)eZdZd„Zd„Zd„ZRS(sVMix-in class for querying and changing the vertical position
    of a widget's window.cGs2|jj|jd|Œ}|s.|j|ƒSdS(s3Query and change the vertical position of the view.tyviewN(R.RPRRb(RRR†R((s./lib-tk/Tkinter.pyRÚ scCs |jj|jdd|ƒdS(ssAdjusts the view in the window so that FRACTION of the
        total height of the canvas is off-screen to the top.RÚRÔN(R.RPR(RRRÕ((s./lib-tk/Tkinter.pytyview_moveto&scCs#|jj|jdd||ƒdS(s\Shift the y-view according to NUMBER which is measured in
        "units" or "pages" (WHAT).RÚR×N(R.RPR(RRRùRU((s./lib-tk/Tkinter.pytyview_scroll+s(R7R8R9RÚRÛRÜ(((s./lib-tk/Tkinter.pyRÙs		tWmcBseZdZddddd„ZeZd„ZeZdd„ZeZ	d„Z
e
Zdd„ZeZ
d„ZeZdd„ZeZd„ZeZdd	„ZeZddddd
„ZeZdd„ZeZddd„ZeZd
„ZeZdd„ZeZdd„Z e Z!ddd„Z"e"Z#dd„Z$e$Z%ddd„Z&e&Z'ddd„Z(e(Z)dd„Z*e*Z+dd„Z,e,Z-ddd„Z.e.Z/ddd„Z0e0Z1dd„Z2e2Z3dd„Z4e4Z5dd„Z6e6Z7dd„Z8e8Z9d„Z:e:Z;RS(sAProvides functions for the communication with the window manager.c	Cs.|j|jjdd|j||||ƒƒS(sÕInstruct the window manager to set the aspect ratio (width/height)
        of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple
        of the actual values if no argument is given.twmtaspect(RR.RPR(RRtminNumertminDenomtmaxNumertmaxDenom((s./lib-tk/Tkinter.pyt	wm_aspect4scGs&dd|jf|}|jj|ƒS(sÅThis subcommand returns or sets platform specific attributes

        The first form returns a list of the platform specific flags and
        their values. The second form returns the value for the specific
        option. The third form sets one or more of the values. The values
        are as follows:

        On Windows, -disabled gets or sets whether the window is in a
        disabled state. -toolwindow gets or sets the style of the window
        to toolwindow (as defined in the MSDN). -topmost gets or sets
        whether this is a topmost window (displays above all other
        windows).

        On Macintosh, XXXXX

        On Unix, there are currently no special attribute values.
        RÞt
attributes(RR.RP(RRR†((s./lib-tk/Tkinter.pyt
wm_attributes@scCs|jjdd|j|ƒS(sVStore NAME in WM_CLIENT_MACHINE property of this widget. Return
        current value.RÞtclient(R.RPR(RRRT((s./lib-tk/Tkinter.pyt	wm_clientVscGsyt|ƒdkr|f}ndd|jf|}|rM|jj|ƒn(t|j|jj|jj|ƒƒƒSdS(sÛStore list of window names (WLIST) into WM_COLORMAPWINDOWS property
        of this widget. This list contains windows whose colormaps differ from their
        parents. Return current list of widgets if WLIST is empty.iRÞtcolormapwindowsN(R
RR.RPRR›R*(RRtwlistR†((s./lib-tk/Tkinter.pytwm_colormapwindows[scCs|jjdd|j|ƒS(sStore VALUE in WM_COMMAND property. It is the command
        which shall be used to invoke the application. Return current
        command if VALUE is None.RÞRÓ(R.RPR(RRR((s./lib-tk/Tkinter.pyt
wm_commandgscCs|jjdd|jƒS(sˆDeiconify this widget. If it was never mapped it will not be mapped.
        On Windows it will raise this widget and give it the focus.RÞt	deiconify(R.RPR(RR((s./lib-tk/Tkinter.pytwm_deiconifymscCs|jjdd|j|ƒS(sÑSet focus model to MODEL. "active" means that this widget will claim
        the focus itself, "passive" means that the window manager shall give
        the focus. Return current focus model if MODEL is None.RÞt
focusmodel(R.RPR(RRtmodel((s./lib-tk/Tkinter.pyt
wm_focusmodelrscCs|jjdd|jƒS(sAReturn identifier for decorative frame of this widget if present.RÞtframe(R.RPR(RR((s./lib-tk/Tkinter.pytwm_framexscCs|jjdd|j|ƒS(siSet geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return
        current value if None is given.RÞRû(R.RPR(RRtnewGeometry((s./lib-tk/Tkinter.pytwm_geometry|sc	Cs.|j|jjdd|j||||ƒƒS(sInstruct the window manager that this widget shall only be
        resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and
        height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the
        number of grid units requested in Tk_GeometryRequest.RÞR¥(RR.RPR(RRt	baseWidtht
baseHeighttwidthInct	heightInc((s./lib-tk/Tkinter.pytwm_gridscCs|jjdd|j|ƒS(s~Set the group leader widgets for related widgets to PATHNAME. Return
        the group leader of this widget if None is given.RÞtgroup(R.RPR(RRtpathName((s./lib-tk/Tkinter.pytwm_groupŒscCsE|r%|jjdd|jd|ƒS|jjdd|j|ƒSdS(sŸSet bitmap for the iconified widget to BITMAP. Return
        the bitmap if None is given.

        Under Windows, the DEFAULT parameter can be used to set the icon
        for the widget and any descendents that don't have an icon set
        explicitly.  DEFAULT can be the relative path to a .ico file
        (example: root.iconbitmap(default='myicon.ico') ).  See Tk
        documentation for more information.RÞt
iconbitmaps-defaultN(R.RPR(RRtbitmaptdefault((s./lib-tk/Tkinter.pyt
wm_iconbitmap‘s	cCs|jjdd|jƒS(sDisplay widget as icon.RÞticonify(R.RPR(RR((s./lib-tk/Tkinter.pyt
wm_iconifyŸscCs|jjdd|j|ƒS(sVSet mask for the icon bitmap of this widget. Return the
        mask if None is given.RÞticonmask(R.RPR(RRRÿ((s./lib-tk/Tkinter.pytwm_iconmask£scCs|jjdd|j|ƒS(sSSet the name of the icon for this widget. Return the name if
        None is given.RÞticonname(R.RPR(RRtnewName((s./lib-tk/Tkinter.pytwm_iconname¨scCs(|j|jjdd|j||ƒƒS(sSet the position of the icon of this widget to X and Y. Return
        a tuple of the current values of X and X if None is given.RÞticonposition(RR.RPR(RRR?RL((s./lib-tk/Tkinter.pytwm_iconposition­scCs|jjdd|j|ƒS(sgSet widget PATHNAME to be displayed instead of icon. Return the current
        value if None is given.RÞt
iconwindow(R.RPR(RRRü((s./lib-tk/Tkinter.pyt
wm_iconwindow³scCs(|j|jjdd|j||ƒƒS(s¢Set max WIDTH and HEIGHT for this widget. If the window is gridded
        the values are given in grid units. Return the current values if None
        is given.RÞtmaxsize(RR.RPR(RRRIRý((s./lib-tk/Tkinter.pyt
wm_maxsize¸scCs(|j|jjdd|j||ƒƒS(s¢Set min WIDTH and HEIGHT for this widget. If the window is gridded
        the values are given in grid units. Return the current values if None
        is given.RÞtminsize(RR.RPR(RRRIRý((s./lib-tk/Tkinter.pyt
wm_minsize¿scCs%|j|jjdd|j|ƒƒS(sˆInstruct the window manager to ignore this widget
        if BOOLEAN is given with 1. Return the current value if None
        is given.RÞtoverrideredirect(RcR.RPR(RRRƒ((s./lib-tk/Tkinter.pytwm_overrideredirectÆscCs|jjdd|j|ƒS(s¦Instruct the window manager that the position of this widget shall
        be defined by the user if WHO is "user", and by its own policy if WHO is
        "program".RÞtpositionfrom(R.RPR(RRtwho((s./lib-tk/Tkinter.pytwm_positionfromÍscCsFt|dƒr!|j|ƒ}n|}|jjdd|j||ƒS(s´Bind function FUNC to command NAME for this widget.
        Return the function bound to NAME if None is given. NAME could be
        e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW".RaRÞtprotocol(RhR¦R.RPR(RRRTR¤RÓ((s./lib-tk/Tkinter.pytwm_protocolÓs
	cCs|jjdd|j||ƒS(syInstruct the window manager whether this width can be resized
        in WIDTH or HEIGHT. Both values are boolean values.RÞt	resizable(R.RPR(RRRIRý((s./lib-tk/Tkinter.pytwm_resizableÞscCs|jjdd|j|ƒS(s¢Instruct the window manager that the size of this widget shall
        be defined by the user if WHO is "user", and by its own policy if WHO is
        "program".RÞtsizefrom(R.RPR(RRR((s./lib-tk/Tkinter.pytwm_sizefromãscCs|jjdd|j|ƒS(s†Query or set the state of this widget as one of normal, icon,
        iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only).RÞRs(R.RPR(RRtnewstate((s./lib-tk/Tkinter.pytwm_stateéscCs|jjdd|j|ƒS(sSet the title of this widget.RÞttitle(R.RPR(RRR¹((s./lib-tk/Tkinter.pytwm_titleîscCs|jjdd|j|ƒS(s_Instruct the window manager that this widget is transient
        with regard to widget MASTER.RÞt	transient(R.RPR(RRRS((s./lib-tk/Tkinter.pytwm_transientòscCs|jjdd|jƒS(sˆWithdraw this widget from the screen such that it is unmapped
        and forgotten by the window manager. Re-draw it with wm_deiconify.RÞtwithdraw(R.RPR(RR((s./lib-tk/Tkinter.pytwm_withdraw÷sN(<R7R8R9RRäRßRæRåRèRçRëRéRìRÓRîRíRñRïRóRòRõRûRúR¥RýRûRRþRRRRRRR
R	RRRR
RRRRRRRRRRRRRRsRRR!R R#R"(((s./lib-tk/Tkinter.pyRÝ1sv				
	
	tTkcBseeZdZdZddddddd„Zd„Zd„Zd„Zd	„Z	d
„Z
d„ZRS(
szToplevel widget of Tk which represents mostly the main window
    of an application. It has an associated Tcl interpreter.RjR$iic
	Csìd|_i|_d|_d|_|dkr‰ddl}|jjtj	dƒ}|jj
|ƒ\}}|dkr‰||}q‰nd}	tj||||	t
|||ƒ|_|rÉ|jƒntjjsè|j||ƒndS(s@Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will
        be created. BASENAME will be used for the identification of the profile file (see
        readprofile).
        It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME
        is the name of the widget class.iiÿÿÿÿNs.pys.pycs.pyo(s.pys.pycs.pyo(RRSRèt	_tkloadedR.tostpathtbasenameRŠtargvtsplitextR¬tcreatetwantobjectst_loadtktflagstignore_environmenttreadprofile(
RRt
screenNametbaseNameRÊtuseTktsynctuseR&texttinteractive((s./lib-tk/Tkinter.pyRUs 				'
cCs'|js#|jjƒ|jƒndS(N(R%R.tloadtkR-(RR((s./lib-tk/Tkinter.pyR8s	
cCs3d|_|jjdƒ}|tjkrCtdtj|f‚nt|jjdƒƒ}|tjkrƒtdtj|f‚ntdkr¥tdttƒ‚n|j	dkrÀg|_	n|jjdtƒ|jjd	t
ƒ|j	jdƒ|j	jd	ƒtrtr|an|jd
|jƒdS(Nit
tk_versions4tk.h version (%s) doesn't match libtk.a version (%s)ttcl_versions6tcl.h version (%s) doesn't match libtcl.a version (%s)g@s)Tk 4.0 or higher is required; found Tk %sttkerrortexittWM_DELETE_WINDOW(R%R.R–R¬t
TK_VERSIONR+RtTCL_VERSIONt	TkVersionRWRRdR>RCReR:R;RR(RRR9R:((s./lib-tk/Tkinter.pyR- s0	
	cCsfx!|jjƒD]}|jƒqW|jjd|jƒtj|ƒtrbt|krbdandS(shDestroy this and all descendants widgets. This will
        end the application of this Tcl interpreter.RN(
RètvaluesRR.RPRR€R:R;R(RRR$((s./lib-tk/Tkinter.pyR?s
c
BsEddl}d|jkr+|jd}n	|j}|jj|d|ƒ}|jj|d|ƒ}|jj|d|ƒ}|jj|d|ƒ}i|d6}	d|	U|jj|ƒrÕ|jjd|ƒn|jj|ƒr÷e||	ƒn|jj|ƒr|jjd|ƒn|jj|ƒrAe||	ƒndS(	sÃInternal function. It reads BASENAME.tcl and CLASSNAME.tcl into
        the Tcl Interpreter and calls execfile on BASENAME.py and CLASSNAME.py if
        such a file exists in the home directory.iÿÿÿÿNtHOMEs.%s.tcls.%s.pyRRsfrom Tkinter import *tsource(	R&tenvirontcurdirR'RtisfileR.RPtexecfile(
RRR2RÊR&thomet	class_tcltclass_pytbase_tcltbase_pytdir((s./lib-tk/Tkinter.pyR0Hs$	
cCsWddl}ddl}|jdIJ||_||_||_|j|||ƒdS(s—Report callback exception on sys.stderr.

        Applications may want to override this internal function, and
        should when sys.stderr is None.iÿÿÿÿNsException in Tkinter callback(t	tracebackRŠtstderrt	last_typet
last_valuetlast_tracebacktprint_exception(RRRRR‘RNRŠ((s./lib-tk/Tkinter.pyRŽ]s
			cCst|j|ƒS(s3Delegate attribute access to the interpreter object(tgetattrR.(RRtattr((s./lib-tk/Tkinter.pyt__getattr__hsN(R7R8R9RRRUR8R-RR0RŽRV(((s./lib-tk/Tkinter.pyR$þs							cCst||||ƒS(N(R$(R1R2RÊR3((s./lib-tk/Tkinter.pytTcl{stPackcBs`eZdZid„ZeZZZd„ZeZd„Z	e	Z
ejZ
ZejZZRS(sQGeometry manager Pack.

    Base class to use the methods pack_* in every widget.cKs0|jjdd|jf|j||ƒƒdS(s(Pack a widget in the parent widget. Use as options:
        after=widget - pack it after you have packed widget
        anchor=NSEW (or subset) - position widget according to
                                  given direction
        before=widget - pack it before you will pack widget
        expand=bool - expand widget if parent size grows
        fill=NONE or X or Y or BOTH - fill widget if widget grows
        in=master - use master to contain this widget
        in_=master - see 'in' option description
        ipadx=amount - add internal padding in x direction
        ipady=amount - add internal padding in y direction
        padx=amount - add padding in x direction
        pady=amount - add padding in y direction
        side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.
        RR—N(R.RPRRµ(RRR#R‡((s./lib-tk/Tkinter.pytpack_configure‚s	cCs|jjdd|jƒdS(s:Unmap this widget and do not use it for the packing order.RtforgetN(R.RPR(RR((s./lib-tk/Tkinter.pytpack_forget–scCsQt|j|jjdd|jƒƒ}d|krM|j|dƒ|d<n|S(sEReturn information about the packing options
        for this widget.RRGtin(R5R.RPRRl(RRtd((s./lib-tk/Tkinter.pyt	pack_infošs'(R7R8R9RYRR—RÐR[RZR^RGR€R RžR¢R¡(((s./lib-tk/Tkinter.pyRX~s		
tPlacecBsSeZdZid„ZeZZZd„ZeZd„Z	e	Z
ejZ
ZRS(sSGeometry manager Place.

    Base class to use the methods place_* in every widget.cKs0|jjdd|jf|j||ƒƒdS(s Place a widget in the parent widget. Use as options:
        in=master - master relative to which the widget is placed
        in_=master - see 'in' option description
        x=amount - locate anchor of this widget at position x of master
        y=amount - locate anchor of this widget at position y of master
        relx=amount - locate anchor of this widget between 0.0 and 1.0
                      relative to width of master (1.0 is right edge)
        rely=amount - locate anchor of this widget between 0.0 and 1.0
                      relative to height of master (1.0 is bottom edge)
        anchor=NSEW (or subset) - position anchor according to given direction
        width=amount - width of this widget in pixel
        height=amount - height of this widget in pixel
        relwidth=amount - width of this widget between 0.0 and 1.0
                          relative to width of master (1.0 is the same width
                          as the master)
        relheight=amount - height of this widget between 0.0 and 1.0
                           relative to height of master (1.0 is the same
                           height as the master)
        bordermode="inside" or "outside" - whether to take border width of
                                           master widget into account
        R£R—N(R.RPRRµ(RRR#R‡((s./lib-tk/Tkinter.pytplace_configure©s	cCs|jjdd|jƒdS(sUnmap this widget.R£RZN(R.RPR(RR((s./lib-tk/Tkinter.pytplace_forgetÃscCsQt|j|jjdd|jƒƒ}d|krM|j|dƒ|d<n|S(sEReturn information about the placing options
        for this widget.R£RGR\(R5R.RPRRl(RRR]((s./lib-tk/Tkinter.pyt
place_infoÇs'(R7R8R9R`R£R—RÐRaRZRbRGR€R¤R¡(((s./lib-tk/Tkinter.pyR_¥s		tGridcBsªeZdZid„ZeZZZejZ	Zej
ZZ
d„ZeZ
d„Zd„ZeZejZZejZZejZZejZZejZZRS(sQGeometry manager Grid.

    Base class to use the methods grid_* in every widget.cKs0|jjdd|jf|j||ƒƒdS(sPosition a widget in the parent widget in a grid. Use as options:
        column=number - use cell identified with given column (starting with 0)
        columnspan=number - this widget will span several columns
        in=master - use master to contain this widget
        in_=master - see 'in' option description
        ipadx=amount - add internal padding in x direction
        ipady=amount - add internal padding in y direction
        padx=amount - add padding in x direction
        pady=amount - add padding in y direction
        row=number - use cell identified with given row (starting with 0)
        rowspan=number - this widget will span several rows
        sticky=NSEW - if cell is larger on which sides will this
                      widget stick to the cell boundary
        R¥R—N(R.RPRRµ(RRR#R‡((s./lib-tk/Tkinter.pytgrid_configureÖs	cCs|jjdd|jƒdS(sUnmap this widget.R¥RZN(R.RPR(RR((s./lib-tk/Tkinter.pytgrid_forgetëscCs|jjdd|jƒdS(s0Unmap this widget but remember the grid options.R¥RlN(R.RPR(RR((s./lib-tk/Tkinter.pytgrid_removeïscCsQt|j|jjdd|jƒƒ}d|krM|j|dƒ|d<n|S(sSReturn information about the options
        for positioning this widget in a grid.R¥RGR\(R5R.RPRRl(RRR]((s./lib-tk/Tkinter.pyt	grid_infoòs'(R7R8R9RdR¥R—RÐR€R«R¦R´R³ReRZRfRgRGR¶RµR·RžR¹R¸R»RºR¼R¡(((s./lib-tk/Tkinter.pyRcÑs

			



t
BaseWidgetcBs>eZdZd„Ziidd„Zd„Zdd„ZRS(sInternal class.cCstr*|s*tstƒant}q*n||_|j|_d}d|kre|d}|d=n|s€tt|ƒƒ}n||_|j	dkr¨d||_	n|j	d||_	i|_
|j|jj
krô|jj
|jjƒn||jj
|j<dS(s6Internal function. Sets up information about children.RTRjN(R:R;R$RSR.RRLRbRKRRèR(RRRSR#RT((s./lib-tk/Tkinter.pyt_setups*	

		c	Cs÷|rt||fƒ}n||_tj|||ƒ|jdkrRg|_ng}xG|jƒD]9}t|ƒtkre|j	|||fƒ||=qeqeW|j
j||jf||j
|ƒƒx$|D]\}}|j||ƒqÓWdS(sdConstruct a widget with the parent widget MASTER, a name WIDGETNAME
        and appropriate options.N(R(t
widgetNameRhRiRWRR›Rt	ClassTypeReR.RPRRµR—(	RRRSRjR#R‡textratclassesR&R'((s./lib-tk/Tkinter.pyRUs		!cCssx!|jjƒD]}|jƒqW|jjd|jƒ|j|jjkrb|jj|j=ntj|ƒdS(s)Destroy this and all descendants widgets.RN(	RèRARR.RPRRKRSR€(RRR$((s./lib-tk/Tkinter.pyR-scCs|jj|j|f|ƒS(N(R.RPR(RRRTR†((s./lib-tk/Tkinter.pyt_do4s(((R7R8R9RiRURRn(((s./lib-tk/Tkinter.pyRhs
		tWidgetcBseZdZRS(sxInternal class.

    Base class for a widget which can be positioned with the geometry managers
    Pack, Place or Grid.(R7R8R9(((s./lib-tk/Tkinter.pyRo8stToplevelcBseZdZdid„ZRS(s"Toplevel widget, e.g. for dialogs.c	Ks|rt||fƒ}nd}xxdddddgD]a}||kr7||}|ddkrtd|d }n
d|}|||f}||=q7q7Wtj||d	|i|ƒ|jƒ}|j|jƒƒ|j|jƒƒ|jd
|jƒdS(
s%Construct a toplevel widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, class,
        colormap, container, cursor, height, highlightbackground,
        highlightcolor, highlightthickness, menu, relief, screen, takefocus,
        use, visual, width.Rtclass_RíR5tcolormapiÿÿÿÿRgR)R1R=N((R(RhRURIRRRR(	RRRSR#R‡RltwmkeyRtoptR’((s./lib-tk/Tkinter.pyRUAs"


N(R7R8R9RRU(((s./lib-tk/Tkinter.pyRp?stButtoncBs\eZdZd	id„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„ZRS(
sButton widget.cKstj||d||ƒdS(sUConstruct a button widget with the parent MASTER.

        STANDARD OPTIONS

            activebackground, activeforeground, anchor,
            background, bitmap, borderwidth, cursor,
            disabledforeground, font, foreground
            highlightbackground, highlightcolor,
            highlightthickness, image, justify,
            padx, pady, relief, repeatdelay,
            repeatinterval, takefocus, text,
            textvariable, underline, wraplength

        WIDGET-SPECIFIC OPTIONS

            command, compound, default, height,
            overrelief, state, width
        tbuttonN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRU]scGs|jjd|jƒdS(Nt
tkButtonEnter(R.RPR(RRtdummy((s./lib-tk/Tkinter.pyRwrscGs|jjd|jƒdS(Nt
tkButtonLeave(R.RPR(RRRx((s./lib-tk/Tkinter.pyRyuscGs|jjd|jƒdS(NttkButtonDown(R.RPR(RRRx((s./lib-tk/Tkinter.pyRzxscGs|jjd|jƒdS(Nt
tkButtonUp(R.RPR(RRRx((s./lib-tk/Tkinter.pyR{{scGs|jjd|jƒdS(NttkButtonInvoke(R.RPR(RRRx((s./lib-tk/Tkinter.pyR|~scCs|jj|jdƒdS(s_Flash the button.

        This is accomplished by redisplaying
        the button several times, alternating between active and
        normal colors. At the end of the flash the button is left
        in the same normal/active state as when the command was
        invoked. This command is ignored if the button's state is
        disabled.
        tflashN(R.RPR(RR((s./lib-tk/Tkinter.pyR}s
cCs|jj|jdƒS(sInvoke the command associated with the button.

        The return value is the return value from the command,
        or an empty string if there is no command associated with
        the button. This command is ignored if the button's state
        is disabled.
        tinvoke(R.RPR(RR((s./lib-tk/Tkinter.pyR~sN(R7R8R9RRURwRyRzR{R|R}R~(((s./lib-tk/Tkinter.pyRu[s						cCsdS(Ntend((((s./lib-tk/Tkinter.pytAtEnd™scGs2d}x%|D]}|r
|d|}q
q
W|S(NtinsertR((R†Rta((s./lib-tk/Tkinter.pytAtInsert›s

cCsdS(Ns	sel.first((((s./lib-tk/Tkinter.pyt
AtSelFirst scCsdS(Nssel.last((((s./lib-tk/Tkinter.pyt	AtSelLast¢scCs)|dkrd|fSd||fSdS(Ns@%rs@%r,%r(R(R?RL((s./lib-tk/Tkinter.pytAt¤stCanvascBsIeZdZd:id„Zd„Zd„Zd„Zd„Zd:d:d„Z	d„Z
d„Zd	„Zd
„Z
d:d„Zd:d:d:d„Zd:d
„Zd:d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d „Z#d:d:d!„Z$d"„Z%d#„Z&d$„Z'd%„Z(d&„Z)d'„Z*d(„Z+d)„Z,d*„Z-d:d+„Z.e.Z/d,„Z0e0Z1d-„Z2id.„Z3d/„Z4e4Z5Z6d0„Z7d1„Z8d2d3„Z9d4„Z:d5„Z;d6„Z<d7„Z=d8„Z>d9„Z?RS(;s?Canvas widget to display graphical elements like lines or text.cKstj||d||ƒdS(sConstruct a canvas widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, closeenough,
        confine, cursor, height, highlightbackground, highlightcolor,
        highlightthickness, insertbackground, insertborderwidth,
        insertofftime, insertontime, insertwidth, offset, relief,
        scrollregion, selectbackground, selectborderwidth, selectforeground,
        state, takefocus, width, xscrollcommand, xscrollincrement,
        yscrollcommand, yscrollincrement.tcanvasN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRU¬s
cGs!|jj|jdf|ƒdS(sInternal function.taddtagN(R.RPR(RRR†((s./lib-tk/Tkinter.pyR‰·scCs|j|d|ƒdS(s*Add tag NEWTAG to all items above TAGORID.taboveN(R‰(RRtnewtagttagOrId((s./lib-tk/Tkinter.pytaddtag_aboveºscCs|j|dƒdS(sAdd tag NEWTAG to all items.R\N(R‰(RRR‹((s./lib-tk/Tkinter.pyt
addtag_all½scCs|j|d|ƒdS(s*Add tag NEWTAG to all items below TAGORID.tbelowN(R‰(RRR‹RŒ((s./lib-tk/Tkinter.pytaddtag_belowÀscCs |j|d||||ƒdS(s÷Add tag NEWTAG to item which is closest to pixel at X, Y.
        If several match take the top-most.
        All items closer than HALO are considered overlapping (all are
        closests). If START is specified the next below this tag is taken.tclosestN(R‰(RRR‹R?RLthalotstart((s./lib-tk/Tkinter.pytaddtag_closestÃscCs |j|d||||ƒdS(sLAdd tag NEWTAG to all items in the rectangle defined
        by X1,Y1,X2,Y2.tenclosedN(R‰(RRR‹tx1ty1tx2ty2((s./lib-tk/Tkinter.pytaddtag_enclosedÉscCs |j|d||||ƒdS(sWAdd tag NEWTAG to all items which overlap the rectangle
        defined by X1,Y1,X2,Y2.toverlappingN(R‰(RRR‹R–R—R˜R™((s./lib-tk/Tkinter.pytaddtag_overlappingÍscCs|j|d|ƒdS(s)Add tag NEWTAG to all items with TAGORID.twithtagN(R‰(RRR‹RŒ((s./lib-tk/Tkinter.pytaddtag_withtagÑscGs,|j|jj|jdf|ƒƒp+dS(s|Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
        which encloses all items with tags specified as arguments.R¦N(RR.RPRR(RRR†((s./lib-tk/Tkinter.pyR¦ÔscCs9|jj|jd||dƒ|r5|j|ƒndS(sbUnbind for all items with TAGORID for event SEQUENCE  the
        function identified with FUNCID.RZREN(R.RPRRX(RRRŒRVRX((s./lib-tk/Tkinter.pyt
tag_unbindÙscCs"|j|jd|f|||ƒS(s&Bind to all items with TAGORID at event SEQUENCE a call to function FUNC.

        An additional boolean parameter ADD specifies whether FUNC will be
        called additionally to the other bound function or whether it will
        replace the previous function. See bind for the return value.RZ(RYR(RRRŒRVR¤RÅ((s./lib-tk/Tkinter.pyttag_bindßscCs"t|jj|jd||ƒƒS(srReturn the canvas x coordinate of pixel position SCREENX rounded
        to nearest multiple of GRIDSPACING units.tcanvasx(RzR.RPR(RRtscreenxtgridspacing((s./lib-tk/Tkinter.pyR¡çscCs"t|jj|jd||ƒƒS(srReturn the canvas y coordinate of pixel position SCREENY rounded
        to nearest multiple of GRIDSPACING units.tcanvasy(RzR.RPR(RRtscreenyR£((s./lib-tk/Tkinter.pyR¤ìscGs2tt|jj|jj|jdf|ƒƒƒS(s8Return a list of coordinates for the item given in ARGS.tcoords(RRzR.R*RPR(RRR†((s./lib-tk/Tkinter.pyR¦ñs	c	Csst|ƒ}|d}t|ƒttfkr;|d }ni}t|jj|jd|||j||ƒŒƒS(sInternal function.iÿÿÿÿR+(	RRRRRxR.RPRRµ(RRtitemTypeR†R‡R#((s./lib-tk/Tkinter.pyt_create÷s

cOs|jd||ƒS(s6Create arc shaped region with coordinates x1,y1,x2,y2.tarc(R¨(RRR†R‡((s./lib-tk/Tkinter.pyt
create_arc	scOs|jd||ƒS(s%Create bitmap with coordinates x1,y1.Rÿ(R¨(RRR†R‡((s./lib-tk/Tkinter.pyt
create_bitmap	scOs|jd||ƒS(s)Create image item with coordinates x1,y1.RÆ(R¨(RRR†R‡((s./lib-tk/Tkinter.pytcreate_image	scOs|jd||ƒS(s-Create line with coordinates x1,y1,...,xn,yn.tline(R¨(RRR†R‡((s./lib-tk/Tkinter.pytcreate_line	scOs|jd||ƒS(s)Create oval with coordinates x1,y1,x2,y2.toval(R¨(RRR†R‡((s./lib-tk/Tkinter.pytcreate_oval	scOs|jd||ƒS(s0Create polygon with coordinates x1,y1,...,xn,yn.tpolygon(R¨(RRR†R‡((s./lib-tk/Tkinter.pytcreate_polygon	scOs|jd||ƒS(s.Create rectangle with coordinates x1,y1,x2,y2.t	rectangle(R¨(RRR†R‡((s./lib-tk/Tkinter.pytcreate_rectangle	scOs|jd||ƒS(s#Create text with coordinates x1,y1.ttext(R¨(RRR†R‡((s./lib-tk/Tkinter.pytcreate_text	scOs|jd||ƒS(s+Create window with coordinates x1,y1,x2,y2.R(R¨(RRR†R‡((s./lib-tk/Tkinter.pyt
create_window	scGs!|jj|jdf|ƒdS(sŠDelete characters of text items identified by tag or id in ARGS (possibly
        several times) from FIRST to LAST character (including).tdcharsN(R.RPR(RRR†((s./lib-tk/Tkinter.pyR¸	scGs!|jj|jdf|ƒdS(s<Delete items identified by all tag or ids contained in ARGS.RÁN(R.RPR(RRR†((s./lib-tk/Tkinter.pyRÁ!	scGs!|jj|jdf|ƒdS(siDelete tag or id given as last arguments in ARGS from items
        identified by first argument in ARGS.tdtagN(R.RPR(RRR†((s./lib-tk/Tkinter.pyR¹$	scGs,|j|jj|jdf|ƒƒp+dS(sInternal function.tfind((RR.RPR(RRR†((s./lib-tk/Tkinter.pyRº(	scCs|jd|ƒS(sReturn items above TAGORID.RŠ(Rº(RRRŒ((s./lib-tk/Tkinter.pyt
find_above,	scCs
|jdƒS(sReturn all items.R\(Rº(RR((s./lib-tk/Tkinter.pytfind_all/	scCs|jd|ƒS(sReturn all items below TAGORID.R(Rº(RRRŒ((s./lib-tk/Tkinter.pyt
find_below2	scCs|jd||||ƒS(sìReturn item which is closest to pixel at X, Y.
        If several match take the top-most.
        All items closer than HALO are considered overlapping (all are
        closests). If START is specified the next below this tag is taken.R‘(Rº(RRR?RLR’R“((s./lib-tk/Tkinter.pytfind_closest5	scCs|jd||||ƒS(s=Return all items in rectangle defined
        by X1,Y1,X2,Y2.R•(Rº(RRR–R—R˜R™((s./lib-tk/Tkinter.pyt
find_enclosed;	scCs|jd||||ƒS(sLReturn all items which overlap the rectangle
        defined by X1,Y1,X2,Y2.R›(Rº(RRR–R—R˜R™((s./lib-tk/Tkinter.pytfind_overlapping?	scCs|jd|ƒS(sReturn all items with TAGORID.R(Rº(RRRŒ((s./lib-tk/Tkinter.pytfind_withtagC	scGs|jj|jdf|ƒS(s.Set focus to the first item specified in ARGS.R—(R.RPR(RRR†((s./lib-tk/Tkinter.pyR—F	scGs)|jj|jj|jdf|ƒƒS(s=Return tags associated with the first item specified in ARGS.tgettags(R.R*RPR(RRR†((s./lib-tk/Tkinter.pyRÂI	s	cGs!|jj|jdf|ƒdS(sdSet cursor at position POS in the item identified by TAGORID.
        In ARGS TAGORID must be first.ticursorN(R.RPR(RRR†((s./lib-tk/Tkinter.pyRÃM	scGs#t|jj|jdf|ƒƒS(s?Return position of cursor as integer in item specified in ARGS.R°(RxR.RPR(RRR†((s./lib-tk/Tkinter.pyR°Q	scGs!|jj|jdf|ƒdS(sSInsert TEXT in item TAGORID at position POS. ARGS must
        be TAGORID POS TEXT.RN(R.RPR(RRR†((s./lib-tk/Tkinter.pyRT	scCs'|jj|jdf|d|fƒS(s9Return the resource value for an OPTION for item TAGORID.titemcgetR)(R.RPR(RRRŒRÄ((s./lib-tk/Tkinter.pyRÄX	s	cKs|jd|f||ƒS(sàConfigure resources of an item TAGORID.

        The values for resources are specified as keyword
        arguments. To get an overview about
        the allowed keyword arguments call the method without arguments.
        t
itemconfigure(R–(RRRŒR#R‡((s./lib-tk/Tkinter.pyRÅ\	scGs!|jj|jdf|ƒdS(sJLower an item TAGORID given in ARGS
        (optional below another item).RÛN(R.RPR(RRR†((s./lib-tk/Tkinter.pyt	tag_loweri	scGs!|jj|jdf|ƒdS(s#Move an item TAGORID given in ARGS.tmoveN(R.RPR(RRR†((s./lib-tk/Tkinter.pyRÇn	scKs)|jj|jdf|j||ƒƒS(sÏPrint the contents of the canvas to a postscript
        file. Valid options: colormap, colormode, file, fontmap,
        height, pageanchor, pageheight, pagewidth, pagex, pagey,
        rotate, witdh, x, y.t
postscript(R.RPRRµ(RRR#R‡((s./lib-tk/Tkinter.pyRÈq	scGs!|jj|jdf|ƒdS(sJRaise an item TAGORID given in ARGS
        (optional above another item).RÝN(R.RPR(RRR†((s./lib-tk/Tkinter.pyt	tag_raisex	scGs!|jj|jdf|ƒdS(s9Scale item TAGORID with XORIGIN, YORIGIN, XSCALE, YSCALE.tscaleN(R.RPR(RRR†((s./lib-tk/Tkinter.pyRÊ}	scCs#|jj|jdd||ƒdS(s&Remember the current X, Y coordinates.tscantmarkN(R.RPR(RRR?RL((s./lib-tk/Tkinter.pyt	scan_mark€	si
cCs&|jj|jdd|||ƒdS(s‚Adjust the view of the canvas to GAIN times the
        difference between X and Y and the coordinates given in
        scan_mark.RËtdragtoN(R.RPR(RRR?RLtgain((s./lib-tk/Tkinter.pytscan_dragtoƒ	scCs#|jj|jdd||ƒdS(sLAdjust the end of the selection near the cursor of an item TAGORID to index.tselecttadjustN(R.RPR(RRRŒR°((s./lib-tk/Tkinter.pyt
select_adjustˆ	scCs|jj|jddƒdS(s,Clear the selection if it is in this widget.RÑR·N(R.RPR(RR((s./lib-tk/Tkinter.pytselect_clear‹	scCs#|jj|jdd||ƒdS(s:Set the fixed end of a selection in item TAGORID to INDEX.RÑtfromN(R.RPR(RRRŒR°((s./lib-tk/Tkinter.pytselect_fromŽ	scCs|jj|jddƒpdS(s(Return the item which has the selection.RÑRN(R.RPRR(RR((s./lib-tk/Tkinter.pytselect_item‘	scCs#|jj|jdd||ƒdS(s=Set the variable end of a selection in item TAGORID to INDEX.RÑttoN(R.RPR(RRRŒR°((s./lib-tk/Tkinter.pyt	select_to”	scCs|jj|jd|ƒpdS(s$Return the type of the item TAGORID.RN(R.RPRR(RRRŒ((s./lib-tk/Tkinter.pyR—	sN(@R7R8R9RRUR‰RRŽRR”RšRœRžR¦RŸR R¡R¤R¦R¨RªR«R¬R®R°R²R´R¶R·R¸RÁR¹RºR»R¼R½R¾R¿RÀRÁR—RÂRÃR°RRÄRÅt
itemconfigRÆRÛRÇRÈRÉRÍRßRÊRÍRÐRÓRÔRÖR×RÙR(((s./lib-tk/Tkinter.pyR‡ªsx																																						
							tCheckbuttoncBsJeZdZdid„Zd„Zd„Zd„Zd„Zd„Z	RS(s7Checkbutton widget which is either in on- or off-state.cKstj||d||ƒdS(sConstruct a checkbutton widget with the parent MASTER.

        Valid resource names: activebackground, activeforeground, anchor,
        background, bd, bg, bitmap, borderwidth, command, cursor,
        disabledforeground, fg, font, foreground, height,
        highlightbackground, highlightcolor, highlightthickness, image,
        indicatoron, justify, offvalue, onvalue, padx, pady, relief,
        selectcolor, selectimage, state, takefocus, text, textvariable,
        underline, variable, width, wraplength.tcheckbuttonN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRU	s
cCs|jj|jdƒdS(sPut the button in off-state.tdeselectN(R.RPR(RR((s./lib-tk/Tkinter.pyRݨ	scCs|jj|jdƒdS(sFlash the button.R}N(R.RPR(RR((s./lib-tk/Tkinter.pyR}«	scCs|jj|jdƒS(s<Toggle the button and invoke a command if given as resource.R~(R.RPR(RR((s./lib-tk/Tkinter.pyR~®	scCs|jj|jdƒdS(sPut the button in on-state.RÑN(R.RPR(RR((s./lib-tk/Tkinter.pyRѱ	scCs|jj|jdƒdS(sToggle the button.ttoggleN(R.RPR(RR((s./lib-tk/Tkinter.pyRÞ´	sN(
R7R8R9RRURÝR}R~RÑRÞ(((s./lib-tk/Tkinter.pyRÛ›	s				tEntrycBs¹eZdZdid„Zdd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„ZeZ
d
„ZeZd„ZeZd„ZeZd
„ZeZd„ZeZRS(s1Entry widget which allows to display simple text.cKstj||d||ƒdS(sConstruct an entry widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, cursor,
        exportselection, fg, font, foreground, highlightbackground,
        highlightcolor, highlightthickness, insertbackground,
        insertborderwidth, insertofftime, insertontime, insertwidth,
        invalidcommand, invcmd, justify, relief, selectbackground,
        selectborderwidth, selectforeground, show, state, takefocus,
        textvariable, validate, validatecommand, vcmd, width,
        xscrollcommand.tentryN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRUº	scCs |jj|jd||ƒdS(s.Delete text from FIRST to LAST (not included).RÁN(R.RPR(RRtfirsttlast((s./lib-tk/Tkinter.pyRÁÆ	scCs|jj|jdƒS(sReturn the text.R](R.RPR(RR((s./lib-tk/Tkinter.pyR]É	scCs|jj|jd|ƒdS(sInsert cursor at INDEX.RÃN(R.RPR(RRR°((s./lib-tk/Tkinter.pyRÃÌ	scCst|jj|jd|ƒƒS(sReturn position of cursor.R°(RxR.RPR(RRR°((s./lib-tk/Tkinter.pyR°Ï	scCs |jj|jd||ƒdS(sInsert STRING at INDEX.RN(R.RPR(RRR°R¹((s./lib-tk/Tkinter.pyRÓ	scCs |jj|jdd|ƒdS(s&Remember the current X, Y coordinates.RËRÌN(R.RPR(RRR?((s./lib-tk/Tkinter.pyRÍÖ	scCs |jj|jdd|ƒdS(s€Adjust the view of the canvas to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.RËRÎN(R.RPR(RRR?((s./lib-tk/Tkinter.pyRÐÙ	scCs |jj|jdd|ƒdS(s9Adjust the end of the selection near the cursor to INDEX.RÏRÒN(R.RPR(RRR°((s./lib-tk/Tkinter.pytselection_adjustÞ	scCs|jj|jddƒdS(s,Clear the selection if it is in this widget.RÏR·N(R.RPR(RR((s./lib-tk/Tkinter.pyRÐâ	scCs |jj|jdd|ƒdS(s*Set the fixed end of a selection to INDEX.RÏRÕN(R.RPR(RRR°((s./lib-tk/Tkinter.pytselection_fromæ	scCs%|jj|jj|jddƒƒS(sSReturn True if there are characters selected in the entry, False
        otherwise.RÏtpresent(R.RORPR(RR((s./lib-tk/Tkinter.pytselection_presentê	s	cCs#|jj|jdd||ƒdS(s3Set the selection from START to END (not included).RÏtrangeN(R.RPR(RRR“R((s./lib-tk/Tkinter.pytselection_rangeð	scCs |jj|jdd|ƒdS(s-Set the variable end of a selection to INDEX.RÏRØN(R.RPR(RRR°((s./lib-tk/Tkinter.pytselection_toô	sN(R7R8R9RRURÁR]RÃR°RRÍRÐRãRÓRÐRÔRäRÖRætselect_presentRètselect_rangeRéRÙ(((s./lib-tk/Tkinter.pyR߸	s*												tFramecBseZdZdid„ZRS(sFFrame widget which may contain other widgets and can have a 3D border.cKs„t||fƒ}d}d|kr>d|df}|d=n&d|krdd|df}|d=ntj||d|i|ƒdS(sConstruct a frame widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, class,
        colormap, container, cursor, height, highlightbackground,
        highlightcolor, highlightthickness, relief, takefocus, visual, width.Rqs-classRíRòN((R(RoRU(RRRSR#R‡Rl((s./lib-tk/Tkinter.pyRUû	s

N(R7R8R9RRU(((s./lib-tk/Tkinter.pyRìù	stLabelcBseZdZdid„ZRS(s0Label widget which can display text and bitmaps.cKstj||d||ƒdS(sùConstruct a label widget with the parent MASTER.

        STANDARD OPTIONS

            activebackground, activeforeground, anchor,
            background, bitmap, borderwidth, cursor,
            disabledforeground, font, foreground,
            highlightbackground, highlightcolor,
            highlightthickness, image, justify,
            padx, pady, relief, takefocus, text,
            textvariable, underline, wraplength

        WIDGET-SPECIFIC OPTIONS

            height, state, width

        tlabelN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRU
sN(R7R8R9RRU(((s./lib-tk/Tkinter.pyRí
stListboxcBsìeZdZdid„Zd„Zd„Zd„Zdd„Zdd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„ZeZdd„ZeZd„ZeZdd„ZeZd„Zd„Zdd„ZeZRS(s3Listbox widget which can display a list of strings.cKstj||d||ƒdS(s–Construct a listbox widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, cursor,
        exportselection, fg, font, foreground, height, highlightbackground,
        highlightcolor, highlightthickness, relief, selectbackground,
        selectborderwidth, selectforeground, selectmode, setgrid, takefocus,
        width, xscrollcommand, yscrollcommand, listvariable.tlistboxN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRU#
scCs|jj|jd|ƒdS(s"Activate item identified by INDEX.tactivateN(R.RPR(RRR°((s./lib-tk/Tkinter.pyRñ,
scCs(|j|jj|jd|ƒƒp'dS(sxReturn a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
        which encloses the item identified by the given index.R¦N(RR.RPRR(RRR°((s./lib-tk/Tkinter.pyR¦/
scCs%|j|jj|jdƒƒp$dS(s.Return the indices of currently selected item.tcurselection((RR.RPR(RR((s./lib-tk/Tkinter.pyRò3
scCs |jj|jd||ƒdS(s+Delete items from FIRST to LAST (included).RÁN(R.RPR(RRRáRâ((s./lib-tk/Tkinter.pyRÁ6
scCsQ|dk	r4|jj|jj|jd||ƒƒS|jj|jd|ƒSdS(s0Get list of items from FIRST to LAST (included).R]N(RR.R*RPR(RRRáRâ((s./lib-tk/Tkinter.pyR]9
scCs5|jj|jd|ƒ}|dkr+dSt|ƒS(s+Return index of item identified with INDEX.R°RšN(R.RPRRRx(RRR°ti((s./lib-tk/Tkinter.pyR°@
scGs$|jj|jd|f|ƒdS(sInsert ELEMENTS at INDEX.RN(R.RPR(RRR°telements((s./lib-tk/Tkinter.pyRE
scCst|jj|jd|ƒƒS(s5Get index of item which is nearest to y coordinate Y.tnearest(RxR.RPR(RRRL((s./lib-tk/Tkinter.pyRõH
scCs#|jj|jdd||ƒdS(s&Remember the current X, Y coordinates.RËRÌN(R.RPR(RRR?RL((s./lib-tk/Tkinter.pyRÍL
scCs#|jj|jdd||ƒdS(sAdjust the view of the listbox to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.RËRÎN(R.RPR(RRR?RL((s./lib-tk/Tkinter.pyRÐO
scCs|jj|jd|ƒdS(s"Scroll such that INDEX is visible.tseeN(R.RPR(RRR°((s./lib-tk/Tkinter.pyRöT
scCs |jj|jdd|ƒdS(s-Set the fixed end oft the selection to INDEX.RÏtanchorN(R.RPR(RRR°((s./lib-tk/Tkinter.pytselection_anchorW
scCs#|jj|jdd||ƒdS(s2Clear the selection from FIRST to LAST (included).RÏR·N(R.RPR(RRRáRâ((s./lib-tk/Tkinter.pyRÐ[
scCs(|jj|jj|jdd|ƒƒS(s+Return 1 if INDEX is part of the selection.RÏtincludes(R.RORPR(RRR°((s./lib-tk/Tkinter.pytselection_includes`
scCs#|jj|jdd||ƒdS(siSet the selection from FIRST to LAST (included) without
        changing the currently selected elements.RÏRNN(R.RPR(RRRáRâ((s./lib-tk/Tkinter.pyt
selection_sete
scCst|jj|jdƒƒS(s-Return the number of elements in the listbox.Rº(RxR.RPR(RR((s./lib-tk/Tkinter.pyRºj
scCs'|jj|jdf|d|fƒS(s4Return the resource value for an ITEM and an OPTION.RÄR)(R.RPR(RRR°RÄ((s./lib-tk/Tkinter.pyRÄm
s	cKs|jd|f||ƒS(s9Configure resources of an ITEM.

        The values for resources are specified as keyword arguments.
        To get an overview about the allowed keyword arguments
        call the method without arguments.
        Valid resource names: background, bg, foreground, fg,
        selectbackground, selectforeground.RÅ(R–(RRR°R#R‡((s./lib-tk/Tkinter.pyRÅq
sN(R7R8R9RRURñR¦RòRÁR]R°RRõRÍRÐRöRøt
select_anchorRÐRÔRútselect_includesRût
select_setRºRÄRÅRÚ(((s./lib-tk/Tkinter.pyRï!
s2															tMenucBs‚eZdZd%id„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
d„Zd„Zid„Zid„Zid„Zid„Zid„Zid„Zid„Zid„Zid„Zid„Zid„Zid„Zd%d„Zd„Zd%d„Z e Z!d„Z"d „Z#d!„Z$d"„Z%d#„Z&d$„Z'RS(&sPMenu widget which allows to display menu bars, pull-down menus and pop-up menus.cKstj||d||ƒdS(sAConstruct menu widget with the parent MASTER.

        Valid resource names: activebackground, activeborderwidth,
        activeforeground, background, bd, bg, borderwidth, cursor,
        disabledforeground, fg, font, foreground, postcommand, relief,
        selectcolor, takefocus, tearoff, tearoffcommand, title, type.tmenuN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRU~
scCs&ddl}|jdtddƒdS(Niÿÿÿÿs=tk_bindForTraversal() does nothing and will be removed in 3.6Rˆi(R‰RŠR‹(RRR‰((s./lib-tk/Tkinter.pyttk_bindForTraversal†
s	cCs|jjd|jƒdS(Nt	tk_mbPost(R.RPR(RR((s./lib-tk/Tkinter.pyRŒ
scCs|jjdƒdS(Nttk_mbUnpost(R.RP(RR((s./lib-tk/Tkinter.pyRŽ
scCs|jjd|j|ƒdS(Nttk_traverseToMenu(R.RPR(RRRu((s./lib-tk/Tkinter.pyR
scCs|jjd|j|ƒdS(Nttk_traverseWithinMenu(R.RPR(RRRu((s./lib-tk/Tkinter.pyR’
scCs|jjd|jƒS(Nttk_getMenuButtons(R.RPR(RR((s./lib-tk/Tkinter.pyR”
scCs|jjd|ƒdS(Nttk_nextMenu(R.RP(RRtcount((s./lib-tk/Tkinter.pyR–
scCs|jjd|ƒdS(Nttk_nextMenuEntry(R.RP(RRR((s./lib-tk/Tkinter.pyR	˜
scCs|jjd|jƒdS(Nt
tk_invokeMenu(R.RPR(RR((s./lib-tk/Tkinter.pyR
š
scCs|jjd|jƒdS(Nttk_firstMenu(R.RPR(RR((s./lib-tk/Tkinter.pyRœ
scCs|jjd|jƒdS(Nttk_mbButtonDown(R.RPR(RR((s./lib-tk/Tkinter.pyRž
sREcCs#|jjd|j|||ƒdS(s/Post the menu at position X,Y with entry ENTRY.ttk_popupN(R.RPR(RRR?RLRà((s./lib-tk/Tkinter.pyR
 
scCs|jj|jd|ƒdS(sActivate entry at INDEX.RñN(R.RPR(RRR°((s./lib-tk/Tkinter.pyRñ£
scKs0|jj|jd|f|j||ƒƒdS(sInternal function.RÅN(R.RPRRµ(RRR§R#R‡((s./lib-tk/Tkinter.pyRŦ
scKs|jd|p|ƒdS(sAdd hierarchical menu item.tcascadeN(RÅ(RRR#R‡((s./lib-tk/Tkinter.pytadd_cascadeª
scKs|jd|p|ƒdS(sAdd checkbutton menu item.RÜN(RÅ(RRR#R‡((s./lib-tk/Tkinter.pytadd_checkbutton­
scKs|jd|p|ƒdS(sAdd command menu item.RÓN(RÅ(RRR#R‡((s./lib-tk/Tkinter.pytadd_command°
scKs|jd|p|ƒdS(sAddd radio menu item.tradiobuttonN(RÅ(RRR#R‡((s./lib-tk/Tkinter.pytadd_radiobutton³
scKs|jd|p|ƒdS(sAdd separator.t	separatorN(RÅ(RRR#R‡((s./lib-tk/Tkinter.pyt
add_separator¶
scKs3|jj|jd||f|j||ƒƒdS(sInternal function.RN(R.RPRRµ(RRR°R§R#R‡((s./lib-tk/Tkinter.pyR¹
scKs|j|d|p|ƒdS(s$Add hierarchical menu item at INDEX.RN(R(RRR°R#R‡((s./lib-tk/Tkinter.pytinsert_cascade½
scKs|j|d|p|ƒdS(s#Add checkbutton menu item at INDEX.RÜN(R(RRR°R#R‡((s./lib-tk/Tkinter.pytinsert_checkbuttonÀ
scKs|j|d|p|ƒdS(sAdd command menu item at INDEX.RÓN(R(RRR°R#R‡((s./lib-tk/Tkinter.pytinsert_commandÃ
scKs|j|d|p|ƒdS(sAddd radio menu item at INDEX.RN(R(RRR°R#R‡((s./lib-tk/Tkinter.pytinsert_radiobuttonÆ
scKs|j|d|p|ƒdS(sAdd separator at INDEX.RN(R(RRR°R#R‡((s./lib-tk/Tkinter.pytinsert_separatorÉ
scCsß|dkr|}n|j|ƒ|j|ƒ}}|dksL|dkr[d\}}nxat||dƒD]L}d|j|ƒkrot|j|dƒƒ}|r»|j|ƒq»qoqoW|jj|j	d||ƒdS(s7Delete menu items between INDEX1 and INDEX2 (included).iiÿÿÿÿiRÓRÁN(iiÿÿÿÿ(
RR°RçtentryconfigRt	entrycgetRXR.RPR(RRtindex1tindex2t
num_index1t
num_index2RóR$((s./lib-tk/Tkinter.pyRÁÌ
s	cCs |jj|jd|d|ƒS(s>Return the resource value of an menu item for OPTION at INDEX.RR)(R.RPR(RRR°RÄ((s./lib-tk/Tkinter.pyRÛ
scKs|jd|f||ƒS(sConfigure a menu item at INDEX.tentryconfigure(R–(RRR°R#R‡((s./lib-tk/Tkinter.pyR!Þ
scCs5|jj|jd|ƒ}|dkr+dSt|ƒS(s4Return the index of a menu item identified by INDEX.R°RšN(R.RPRRRx(RRR°Ró((s./lib-tk/Tkinter.pyR°â
scCs|jj|jd|ƒS(sRInvoke a menu item identified by INDEX and execute
        the associated command.R~(R.RPR(RRR°((s./lib-tk/Tkinter.pyR~ç
scCs |jj|jd||ƒdS(sDisplay a menu at position X,Y.tpostN(R.RPR(RRR?RL((s./lib-tk/Tkinter.pyR"ë
scCs|jj|jd|ƒS(s*Return the type of the menu item at INDEX.R(R.RPR(RRR°((s./lib-tk/Tkinter.pyRî
scCs|jj|jdƒdS(s
Unmap a menu.tunpostN(R.RPR(RR((s./lib-tk/Tkinter.pyR#ñ
scCst|jj|jd|ƒƒS(sEReturn the y-position of the topmost pixel of the menu item at INDEX.t	yposition(RxR.RPR(RRR°((s./lib-tk/Tkinter.pyR$ô
sN((R7R8R9RRURRRRRRRR	R
RRR
RñRÅRRRRRRRRRRRRÁRR!RR°R~R"RR#R$(((s./lib-tk/Tkinter.pyRÿ|
sJ																		t
MenubuttoncBseZdZdid„ZRS(s(Menubutton widget, obsolete since Tk8.0.cKstj||d||ƒdS(Nt
menubutton(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRUû
sN(R7R8R9RRU(((s./lib-tk/Tkinter.pyR%ù
stMessagecBseZdZdid„ZRS(sKMessage widget to display multiline text. Obsolete since Label does it too.cKstj||d||ƒdS(Ntmessage(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRUsN(R7R8R9RRU(((s./lib-tk/Tkinter.pyR'þ
stRadiobuttoncBsAeZdZdid„Zd„Zd„Zd„Zd„ZRS(sGRadiobutton widget which shows only one of several buttons in on-state.cKstj||d||ƒdS(söConstruct a radiobutton widget with the parent MASTER.

        Valid resource names: activebackground, activeforeground, anchor,
        background, bd, bg, bitmap, borderwidth, command, cursor,
        disabledforeground, fg, font, foreground, height,
        highlightbackground, highlightcolor, highlightthickness, image,
        indicatoron, justify, padx, pady, relief, selectcolor, selectimage,
        state, takefocus, text, textvariable, underline, value, variable,
        width, wraplength.RN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRUs
cCs|jj|jdƒdS(sPut the button in off-state.RÝN(R.RPR(RR((s./lib-tk/Tkinter.pyRÝscCs|jj|jdƒdS(sFlash the button.R}N(R.RPR(RR((s./lib-tk/Tkinter.pyR}scCs|jj|jdƒS(s<Toggle the button and invoke a command if given as resource.R~(R.RPR(RR((s./lib-tk/Tkinter.pyR~scCs|jj|jdƒdS(sPut the button in on-state.RÑN(R.RPR(RR((s./lib-tk/Tkinter.pyRÑsN(	R7R8R9RRURÝR}R~RÑ(((s./lib-tk/Tkinter.pyR)s			tScalecBsDeZdZdid„Zd„Zd„Zdd„Zd„ZRS(s1Scale widget which can display a numerical scale.cKstj||d||ƒdS(s×Construct a scale widget with the parent MASTER.

        Valid resource names: activebackground, background, bigincrement, bd,
        bg, borderwidth, command, cursor, digits, fg, font, foreground, from,
        highlightbackground, highlightcolor, highlightthickness, label,
        length, orient, relief, repeatdelay, repeatinterval, resolution,
        showvalue, sliderlength, sliderrelief, state, takefocus,
        tickinterval, to, troughcolor, variable, width.RÊN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRU s	cCsE|jj|jdƒ}yt|ƒSWntk
r@t|ƒSXdS(s*Get the current value as integer or float.R]N(R.RPRRxR@Rz(RRR((s./lib-tk/Tkinter.pyR]*s

cCs|jj|jd|ƒdS(sSet the value to VALUE.RNN(R.RPR(RRR((s./lib-tk/Tkinter.pyRN1scCs"|j|jj|jd|ƒƒS(s•Return a tuple (X,Y) of the point along the centerline of the
        trough that corresponds to VALUE or the current value if None is
        given.R¦(RR.RPR(RRR((s./lib-tk/Tkinter.pyR¦4scCs|jj|jd||ƒS(scReturn where the point X,Y lies. Valid return values are "slider",
        "though1" and "though2".tidentify(R.RPR(RRR?RL((s./lib-tk/Tkinter.pyR+:sN(	R7R8R9RRUR]RNR¦R+(((s./lib-tk/Tkinter.pyR*s
		t	ScrollbarcBsSeZdZdid„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	s?Scrollbar widget which displays a slider at a certain position.cKstj||d||ƒdS(slConstruct a scrollbar widget with the parent MASTER.

        Valid resource names: activebackground, activerelief,
        background, bd, bg, borderwidth, command, cursor,
        elementborderwidth, highlightbackground,
        highlightcolor, highlightthickness, jump, orient,
        relief, repeatdelay, repeatinterval, takefocus,
        troughcolor, width.t	scrollbarN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRUAs	cCs|jj|jd|ƒdS(sxDisplay the element at INDEX with activebackground and activerelief.
        INDEX can be "arrow1","slider" or "arrow2".RñN(R.RPR(RRR°((s./lib-tk/Tkinter.pyRñKscCs"t|jj|jd||ƒƒS(snReturn the fractional change of the scrollbar setting if it
        would be moved by DELTAX or DELTAY pixels.R|(RzR.RPR(RRtdeltaxtdeltay((s./lib-tk/Tkinter.pyR|OscCs"t|jj|jd||ƒƒS(sRReturn the fractional value which corresponds to a slider
        position of X,Y.RÕ(RzR.RPR(RRR?RL((s./lib-tk/Tkinter.pyRÕTscCs|jj|jd||ƒS(sYReturn the element under position X,Y as one of
        "arrow1","slider","arrow2" or "".R+(R.RPR(RRR?RL((s./lib-tk/Tkinter.pyR+XscCs|j|jj|jdƒƒS(sZReturn the current fractional values (upper and lower end)
        of the slider position.R](RbR.RPR(RR((s./lib-tk/Tkinter.pyR]\scGs!|jj|jdf|ƒdS(siSet the fractional values of the slider position (upper and
        lower ends as value between 0 and 1).RNN(R.RPR(RRR†((s./lib-tk/Tkinter.pyRN`sN(R7R8R9RRURñR|RÕR+R]RN(((s./lib-tk/Tkinter.pyR,?s
					tTextc	BsHeZdZd5id„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d5d„Zd5d	„Zd
„Z
d5d5d„Zd„Zd5d
„Zd„Zd„Zd„Zd„Zd5d„Zd„Zd5d„Zid„Zd„Zd„Zd„Zd5d„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d „Z#d5d5d5d5d5d5d5d5d!„Z$d"„Z%d#„Z&d5d$„Z'd5d%„Z(d&„Z)d5d'„Z*e*Z+d(„Z,d5d)„Z-d5d*„Z.d5d+„Z/d5d,„Z0d5d-„Z1d.„Z2d5d/„Z3d0„Z4d5d1„Z5e5Z6id2„Z7d3„Z8d4„Z9RS(6s4Text widget which can display text in various forms.cKstj||d||ƒdS(s¼Construct a text widget with the parent MASTER.

        STANDARD OPTIONS

            background, borderwidth, cursor,
            exportselection, font, foreground,
            highlightbackground, highlightcolor,
            highlightthickness, insertbackground,
            insertborderwidth, insertofftime,
            insertontime, insertwidth, padx, pady,
            relief, selectbackground,
            selectborderwidth, selectforeground,
            setgrid, takefocus,
            xscrollcommand, yscrollcommand,

        WIDGET-SPECIFIC OPTIONS

            autoseparators, height, maxundo,
            spacing1, spacing2, spacing3,
            state, tabs, undo, width, wrap,

        RµN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRUiscGs,|j|jj|jdf|ƒƒp+dS(s„Return a tuple of (x,y,width,height) which gives the bounding
        box of the visible part of the character at the index in ARGS.R¦N(RR.RPRR(RRR†((s./lib-tk/Tkinter.pyR¦scCs|jjd|j|ƒdS(Nttk_textSelectTo(R.RPR(RRR°((s./lib-tk/Tkinter.pyR1†scCs|jjd|jƒdS(Nttk_textBackspace(R.RPR(RR((s./lib-tk/Tkinter.pyR2ˆscCs#|jjd|j|||ƒdS(Nttk_textIndexCloser(R.RPR(RRR‚R~R$((s./lib-tk/Tkinter.pyR3ŠscCs|jjd|j|ƒdS(Nttk_textResetAnchor(R.RPR(RRR°((s./lib-tk/Tkinter.pyR4ŒscCs+|jj|jj|jd|||ƒƒS(s€Return whether between index INDEX1 and index INDEX2 the
        relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=.tcompare(R.RORPR(RRRtopR((s./lib-tk/Tkinter.pyR5ŽscCsK|dkr.|jj|jj|jdƒƒS|jj|jd|ƒdS(sjTurn on the internal consistency checks of the B-Tree inside the text
        widget according to BOOLEAN.tdebugN(RR.RORPR(RRRƒ((s./lib-tk/Tkinter.pyR7“s"cCs |jj|jd||ƒdS(s?Delete the characters between INDEX1 and INDEX2 (not included).RÁN(R.RPR(RRRR((s./lib-tk/Tkinter.pyRÁ™scCs"|j|jj|jd|ƒƒS(s©Return tuple (x,y,width,height,baseline) giving the bounding box
        and baseline position of the visible part of the line containing
        the character at INDEX.t	dlineinfo(RR.RPR(RRR°((s./lib-tk/Tkinter.pyR8œsc
Ksùg}d}d}|s3g}|d„}|}nz¨t|tƒs[|j|ƒ}}n|d|g7}x,|D]$}	||	rr|jd|	ƒqrqrW|j|ƒ|r½|j|ƒn|jj|jd|Œ|SWd|rô|j|ƒnXdS(sŽReturn the contents of the widget between index1 and index2.

        The type of contents returned in filtered based on the keyword
        parameters; if 'all', 'image', 'mark', 'tag', 'text', or 'window' are
        given and true, then the corresponding items are returned. The result
        is a list of triples of the form (key, value, index). If none of the
        keywords are true then 'all' is used by default.

        If the 'command' argument is given, it is called once for each element
        of the list of triples, with the values of each triple serving as the
        arguments to the function. In this case the list is not returned.cSs|j|||fƒdS(N(Re(R4RR°Rê((s./lib-tk/Tkinter.pyt
append_triple¶ss-commandR)tdumpN(	RR
RR¦ReR.RPRRX(
RRRRRÓR‡R†t	func_nameRêR9R4((s./lib-tk/Tkinter.pyR:¡s*	


cGs|jj|jd|ŒS(srInternal method

        This method controls the undo mechanism and
        the modified flag. The exact behavior of the
        command depends on the option argument that
        follows the edit argument. The following forms
        of the command are currently supported:

        edit_modified, edit_redo, edit_reset, edit_separator
        and edit_undo

        tedit(R.RPR(RRR†((s./lib-tk/Tkinter.pyR<És
cCs|jd|ƒS(s;Get or Set the modified flag

        If arg is not specified, returns the modified
        flag of the widget. The insert, delete, edit undo and
        edit redo commands or the user can set or clear the
        modified flag. If boolean is specified, sets the
        modified flag of the widget to arg.
        tmodified(R<(RRtarg((s./lib-tk/Tkinter.pyt
edit_modifiedØs	cCs
|jdƒS(sRedo the last undone edit

        When the undo option is true, reapplies the last
        undone edits provided no other edits were done since
        then. Generates an error when the redo stack is empty.
        Does nothing when the undo option is false.
        tredo(R<(RR((s./lib-tk/Tkinter.pyt	edit_redoãscCs
|jdƒS(s(Clears the undo and redo stacks
        treset(R<(RR((s./lib-tk/Tkinter.pyt
edit_resetíscCs
|jdƒS(snInserts a separator (boundary) on the undo stack.

        Does nothing when the undo option is false
        R(R<(RR((s./lib-tk/Tkinter.pytedit_separatoròscCs
|jdƒS(sDUndoes the last edit action

        If the undo option is true. An edit action is defined
        as all the insert and delete commands that are recorded
        on the undo stack in between two separators. Generates
        an error when the undo stack is empty. Does nothing
        when the undo option is false
        tundo(R<(RR((s./lib-tk/Tkinter.pyt	edit_undoùs	cCs|jj|jd||ƒS(s5Return the text from INDEX1 to INDEX2 (not included).R](R.RPR(RRRR((s./lib-tk/Tkinter.pyR]scCsY|d dkrd|}n|ddkr:|d }n|jj|jdd||ƒS(s9Return the value of OPTION of an embedded image at INDEX.iR)iÿÿÿÿRgRÆR˜(R.RPR(RRR°RÄ((s./lib-tk/Tkinter.pyt
image_cgets


cKs|jdd|f||ƒS(s%Configure an embedded image at INDEX.RÆR—(R–(RRR°R#R‡((s./lib-tk/Tkinter.pytimage_configurescKs+|jj|jdd||j||ƒŒS(s"Create an embedded image at INDEX.RÆR+(R.RPRRµ(RRR°R#R‡((s./lib-tk/Tkinter.pytimage_creates	cCs|jj|jddƒS(s3Return all names of embedded images in this widget.RÆRÇ(R.RPR(RR((s./lib-tk/Tkinter.pyRÈscCst|jj|jd|ƒƒS(s1Return the index in the form line.char for INDEX.R°(RR.RPR(RRR°((s./lib-tk/Tkinter.pyR°scGs'|jj|jd||f|ƒdS(sŠInsert CHARS before the characters at INDEX. An additional
        tag can be given in ARGS. Additional CHARS and tags can follow in ARGS.RN(R.RPR(RRR°tcharsR†((s./lib-tk/Tkinter.pyRscCs"|jj|jdd||fƒS(s„Change the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT).
        Return the current value if None is given for DIRECTION.RÌtgravity(R.RPR(RRtmarkNamet	direction((s./lib-tk/Tkinter.pytmark_gravity!s	cCs%|jj|jj|jddƒƒS(sReturn all mark names.RÌRÇ(R.R*RPR(RR((s./lib-tk/Tkinter.pyt
mark_names&scCs#|jj|jdd||ƒdS(s0Set mark MARKNAME before the character at INDEX.RÌRNN(R.RPR(RRRLR°((s./lib-tk/Tkinter.pytmark_set*scGs$|jj|jddf|ƒdS(sDelete all marks in MARKNAMES.RÌtunsetN(R.RPR(RRt	markNames((s./lib-tk/Tkinter.pyt
mark_unset-scCs"|jj|jdd|ƒp!dS(s-Return the name of the next mark after INDEX.RÌtnextN(R.RPRR(RRR°((s./lib-tk/Tkinter.pyt	mark_next0scCs"|jj|jdd|ƒp!dS(s2Return the name of the previous mark before INDEX.RÌtpreviousN(R.RPRR(RRR°((s./lib-tk/Tkinter.pyt
mark_previous3scCs#|jj|jdd||ƒdS(s&Remember the current X, Y coordinates.RËRÌN(R.RPR(RRR?RL((s./lib-tk/Tkinter.pyRÍ6scCs#|jj|jdd||ƒdS(s~Adjust the view of the text to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.RËRÎN(R.RPR(RRR?RL((s./lib-tk/Tkinter.pyRÐ9scCs(|jdg}|r%|jdƒn|r;|jdƒn|rQ|jdƒn|rg|jdƒn|r}|jdƒn|
r“|jdƒn|	r¶|jdƒ|j|	ƒn|rÜ|d	d
krÜ|jdƒn|j|ƒ|j|ƒ|r|j|ƒnt|jjt|ƒƒƒS(s‹Search PATTERN beginning from INDEX until STOPINDEX.
        Return the index of the first character of a match or an
        empty string.Rs	-forwardss
-backwardss-exacts-regexps-nocases-elides-countiR)s--(RReRR.RPR(RRRÆR°t	stopindextforwardst	backwardstexacttregexptnocaseRtelideR†((s./lib-tk/Tkinter.pyR>s.


cCs|jj|jd|ƒdS(s3Scroll such that the character at INDEX is visible.RöN(R.RPR(RRR°((s./lib-tk/Tkinter.pyRöQscGs*|jj|jdd||f|ƒdS(s|Add tag TAGNAME to all characters between INDEX1 and index2 in ARGS.
        Additional pairs of indices may follow in ARGS.ttagRÅN(R.RPR(RRttagNameRR†((s./lib-tk/Tkinter.pyttag_addTs	cCs<|jj|jdd||dƒ|r8|j|ƒndS(sgUnbind for all characters with TAGNAME for event SEQUENCE  the
        function identified with FUNCID.R_RZREN(R.RPRRX(RRR`RVRX((s./lib-tk/Tkinter.pyRŸYs"cCs%|j|jdd|f|||ƒS(s+Bind to all characters with TAGNAME at event SEQUENCE a call to function FUNC.

        An additional boolean parameter ADD specifies whether FUNC will be
        called additionally to the other bound function or whether it will
        replace the previous function. See bind for the return value.R_RZ(RYR(RRR`RVR¤RÅ((s./lib-tk/Tkinter.pyR _scCsY|d dkrd|}n|ddkr:|d }n|jj|jdd||ƒS(s+Return the value of OPTION for tag TAGNAME.iR)iÿÿÿÿRgR_R˜(R.RPR(RRR`RÄ((s./lib-tk/Tkinter.pyttag_cgetgs


cKs|jdd|f||ƒS(sConfigure a tag TAGNAME.R_R—(R–(RRR`R#R‡((s./lib-tk/Tkinter.pyt
tag_configurenscGs$|jj|jddf|ƒdS(sDelete all tags in TAGNAMES.R_RÁN(R.RPR(RRttagNames((s./lib-tk/Tkinter.pyt
tag_deleterscCs#|jj|jdd||ƒdS(s`Change the priority of tag TAGNAME such that it is lower
        than the priority of BELOWTHIS.R_RÛN(R.RPR(RRR`RÜ((s./lib-tk/Tkinter.pyRÆuscCs(|jj|jj|jdd|ƒƒS(sReturn a list of all tag names.R_RÇ(R.R*RPR(RRR°((s./lib-tk/Tkinter.pyt	tag_namesys	cCs.|jj|jj|jdd|||ƒƒS(s¹Return a list of start and end index for the first sequence of
        characters between INDEX1 and INDEX2 which all have tag TAGNAME.
        The text is searched forward from INDEX1.R_t	nextrange(R.R*RPR(RRR`RR((s./lib-tk/Tkinter.pyt
tag_nextrange}scCs.|jj|jj|jdd|||ƒƒS(s»Return a list of start and end index for the first sequence of
        characters between INDEX1 and INDEX2 which all have tag TAGNAME.
        The text is searched backwards from INDEX1.R_t	prevrange(R.R*RPR(RRR`RR((s./lib-tk/Tkinter.pyt
tag_prevrangeƒscCs#|jj|jdd||ƒdS(saChange the priority of tag TAGNAME such that it is higher
        than the priority of ABOVETHIS.R_RÝN(R.RPR(RRR`RÞ((s./lib-tk/Tkinter.pyRɉs	cCs(|jj|jj|jdd|ƒƒS(s7Return a list of ranges of text which have tag TAGNAME.R_tranges(R.R*RPR(RRR`((s./lib-tk/Tkinter.pyt
tag_rangesŽscCs&|jj|jdd|||ƒdS(sARemove tag TAGNAME from all characters between INDEX1 and INDEX2.R_RlN(R.RPR(RRR`RR((s./lib-tk/Tkinter.pyt
tag_remove’s	cCsY|d dkrd|}n|ddkr:|d }n|jj|jdd||ƒS(s:Return the value of OPTION of an embedded window at INDEX.iR)iÿÿÿÿRgRR˜(R.RPR(RRR°RÄ((s./lib-tk/Tkinter.pytwindow_cget–s


cKs|jdd|f||ƒS(s&Configure an embedded window at INDEX.RR—(R–(RRR°R#R‡((s./lib-tk/Tkinter.pytwindow_configurescKs3|jj|jdd|f|j||ƒƒdS(sCreate a window at INDEX.RR+N(R.RPRRµ(RRR°R#R‡((s./lib-tk/Tkinter.pyt
window_create¡s	cCs%|jj|jj|jddƒƒS(s4Return all names of embedded windows in this widget.RRÇ(R.R*RPR(RR((s./lib-tk/Tkinter.pytwindow_names¦s	cGs$|jj|jddf|ƒdS(sObsolete function, use see.RÚs
-pickplaceN(R.RPR(RRRU((s./lib-tk/Tkinter.pytyview_pickplaceªsN(:R7R8R9RRUR¦R1R2R3R4R5R7RÁR8R:R<R?RARCRDRFR]RGRHRIRÈR°RRNRORPRSRURWRÍRÐRRöRaRŸR RbRct
tag_configReRÆRfRhRjRÉRlRmRnRot
window_configRpRqRr(((s./lib-tk/Tkinter.pyR0gsr							(		
																						t_setitcBs#eZdZdd„Zd„ZRS(s>Internal class. It wraps the command in the widget OptionMenu.cCs||_||_||_dS(N(t
_setit__valuet_setit__vart_setit__callback(RRtvarRRg((s./lib-tk/Tkinter.pyRU±s		cGs6|jj|jƒ|jr2|j|j|ŒndS(N(RwRNRvRx(RRR†((s./lib-tk/Tkinter.pyRaµs	N(R7R8R9RRURa(((s./lib-tk/Tkinter.pyRu¯st
OptionMenucBs)eZdZd„Zd„Zd„ZRS(s?OptionMenu which allows the user to select a value from a menu.c
	Os"idd6|d6dd6td6dd6dd	6}tj||d
|ƒd|_t|dd
ddƒ}|_|j|_|jdƒ}d|krŸ|d=n|r¿t	d|j
ƒd‚n|jd|dt|||ƒƒx0|D](}	|jd|	dt||	|ƒƒqèW||d
<dS(sëConstruct an optionmenu widget with the parent MASTER, with
        the resource textvariable set to VARIABLE, the initially selected
        value VALUE, the other menu values VALUES and an additional
        keyword argument command.itborderwidthttextvariableitindicatorontreliefR$R÷thighlightthicknessR&t
tk_optionMenuRTRttearoffiRÓsunknown option -RîN(
tRAISEDRoRURjRÿt_OptionMenu__menuRtmenunameR]R£R›RRu(
RRRSR_RRAtkwargsR‡RRgR'((s./lib-tk/Tkinter.pyRU¼s$
	

cCs#|dkr|jStj||ƒS(NR(RƒRoRÑ(RRRT((s./lib-tk/Tkinter.pyRÑÕscCstj|ƒd|_dS(s,Destroy this widget and the associated menu.N(R%RRRƒ(RR((s./lib-tk/Tkinter.pyRÚs
(R7R8R9RURÑR(((s./lib-tk/Tkinter.pyRzºs		tImagecBsteZdZdZdidd„Zd„Zd„Zd„Zd„Z	d„Z
e
Zd„Zd	„Z
d
„ZRS(sBase class for images.ic	Ks^d|_|s*t}|s*td‚q*nt|d|ƒ|_|sˆtjd7_dtjf}|ddkrˆd|d}qˆn|r©|r©t||fƒ}n|r¸|}nd
}xp|j	ƒD]b\}}t
|dƒrø|j|ƒ}n!|dkr|jj|ƒ}n|d||f}qËW|jj
dd||f|ƒ||_dS(NsToo early to create imageR.is	pyimage%riR)RgRaR«tmaskdataRÆR+((sdataR‡(RRTR;R+RTR.R†t_last_idR(R!RhR¦t_createbytearrayRP(	RRtimgtypeRTR#RSR‡R±R&R'((s./lib-tk/Tkinter.pyRUâs0		 cCs|jS(N(RT(RR((s./lib-tk/Tkinter.pyRZúscCsA|jr=y|jjdd|jƒWq=tk
r9q=XndS(NRÆRÁ(RTR.RPR£(RR((s./lib-tk/Tkinter.pyRYûs
	
cCs$|jj|jdd||ƒdS(NR—R)(R.RPRT(RRR4R((s./lib-tk/Tkinter.pyR™
scCs|jj|jdd|ƒS(NR—R)(R.RPRT(RRR4((s./lib-tk/Tkinter.pyRÑ
scKsÌd	}x¢t|ƒjƒD]Ž\}}|dk	r|ddkrN|d }nt|dƒro|j|ƒ}n!|d
kr|jj|ƒ}n|d||f}qqW|jj|jdf|ƒdS(sConfigure the image.iÿÿÿÿRgRaR«R‡R)RÐN((sdatasmaskdata(	R(R!RRhR¦R.R‰RPRT(RRR‡RR&R'((s./lib-tk/Tkinter.pyR—
s
cCst|jjdd|jƒƒS(sReturn the height of the image.RÆRý(RxR.RPRT(RR((s./lib-tk/Tkinter.pyRý
scCs|jjdd|jƒS(s8Return the type of the imgage, e.g. "photo" or "bitmap".RÆR(R.RPRT(RR((s./lib-tk/Tkinter.pyR
scCst|jjdd|jƒƒS(sReturn the width of the image.RÆRI(RxR.RPRT(RR((s./lib-tk/Tkinter.pyRI
sN(R7R8R9RˆRRURZRYR™RÑR—RÐRýRRI(((s./lib-tk/Tkinter.pyR†ßs							t
PhotoImagecBs€eZdZdidd„Zd„Zd„Zd„Zd„Zdd„Z	dd„Z
d	„Zdd
„Zddd„Z
RS(
s?Widget which can display colored images in GIF, PPM/PGM format.cKs tj|d||||dS(stCreate an image with NAME.

        Valid resource names: data, format, file, gamma, height, palette,
        width.tphotoN(R†RU(RRRTR#RSR‡((s./lib-tk/Tkinter.pyRU!
scCs|jj|jdƒdS(sDisplay a transparent image.tblankN(R.RPRT(RR((s./lib-tk/Tkinter.pyR'
scCs|jj|jdd|ƒS(sReturn the value of OPTION.R˜R)(R.RPRT(RRRÄ((s./lib-tk/Tkinter.pyR˜*
scCs|jj|jdd|ƒS(NR˜R)(R.RPRT(RRR4((s./lib-tk/Tkinter.pyRÑ.
scCs/td|jƒ}|jj|d|jƒ|S(s;Return a new PhotoImage with the same image as this widget.RStcopy(R‹R.RPRT(RRt	destImage((s./lib-tk/Tkinter.pyRŽ1
sREcCsMtd|jƒ}|dkr'|}n|jj|d|jd||ƒ|S(s\Return a new PhotoImage with the same image as this widget
        but zoom it with X and Y.RSRERŽs-zoom(R‹R.RPRT(RRR?RLR((s./lib-tk/Tkinter.pytzoom6
s
	"cCsMtd|jƒ}|dkr'|}n|jj|d|jd||ƒ|S(skReturn a new PhotoImage based on the same image as this widget
        but use only every Xth or Yth pixel.RSRERŽs
-subsample(R‹R.RPRT(RRR?RLR((s./lib-tk/Tkinter.pyt	subsample=
s
	"cCs|jj|jd||ƒS(s8Return the color (red, green, blue) of the pixel at X,Y.R](R.RPRT(RRR?RL((s./lib-tk/Tkinter.pyR]D
scCs`|jd|f}|rL|ddkr5|d}n|dt|ƒ}n|jj|ƒdS(szPut row formatted colors to image starting from
        position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))tputis-toiN(s-to(RTRR.RP(RRR«RØR†((s./lib-tk/Tkinter.pyR’G
s
cCs\|jd|f}|r+|d|f}n|rH|dt|ƒ}n|jj|ƒdS(sRWrite image to file FILENAME in FORMAT starting from
        position FROM_COORDS.twrites-formats-fromN(s-from(RTRR.RP(RRtfilenametformattfrom_coordsR†((s./lib-tk/Tkinter.pyR“Q
sN(R7R8R9RRURR˜RÑRŽRR‘R]R’R“(((s./lib-tk/Tkinter.pyR‹
s					
tBitmapImagecBs eZdZdidd„ZRS(s"Widget which can display a bitmap.cKs tj|d||||dS(sqCreate a bitmap with NAME.

        Valid resource names: background, data, file, foreground, maskdata, maskfile.RÿN(R†RU(RRRTR#RSR‡((s./lib-tk/Tkinter.pyRU]
sN(R7R8R9RRU(((s./lib-tk/Tkinter.pyR—[
scCstjjtjjddƒƒS(NRÆRÇ(R;R.R*RP(((s./lib-tk/Tkinter.pyRÈc
scCstjjtjjddƒƒS(NRÆRÉ(R;R.R*RP(((s./lib-tk/Tkinter.pyRÊf
stSpinboxcBsªeZdZdid„Zd„Zdd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Zdd„ZRS(sspinbox widget.cKstj||d||ƒdS(s¤Construct a spinbox widget with the parent MASTER.

        STANDARD OPTIONS

            activebackground, background, borderwidth,
            cursor, exportselection, font, foreground,
            highlightbackground, highlightcolor,
            highlightthickness, insertbackground,
            insertborderwidth, insertofftime,
            insertontime, insertwidth, justify, relief,
            repeatdelay, repeatinterval,
            selectbackground, selectborderwidth
            selectforeground, takefocus, textvariable
            xscrollcommand.

        WIDGET-SPECIFIC OPTIONS

            buttonbackground, buttoncursor,
            buttondownrelief, buttonuprelief,
            command, disabledbackground,
            disabledforeground, format, from,
            invalidcommand, increment,
            readonlybackground, state, to,
            validate, validatecommand values,
            width, wrap,
        tspinboxN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRUl
scCs(|j|jj|jd|ƒƒp'dS(søReturn a tuple of X1,Y1,X2,Y2 coordinates for a
        rectangle which encloses the character given by index.

        The first two elements of the list give the x and y
        coordinates of the upper-left corner of the screen
        area covered by the character (in pixels relative
        to the widget) and the last two elements give the
        width and height of the character, in pixels. The
        bounding box may refer to a region outside the
        visible area of the window.
        R¦N(RR.RPRR(RRR°((s./lib-tk/Tkinter.pyR¦‰
scCs|jj|jd||ƒS(sWDelete one or more elements of the spinbox.

        First is the index of the first character to delete,
        and last is the index of the character just after
        the last one to delete. If last isn't specified it
        defaults to first+1, i.e. a single character is
        deleted.  This command returns an empty string.
        RÁ(R.RPR(RRRáRâ((s./lib-tk/Tkinter.pyRÁ—
s	cCs|jj|jdƒS(sReturns the spinbox's stringR](R.RPR(RR((s./lib-tk/Tkinter.pyR]¢
scCs|jj|jd|ƒS(s®Alter the position of the insertion cursor.

        The insertion cursor will be displayed just before
        the character given by index. Returns an empty string
        RÃ(R.RPR(RRR°((s./lib-tk/Tkinter.pyRæ
scCs|jj|jd||ƒS(s{Returns the name of the widget at position x, y

        Return value is one of: none, buttondown, buttonup, entry
        R+(R.RPR(RRR?RL((s./lib-tk/Tkinter.pyR+®
scCs|jj|jd|ƒS(s;Returns the numerical index corresponding to index
        R°(R.RPR(RRR°((s./lib-tk/Tkinter.pyR°µ
scCs|jj|jd||ƒS(sDInsert string s at index

         Returns an empty string.
        R(R.RPR(RRR°R((s./lib-tk/Tkinter.pyRº
scCs|jj|jd|ƒS(sšCauses the specified element to be invoked

        The element could be buttondown or buttonup
        triggering the action associated with it.
        R~(R.RPR(RRtelement((s./lib-tk/Tkinter.pyR~Á
scGs,|j|jj|jdf|ƒƒp+dS(sInternal function.RË((RR.RPR(RRR†((s./lib-tk/Tkinter.pyRËÉ
scCs|jd|ƒS(söRecords x and the current view in the spinbox window;

        used in conjunction with later scan dragto commands.
        Typically this command is associated with a mouse button
        press in the widget. It returns an empty string.
        RÌ(RË(RRR?((s./lib-tk/Tkinter.pyRÍÎ
scCs|jd|ƒS(s´Compute the difference between the given x argument
        and the x argument to the last scan mark command

        It then adjusts the view left or right by 10 times the
        difference in x-coordinates. This command is typically
        associated with mouse motion events in the widget, to
        produce the effect of dragging the spinbox at high speed
        through the window. The return value is an empty string.
        RÎ(RË(RRR?((s./lib-tk/Tkinter.pyRÐ×
s
cGs,|j|jj|jdf|ƒƒp+dS(sInternal function.RÏ((RR.RPR(RRR†((s./lib-tk/Tkinter.pyRÏã
scCs|jd|ƒS(sLocate the end of the selection nearest to the character
        given by index,

        Then adjust that end of the selection to be at index
        (i.e including but not going beyond index). The other
        end of the selection is made the anchor point for future
        select to commands. If the selection isn't currently in
        the spinbox, then a new selection is created to include
        the characters between index and the most recent selection
        anchor point, inclusive. Returns an empty string.
        RÒ(RÏ(RRR°((s./lib-tk/Tkinter.pyRãè
scCs
|jdƒS(sŒClear the selection

        If the selection isn't in this widget then the
        command has no effect. Returns an empty string.
        R·(RÏ(RR((s./lib-tk/Tkinter.pyRÐö
scCs|jd|ƒS(s‹Sets or gets the currently selected element.

        If a spinbutton element is specified, it will be
        displayed depressed
        Rš(RÏ(RRRš((s./lib-tk/Tkinter.pytselection_elementþ
sN(R7R8R9RRUR¦RÁR]RÃR+R°RR~RËRÍRÐRÏRãRÐR›(((s./lib-tk/Tkinter.pyR˜j
s"														t
LabelFramecBseZdZdid„ZRS(slabelframe widget.cKstj||d||ƒdS(s«Construct a labelframe widget with the parent MASTER.

        STANDARD OPTIONS

            borderwidth, cursor, font, foreground,
            highlightbackground, highlightcolor,
            highlightthickness, padx, pady, relief,
            takefocus, text

        WIDGET-SPECIFIC OPTIONS

            background, class, colormap, container,
            height, labelanchor, labelwidget,
            visual, width
        t
labelframeN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRU
sN(R7R8R9RRU(((s./lib-tk/Tkinter.pyRœstPanedWindowcBsªeZdZdid„Zd„Zd„ZeZd„Zd„Z	d„Z
d„Zd„Zd	„Z
d
„Zd„Zd„Zd
„Zdd„ZeZd„ZRS(spanedwindow widget.cKstj||d||ƒdS(sTConstruct a panedwindow widget with the parent MASTER.

        STANDARD OPTIONS

            background, borderwidth, cursor, height,
            orient, relief, width

        WIDGET-SPECIFIC OPTIONS

            handlepad, handlesize, opaqueresize,
            sashcursor, sashpad, sashrelief,
            sashwidth, showhandle,
        tpanedwindowN(RoRU(RRRSR#R‡((s./lib-tk/Tkinter.pyRU scKs-|jj|jd|f|j|ƒƒdS(s+Add a child widget to the panedwindow in a new pane.

        The child argument is the name of the child widget
        followed by pairs of arguments that specify how to
        manage the windows. The possible options and values
        are the ones accepted by the paneconfigure method.
        RÅN(R.RPRRµ(RRRëR‡((s./lib-tk/Tkinter.pyRÅ0scCs|jj|jd|ƒdS(s„Remove the pane containing child from the panedwindow

        All geometry management options for child will be forgotten.
        RZN(R.RPR(RRRë((s./lib-tk/Tkinter.pyRl:scCs|jj|jd||ƒS(s—Identify the panedwindow component at point x, y

        If the point is over a sash or a sash handle, the result
        is a two element list containing the index of the sash or
        handle, and a word indicating whether it is over a sash
        or a handle, such as {0 sash} or {2 handle}. If the point
        is over any other part of the panedwindow, the result is
        an empty list.
        R+(R.RPR(RRR?RL((s./lib-tk/Tkinter.pyR+Bs
cGs,|j|jj|jdf|ƒƒp+dS(sInternal function.tproxy((RR.RPR(RRR†((s./lib-tk/Tkinter.pyR NscCs
|jdƒS(sBReturn the x and y pair of the most recent proxy location
        tcoord(R (RR((s./lib-tk/Tkinter.pytproxy_coordSscCs
|jdƒS(s+Remove the proxy from the display.
        RZ(R (RR((s./lib-tk/Tkinter.pytproxy_forgetXscCs|jd||ƒS(s:Place the proxy at the given x and y coordinates.
        R£(R (RRR?RL((s./lib-tk/Tkinter.pytproxy_place]scGs,|j|jj|jdf|ƒƒp+dS(sInternal function.tsash((RR.RPR(RRR†((s./lib-tk/Tkinter.pyR¥bscCs|jd|ƒS(sAReturn the current x and y pair for the sash given by index.

        Index must be an integer between 0 and 1 less than the
        number of panes in the panedwindow. The coordinates given are
        those of the top left corner of the region containing the sash.
        pathName sash dragto index x y This command computes the
        difference between the given coordinates and the coordinates
        given to the last sash coord command for the given sash. It then
        moves that sash the computed difference. The return value is the
        empty string.
        R¡(R¥(RRR°((s./lib-tk/Tkinter.pyt
sash_coordgscCs|jd|ƒS(sRecords x and y for the sash given by index;

        Used in conjunction with later dragto commands to move the sash.
        RÌ(R¥(RRR°((s./lib-tk/Tkinter.pyt	sash_markuscCs|jd|||ƒS(s?Place the sash given by index at the given coordinates
        R£(R¥(RRR°R?RL((s./lib-tk/Tkinter.pyt
sash_place|scCs'|jj|jdf|d|fƒS(swQuery a management option for window.

        Option may be any value allowed by the paneconfigure subcommand
        tpanecgetR)(R.RPR(RRRëRÄ((s./lib-tk/Tkinter.pyR©s	cKs|dkr)|r)|j|jd|ƒSt|ƒtkr_|r_|j|jd|d|ƒS|jj|jd|f|j||ƒƒdS(s˜
Query or modify the management options for window.

        If no option is specified, returns a list describing all
        of the available options for pathName.  If option is
        specified with no value, then the command returns a list
        describing the one named option (this list will be identical
        to the corresponding sublist of the value returned if no
        option is specified). If one or more option-value pairs are
        specified, then the command modifies the given widget
        option(s) to have the given value(s); in this case the
        command returns an empty string. The following options
        are supported:

        after window
            Insert the window after the window specified. window
            should be the name of a window already managed by pathName.
        before window
            Insert the window before the window specified. window
            should be the name of a window already managed by pathName.
        height size
            Specify a height for the window. The height will be the
            outer dimension of the window including its border, if
            any. If size is an empty string, or if -height is not
            specified, then the height requested internally by the
            window will be used initially; the height may later be
            adjusted by the movement of sashes in the panedwindow.
            Size may be any value accepted by Tk_GetPixels.
        minsize n
            Specifies that the size of the window cannot be made
            less than n. This constraint only affects the size of
            the widget in the paned dimension -- the x dimension
            for horizontal panedwindows, the y dimension for
            vertical panedwindows. May be any value accepted by
            Tk_GetPixels.
        padx n
            Specifies a non-negative value indicating how much
            extra space to leave on each side of the window in
            the X-direction. The value may have any of the forms
            accepted by Tk_GetPixels.
        pady n
            Specifies a non-negative value indicating how much
            extra space to leave on each side of the window in
            the Y-direction. The value may have any of the forms
            accepted by Tk_GetPixels.
        sticky style
            If a window's pane is larger than the requested
            dimensions of the window, this option may be used
            to position (or stretch) the window within its pane.
            Style is a string that contains zero or more of the
            characters n, s, e or w. The string can optionally
            contains spaces or commas, but they are ignored. Each
            letter refers to a side (north, south, east, or west)
            that the window will "stick" to. If both n and s
            (or e and w) are specified, the window will be
            stretched to fill the entire height (or width) of
            its cavity.
        width size
            Specify a width for the window. The width will be
            the outer dimension of the window including its
            border, if any. If size is an empty string, or
            if -width is not specified, then the width requested
            internally by the window will be used initially; the
            width may later be adjusted by the movement of sashes
            in the panedwindow. Size may be any value accepted by
            Tk_GetPixels.

        t
paneconfigureR)N(	RR”RRRR•R.RPRµ(RRRŒR#R‡((s./lib-tk/Tkinter.pyRª‰sDcCs"|jj|jj|jdƒƒS(s+Returns an ordered list of the child panes.tpanes(R.R*RPR(RR((s./lib-tk/Tkinter.pyR«ÖsN(R7R8R9RRURÅRlRZR+R R¢R£R¤R¥R¦R§R¨R©Rªt
paneconfigR«(((s./lib-tk/Tkinter.pyRžs$	
											Kt
StudbuttoncBseZdid„ZRS(cKsitj||d||ƒ|jd|jƒ|jd|jƒ|jd|jƒ|jd|jƒdS(Nt
studbuttons<Any-Enter>s<Any-Leave>s<1>s<ButtonRelease-1>(RoRURZRwRyRzR{(RRRSR#R‡((s./lib-tk/Tkinter.pyRUÞs
N(R7R8RRU(((s./lib-tk/Tkinter.pyR­Ýst	TributtoncBseZdid„ZRS(cKs…tj||d||ƒ|jd|jƒ|jd|jƒ|jd|jƒ|jd|jƒ|d|d<|d|d<dS(	Nt	tributtons<Any-Enter>s<Any-Leave>s<1>s<ButtonRelease-1>tbgtfgtactivebackground(RoRURZRwRyRzR{(RRRSR#R‡((s./lib-tk/Tkinter.pyRUæsN(R7R8RRU(((s./lib-tk/Tkinter.pyR¯åscCsëtƒ}dt}tdkrMy|tddƒ}WqMtk
rIqMXnt|d|ƒ}|jƒt|ddd|d„ƒ}|jƒ||_t|dd	d|jƒ}|jƒ|j	ƒ|j
ƒ|jƒ|jƒdS(
NsThis is Tcl/Tk version %sg333333 @s
This should be a cedilla: çs
iso-8859-1Rµs	Click me!RÓcSs|jjdd|jdƒS(NRµs[%s](ttestR—(R’((s./lib-tk/Tkinter.pyt<lambda>þstQUIT(
R$t
TclVersionRt	NameErrorRíRRuR´RRRRíR}(R’RµRîR´Ra((s./lib-tk/Tkinter.pyt_testòs(	
	


	



t__main__(`R9t__version__RŠtplatformtFixTkR¬ttkinterR£RÉtTkconstantstreR,RÌR>R@R?R·tREADABLEtWRITABLEt	EXCEPTIONtcreatefilehandlerRRtdeletefilehandlertcompileRRRRRR(tTrueR5R6R:R;R<R>RCRMRDRtRvRyR{R}R?RxRzROR€R`RÒRÙRÝR$RWRXR_RcRhRoRpRuR€RƒR„R…R†R‡RÛRßRìRíRïRÿR%R'R)R*R,R0RuRzR†R‹R—RÈRÊR˜RœRžR­R¯R¹R7(((s./lib-tk/Tkinter.pyt<module>sÖ	

			



			


	

,		f	ÿÿÿÿNÍ}',/8>				ñA[}!(ÿI%@<		ž¿