Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/lib-tk/
Upload File :
Current File : //usr/lib/python2.7/lib-tk/Tkinter.pyc


|_c@sdZdZddlZejdkr6ddlZnyddlZWn&ek
rnZeeednXeZ	ej
Z
ddlTddlTdZ
eejZeejZejZejZejZyejWnek
ree_nXyejWnek
r ee_nXdZy
ejZWnek
rJnXd	Zy
ejZWnek
rtnXd
fdYZdaeadZd
Z ddZ!da"dfdYZ#de#fdYZ$de#fdYZ%de#fdYZ&de#fdYZ'ddZ(e)Z*eZ+dZ,dfdYZ-dfd YZ.d!fd"YZ/d#fd$YZ0d%fd&YZ1d'e-e1fd(YZ2eed'dd)Z3d*fd+YZ4d,fd-YZ5d.fd/YZ6d0e-fd1YZ7d2e7e4e5e6fd3YZ8d4e7e1fd5YZ9d6e8fd7YZ:d8Z;d9Z<d:Z=d;Z>ed<Z?d=e8e/e0fd>YZ@d?e8fd@YZAdAe8e/fdBYZBdCe8fdDYZCdEe8fdFYZDdGe8e/e0fdHYZEdIe8fdJYZFdKe8fdLYZGdMe8fdNYZHdOe8fdPYZIdQe8fdRYZJdSe8fdTYZKdUe8e/e0fdVYZLdWfdXYZMdYeGfdZYZNd[fd\YZOd]eOfd^YZPd_eOfd`YZQdaZRdbZSdce8e/fddYZTdee8fdfYZUdge8fdhYZVdie:fdjYZWdke:fdlYZXdmZYeZdnkreYndS(os2Wrapper 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 $iNtwin32s&, please install the python-tk package(t*icCsbd}xU|D]M}t|ttfkr>|t|}q
|dk	r
||f}q
q
W|S(sInternal function.(N(ttypet	TupleTypetListTypet_flattentNone(ttupletrestitem((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR@s
cCst|tkr|St|ttfkr2|Si}xqt|D]c}y|j|WqEttfk
r}dG|GHx(|jD]\}}|||<qWqEXqEW|SdS(sInternal function.s_cnfmerge: fallback due to:N(	RtDictionaryTypetNoneTypet
StringTypeRtupdatetAttributeErrort	TypeErrortitems(tcnfstcnftctmsgtktv((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	_cnfmergeMs	tEventcBseZdZRS(sContainer 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$/usr/lib/python2.7/lib-tk/Tkinter.pyRas)cCsdadabdS(sInhibit 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$/usr/lib/python2.7/lib-tk/Tkinter.pyt
NoDefaultRootscCsdS(sInternal function.N((terr((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_tkerrorst0cCs
t|dS(sBInternal function. Calling it will throw the exception SystemExit.N(t
SystemExit(tcode((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_exitsitVariablecBsteZdZdZddddZdZdZdZdZ	dZ
e
ZdZd	Z
d
ZRS(sClass 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|_|r6||_ndtt|_td7a|dk	ro|j|n.|jj	dd|js|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(Rt_masterttkt_tkt_nametreprt_varnumRtsettcallt_default(tselftmastertvaluetname((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt__init__s		
cCs|jj|jdS(sUnset the variable in Tcl.N(R,tglobalunsetvarR-(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt__del__scCs|jS(s'Return the name of the variable in Tcl.(R-(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt__str__scCs|jj|j|S(sSet the variable to VALUE.(R,tglobalsetvarR-(R3R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR0scCs|jj|jS(sReturn value of variable.(R,tglobalgetvarR-(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgetscCs5|jj|}|jjdd|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.
        ttracetvariable(R*t	_registerR,R1R-(R3tmodetcallbacktcbname((s$/usr/lib/python2.7/lib-tk/Tkinter.pyttrace_variables	cCs3|jjdd|j|||jj|dS(sDelete 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(R,R1R-R*t
deletecommand(R3RARC((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
trace_vdeletescCs4t|jj|jj|jjdd|jS(s&Return all trace callback information.R>tvinfo(tmapR,tsplitt	splitlistR1R-(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyttrace_vinfoscCs(|jj|jjko'|j|jkS(sComparison for equality (==).

        Note: if the Variable's master matters to behavior
        also compare self._master == other._master
        (t	__class__RR-(R3tother((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt__eq__sN(RRRR2RR7R9R:R0R=RDR>RGRLRO(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR%s							t	StringVarcBs/eZdZdZddddZdZRS(s#Value holder for strings variables.R&cCstj||||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(R%R7(R3R4R5R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7s
cCs2|jj|j}t|tr(|St|S(s#Return value of variable as string.(R,R<R-t
isinstancet
basestringtstr(R3R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR=sN(RRRR2RR7R=(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRPstIntVarcBs8eZdZdZddddZdZdZRS(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(R%R7(R3R4R5R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7
s
cCs.t|trt|}ntj||S(s;Set the variable to value, converting booleans to integers.(RQtbooltintR%R0(R3R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR0scCst|jj|jS(s/Return the value of the variable as an integer.(tgetintR,R<R-(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR=sN(RRRR2RR7R0R=(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRTs
	t	DoubleVarcBs/eZdZdZddddZdZRS(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(R%R7(R3R4R5R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7#s
cCst|jj|jS(s,Return the value of the variable as a float.(t	getdoubleR,R<R-(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR=/sN(RRRR2RR7R=(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRX st
BooleanVarcBs/eZdZeZddddZdZRS(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(R%R7(R3R4R5R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR76s
cCs|jj|jj|jS(s+Return the value of the variable as a bool.(R,t
getbooleanR<R-(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR=BsN(RRRtFalseR2RR7R=(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRZ3scCstjj|dS(sRun the main loop of Tcl.N(RR+tmainloop(tn((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR]FscCstjj|S(s1Convert true and false to integer values 1 and 0.(RR+R[(ts((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR[NstMisccBseZdZdZdZdZddZdZdZ	dZ
ddZeZdd	Z
dd
ZdddZdd
ZeZeZdZdZeZdZdZdZdZdZdZdZddZdZ dZ!ddZ"dZ#dZ$dZ%dZ&d Z'd!Z(d"Z)d#Z*dd$Z+d%Z,d&Z-dd'Z.d(Z/d)Z0d*Z1d+Z2d,Z3d-Z4dd.Z5dd/Z6e6Z7dd0Z8dd1Z9dd2Z:d3Z;d4Z<d5Z=d6Z>dd7Z?d8Z@d9ZAd:ZBd;ZCd<ZDd=ZEdd>ZFd?ZGd@ZHdAZIdBZJddCZKdDZLdEZMdFZNdGZOdHZPdIZQdJZRdKZSdLZTdMZUdNZVdOZWdPZXdQZYdRZZdSZ[dTZ\dUZ]dVZ^dWZ_dXZ`dYZaddZZbd[Zcd\Zdd]Zed^Zfd_Zgd`ZhdaZidbZjdcZkddZldeZmddfZndgdhZoddddiZpddjZqddddkZrdlZsddddmZtdnZuddoZvdpZwdqZxdrZydsZzdtZ{dduZ|dvZ}e}Z~ddgdwZeZdxZdZdjeZdZdZdZddZeZdZeZdZdZdZdZdgZedZeZdZeZdZdddddZeZdZidZeZdZedZidZeZdZeZdddZdZdZdZddZdZdZRS(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(t_tclCommandsRR+RF(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pytdestroyZscCs<|jj|y|jj|Wntk
r7nXdS(sDInternal function.

        Delete the Tcl command provided in NAME.N(R+RFRatremovet
ValueError(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRFds

cCs"|jj|jjdd|S(sSet 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.R0ttk_strictMotif(R+R[R1(R3tboolean((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRenscCs|jjddS(sDChange the color scheme to light brown as used in Tk 3.6 and before.t	tk_bisqueN(R+R1(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRgwscOs.|jjdt|t|jdS(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+R1RR(R3targstkw((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRhzs	cGsdS(s)Do not use. Needed in Tk 3.6 and earlier.N((R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
tk_menuBarsR'cCs|jjdd|dS(sWait until the variable is modified.

        A parameter of type IntVar, StringVar, DoubleVar or
        BooleanVar must be given.ttkwaitR?N(R+R1(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
wait_variablescCs2|dkr|}n|jjdd|jdS(sQWait until a WIDGET is destroyed.

        If no parameter is given self is used.RltwindowN(RR+R1t_w(R3Rn((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwait_windows	cCs2|dkr|}n|jjdd|jdS(sxWait until the visibility of a WIDGET changes
        (e.g. it appears).

        If no parameter is given self is used.Rlt
visibilityN(RR+R1Ro(R3Rn((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwait_visibilitys	t1cCs|jj||dS(sSet Tcl variable NAME to VALUE.N(R+tsetvar(R3R6R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRtscCs|jj|S(s"Return value of Tcl variable NAME.(R+tgetvar(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRuscCs|jj|S(sPReturn a boolean value for Tcl boolean values true and false given as parameter.(R+R[(R3R_((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR[scCs|jjd|jdS(sDirect 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+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	focus_setscCs|jjdd|jdS(stDirect input focus to this widget even if the
        application does not have the focus. Use with
        caution!Rvs-forceN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytfocus_forcescCs6|jjd}|dks%|r)dS|j|S(sReturn 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.RvtnoneN(R+R1Rt
_nametowidget(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	focus_getscCs?|jjdd|j}|dks.|r2dS|j|S(sReturn 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.Rvs
-displayofRyN(R+R1RoRRz(R3R6((s$/usr/lib/python2.7/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.Rvs-lastforRyN(R+R1RoRRz(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
focus_lastforscCs|jjddS(sXThe widget under mouse will get automatically focus. Can not
        be disabled easily.ttk_focusFollowsMouseN(R+R1(R3((s$/usr/lib/python2.7/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+R1RoRRz(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs	cCs/|jjd|j}|s"dS|j|S(sHReturn previous widget in the focus order. See tk_focusNext for details.ttk_focusPrevN(R+R1RoRRz(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscs]sjjd|n=fd}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;zWdyjWntk
r5nXXdS(N(RFtTclError((R3RiR6tfunc(s$/usr/lib/python2.7/lib-tk/Tkinter.pytcallits
N(R+R1R@(R3tmsRRiR((R3RiRR6s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs
cGs|jd||S(sCall FUNC once if the Tcl main loop has no event to
        process.

        Return an identifier to cancel the scheduling with
        after_cancel.tidle(R(R3RRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
after_idlescCsmy?|jjdd|}|jj|d}|j|Wntk
rRnX|jjdd|dS(sCancel scheduling of function identified with ID.

        Identifier returned by after or after_idle must be
        given as first parameter.RR(itcancelN(R+R1RKRFR(R3tidtdatatscript((s$/usr/lib/python2.7/lib-tk/Tkinter.pytafter_cancels
icCs!|jjd|j|dS(sRing a display's bell.tbellN(sbell(R+R1t
_displayof(R3t	displayof((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscKs|jjd|j|S(sRetrieve 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.

        This command is equivalent to:

        selection_get(CLIPBOARD)
        t	clipboardR=(Rsget(R+R1t_options(R3Rj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
clipboard_getscKs=d|kr|j|d<n|jjd|j|dS(sClear the data in the Tk clipboard.

        A widget specified for the optional displayof keyword
        argument specifies the target display.RRtclearN(s	clipboardsclear(RoR+R1R(R3Rj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytclipboard_clear$scKsGd|kr|j|d<n|jjd|j|d|fdS(sAppend 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.RRtappends--N(s	clipboardsappend(RoR+R1R(R3tstringRj((s$/usr/lib/python2.7/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+R1RoRRz(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrab_current5scCs|jjdd|jdS(s.Release grab for this widget if currently set.RtreleaseN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrab_release;scCs|jjdd|jdS(swSet grab for this widget.

        A grab directs all events to this and descendant
        widgets in the application.RR0N(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrab_set>scCs |jjddd|jdS(sSet 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.RR0s-globalN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrab_set_globalDscCs4|jjdd|j}|dkr0d}n|S(sYReturn None, "local" or "global" if this widget has
        no, a local or a global grab.RtstatusRyN(R+R1RoR(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrab_statusKs	cCs |jjdd|||dS(sSet a VALUE (second parameter) for an option
        PATTERN (first parameter).

        An optional third parameter gives the numeric priority
        (defaults to 80).toptiontaddN(R+R1(R3tpatternR5tpriority((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
option_addQscCs|jjdddS(sPClear the option database.

        It will be reloaded if option_add is called.RRN(R+R1(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytoption_clearXscCs|jjdd|j||S(sReturn the value for an option NAME for this widget
        with CLASSNAME.

        Values with higher priority override lower values.RR=(R+R1Ro(R3R6t	className((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
option_get]scCs|jjdd||dS(svRead file FILENAME into the option database.

        An optional second parameter gives the numeric
        priority.RtreadfileN(R+R1(R3tfileNameR((s$/usr/lib/python2.7/lib-tk/Tkinter.pytoption_readfilecscKs=d|kr|j|d<n|jjd|j|dS(sClear the current X selection.Rt	selectionRN(s	selectionsclear(RoR+R1R(R3Rj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_cleariscKs9d|kr|j|d<n|jjd|j|S(sReturn 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.RRR=(s	selectionsget(RoR+R1R(R3Rj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
selection_getmscKs=|j|}|jjd|j||j|fdS(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).RthandleN(s	selectionR(R@R+R1RRo(R3tcommandRjR6((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_handlevs	cKs+|jjd|j||jfdS(sBecome owner of X selection.

        A keyword parameter selection specifies the name of
        the selection (default PRIMARY).RtownN(s	selectionR(R+R1RRo(R3Rj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
selection_owns	cKsRd|kr|j|d<n|jjd|j|}|sEdS|j|S(sReturn 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).RRR(s	selectionsownN(RoR+R1RRRz(R3RjR6((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_own_getscGs|jjd||f|S(sDSend Tcl command CMD to different interpreter INTERP to be executed.tsend(R+R1(R3tinterptcmdRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs|jjd|j|dS(s(Lower this widget in the stacking order.tlowerN(R+R1Ro(R3t	belowThis((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs|jjd|j|dS(s(Raise this widget in the stacking order.traiseN(R+R1Ro(R3t	aboveThis((s$/usr/lib/python2.7/lib-tk/Tkinter.pyttkraisescCs|jjdd|j|S(sUseless. Not implemented in Tk.R+t
colormodel(R+R1Ro(R3R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs0d|j||f}t|jj|S(s*Return integer which represents atom NAME.twinfotatom(RR(RRWR+R1(R3R6RRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
winfo_atomscCs*d|j||f}|jj|S(s'Return name of atom with identifier ID.Rtatomname(swinfoR(RR+R1(R3RRRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_atomnamescCst|jjdd|jS(s7Return number of cells in the colormap for this widget.Rtcells(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_cellsscCsjg}x]|jj|jjdd|jD]4}y|j|j|Wq.tk
raq.Xq.W|S(s?Return a list of all widgets which are children of this widget.Rtchildren(R+RKR1RoRRztKeyError(R3tresulttchild((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_childrens"
cCs|jjdd|jS(s(Return window class name of this widget.Rtclass(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_classscCs%|jj|jjdd|jS(s?Return true if at the last color request the colormap was full.Rtcolormapfull(R+R[R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_colormapfulls	cCsFd|j|||f}|jj|}|s9dS|j|S(s@Return the widget which is at the root coordinates ROOTX, ROOTY.Rt
containing(swinfoRN(RR+R1RRz(R3trootXtrootYRRiR6((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_containings
cCst|jjdd|jS(s$Return the number of bits per pixel.Rtdepth(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_depthscCst|jjdd|jS(s"Return true if this widget exists.RR)(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_existsscCs"t|jjdd|j|S(sWReturn the number of pixels for the given distance NUMBER
        (e.g. "3c") as float.Rtfpixels(RYR+R1Ro(R3tnumber((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
winfo_fpixelsscCs|jjdd|jS(sFReturn geometry string for this widget in the form "widthxheight+X+Y".Rtgeometry(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_geometryscCst|jjdd|jS(sReturn height of this widget.Rtheight(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_heightscCs%|jj|jjdd|jS(s%Return identifier ID for this widget.RR(R+RWR1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_ids	cCs/d|j|}|jj|jj|S(s9Return the name of all Tcl interpreters for this display.Rtinterps(swinfoR(RR+RKR1(R3RRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
winfo_interpsscCst|jjdd|jS(s%Return true if this widget is mapped.Rtismapped(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_ismappedscCs|jjdd|jS(s0Return the window mananger name for this widget.Rtmanager(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
winfo_managerscCs|jjdd|jS(sReturn the name of this widget.RR6(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
winfo_namescCs|jjdd|jS(s-Return the name of the parent of this widget.Rtparent(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_parentscCs*d|j||f}|jj|S(s.Return the pathname of the widget given by ID.Rtpathname(swinfoR(RR+R1(R3RRRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_pathnamescCs"t|jjdd|j|S(s'Rounded integer value of winfo_fpixels.Rtpixels(RWR+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_pixelsscCst|jjdd|jS(s:Return the x coordinate of the pointer on the root window.Rtpointerx(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_pointerxscCs"|j|jjdd|jS(sHReturn a tuple of x and y coordinates of the pointer on the root window.Rt	pointerxy(t_getintsR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_pointerxyscCst|jjdd|jS(s:Return the y coordinate of the pointer on the root window.Rtpointery(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_pointeryscCst|jjdd|jS(s'Return requested height of this widget.Rt	reqheight(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_reqheight	scCst|jjdd|jS(s&Return requested width of this widget.Rtreqwidth(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_reqwidth
scCs%|j|jjdd|j|S(sUReturn tuple of decimal values for red, green, blue for
        COLOR in this widget.Rtrgb(RR+R1Ro(R3tcolor((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	winfo_rgbscCst|jjdd|jS(sSReturn x coordinate of upper left corner of this widget on the
        root window.Rtrootx(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_rootxscCst|jjdd|jS(sSReturn y coordinate of upper left corner of this widget on the
        root window.Rtrooty(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_rootyscCs|jjdd|jS(s&Return the screen name of this widget.Rtscreen(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_screen scCst|jjdd|jS(sTReturn the number of the cells in the colormap of the screen
        of this widget.Rtscreencells(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_screencells#scCst|jjdd|jS(s\Return the number of bits per pixel of the root window of the
        screen of this widget.Rtscreendepth(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_screendepth(scCst|jjdd|jS(sXReturn the number of pixels of the height of the screen of this widget
        in pixel.Rtscreenheight(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_screenheight-scCst|jjdd|jS(sUReturn the number of pixels of the height of the screen of
        this widget in mm.Rtscreenmmheight(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_screenmmheight2scCst|jjdd|jS(sTReturn the number of pixels of the width of the screen of
        this widget in mm.Rt
screenmmwidth(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_screenmmwidth7scCs|jjdd|jS(sReturn one of the strings directcolor, grayscale, pseudocolor,
        staticcolor, staticgray, or truecolor for the default
        colormodel of this screen.Rtscreenvisual(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_screenvisual<scCst|jjdd|jS(sWReturn the number of pixels of the width of the screen of
        this widget in pixel.Rtscreenwidth(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_screenwidthAscCs|jjdd|jS(sxReturn information of the X-Server of the screen of this widget in
        the form "XmajorRminor vendor vendorVersion".Rtserver(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_serverFscCs"|j|jjdd|jS(s*Return the toplevel widget of this widget.Rttoplevel(RzR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_toplevelJscCst|jjdd|jS(sBReturn true if the widget and all its higher ancestors are mapped.Rtviewable(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_viewableNscCs|jjdd|jS(sReturn one of the strings directcolor, grayscale, pseudocolor,
        staticcolor, staticgray, or truecolor for the
        colormodel of this widget.Rtvisual(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_visualRscCs|jjdd|jS(s7Return the X identifier for the visual for this widget.Rtvisualid(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_visualidWscCsp|jj|jjdd|j|r*dp-d}t|tkr`|jj|g}nt|j|S(sReturn 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.Rtvisualsavailablet
includeidsN(	R+RJR1RoRRRRIt_Misc__winfo_parseitem(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_visualsavailableZs	cCs"|d tt|j|dS(sInternal function.i(RRIt_Misc__winfo_getint(R3tt((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt__winfo_parseitemfscCs
t|dS(sInternal function.i(RV(R3tx((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt__winfo_getintiscCst|jjdd|jS(sReturn 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.Rtvrootheight(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_vrootheightlscCst|jjdd|jS(sReturn 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.Rt
vrootwidth(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_vrootwidthrscCst|jjdd|jS(siReturn the x offset of the virtual root relative to the root
        window of the screen of this widget.Rtvrootx(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_vrootxxscCst|jjdd|jS(siReturn the y offset of the virtual root relative to the root
        window of the screen of this widget.Rtvrooty(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_vrooty}scCst|jjdd|jS(s Return the width of this widget.Rtwidth(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_widthscCst|jjdd|jS(sVReturn the x coordinate of the upper left corner of this widget
        in the parent.RR(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_xscCst|jjdd|jS(sVReturn the y coordinate of the upper left corner of this widget
        in the parent.Rty(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwinfo_yscCs|jjddS(sEEnter event loop until all pending events have been processed by Tcl.R
N(R+R1(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs|jjdddS(sEnter event loop until all idle callbacks have been called. This
        will update the display of windows but not process events caused by
        the user.R
t	idletasksN(R+R1(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytupdate_idletasksscCsK|dkr.|jj|jjd|jS|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+RKR1Ro(R3ttagList((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR.s	icCst|tkr/|jj|||fn|r|j||j|}d|r\dp_d||jf}|jj|||f|S|r|jj||fS|jj|jj|SdS(sInternal function.s"%sif {"[%s %s]" == "break"} break
t+R&N(RRR+R1R@t_substitutet_subst_format_strRK(R3twhattsequenceRRtneedcleanuptfuncidR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_binds	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(R7Ro(R3R4RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR8s'cCs6|jjd|j|d|r2|j|ndS(sWUnbind for this widget for event SEQUENCE  the
        function identified with FUNCID.R8R&N(R+R1RoRF(R3R4R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pytunbindscCs|jd|||dS(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.R8talli(sbindsall(R7(R3R4RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pytbind_allscCs|jjdd|ddS(s8Unbind for all widgets for event SEQUENCE all functions.R8R:R&N(R+R1(R3R4((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
unbind_allscCs|jd|f|||dS(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.R8i(R7(R3RR4RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
bind_classs	cCs|jjd||ddS(sYUnbind for a all widgets with bindtag CLASSNAME for event SEQUENCE
        all functions.R8R&N(R+R1(R3RR4((s$/usr/lib/python2.7/lib-tk/Tkinter.pytunbind_classscCs|jj|dS(sCall the mainloop of Tk.N(R+R](R3R^((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR]scCs|jjdS(s8Quit the Tcl interpreter. All widgets will be destroyed.N(R+tquit(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR?scCs)|r%ttt|jj|SdS(sInternal function.N(RRIRWR+RK(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs)|r%ttt|jj|SdS(sInternal function.N(RRIRYR+RK(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_getdoublesscCs|r|jj|SdS(sInternal function.N(R+R[(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_getbooleanscCs-|rd|fS|dkr)d|jfSdS(sInternal function.s
-displayofN((RRo(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs


cCsL|rt||f}nt|}d	}x|jD]
\}}|d
k	r:|ddkro|d }nt|dr|j|}nt|ttfr-g}x|D]e}t|tt	fsPqt|t	r|j
d|q|j
d|krdnd|qWdj|}n|d||f}q:q:W|S(sInternal function.it_t__call__s%dt s{%s}s%st-(N(RRRthasattrR@RQRtlistRRRVRtjoin(R3RRjRRRtnvR	((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs*

'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(RSRJt_rootR(R3R6twR^((s$/usr/lib/python2.7/lib-tk/Tkinter.pytnametowidget-s


cCst|||j}tt|}y
|j}Wntk
rGnXy||j}Wntk
rlnX|jj|||r|j	dkrg|_	n|j	j|n|S(sReturn 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(tCallWrapperRCR.Rtim_funcRRR+t
createcommandRaRR(R3RtsubstR5tfR6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR@>s 


cCs#|}x|jr|j}q	W|S(sInternal function.(R4(R3RL((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRKTs
s%#s%bs%fs%hs%ks%ss%ts%ws%xs%ys%As%Es%Ks%Ns%Ws%Ts%Xs%Ys%DRDcGs	t|t|jkr|S|jj}t}d}|\}}}}}	}
}}}
}}}}}}}}}}t}|||_|||_y|||_Wnt	k
rnX|||_
||	|_||
|_|||_
|||_||
|_|||_||_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(RVRd(R_((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgetint_eventcs
i(tlent
_subst_formatR+R[RVRtserialtnumRvRRtkeycodetstatettimeR'RR*tchart
send_eventtkeysymt
keysym_numRRztwidgetRtx_rootty_roottdeltaRd(R3RiR[RWRStnsigntbRRthRR_RRLRR*tAtEtKtNtWtTtXtYtDte((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR1]sN	?	
	
		



cCsLddl}|j|j|j}}}|j}|j|||dS(sInternal function.iN(tsystexc_typet	exc_valuet
exc_tracebackRKtreport_callback_exception(R3Rptexctvalttbtroot((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_report_exceptionscCs0|rt||f}n|r0t|}n|dkri}xZ|jj|jjt|j|fD]+}|ddf|d||dd<qpW|St|tkr|jj|jjt|j|d|f}|ddf|dS|jjt|j|f|j	|dS(sInternal function.iiREN(
RRR+RJR1RRoRRR(R3RRRjR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
_configures()	+cKs|jd||S(sConfigure 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(Rz(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR{scCs|jj|jdd|S(s4Return the resource value for a KEY given as string.tcgetRE(R+R1Ro(R3tkey((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR|scCs|ji||6dS(N(R{(R3R}R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt__setitem__scCstddS(Ns)Tkinter objects don't support 'in' tests.(R(R3R}((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt__contains__scCs.td|jj|jj|jdS(s3Return a list of all resource names of this widget.cSs|ddS(Nii((R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt<lambda>sR{(RIR+RJR1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytkeyss	cCs|jS(s+Return the window path name of this widget.(Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR:st_noarg_cCsQ|tjkr1|j|jjdd|jS|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`RRAR+R1Ro(R3tflag((s$/usr/lib/python2.7/lib-tk/Tkinter.pytpack_propagatescCs1t|j|jj|jjdd|jS(sHReturn a list of all slaves of this widget
        in its packing order.Rtslaves(RIRzR+RKR1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytpack_slavess		cCs1t|j|jj|jjdd|jS(sHReturn a list of all slaves of this widget
        in its packing order.tplaceR(RIRzR+RKR1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytplace_slavess			cCsdd|jf}|dk	r=|dk	r=|||f}n|dk	rh|dk	rh|||f}n|j|jj|pdS(sReturn 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(RoRRR+R1(R3tcolumntrowtcol2trow2Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	grid_bboxscCst|tkr_|r_|ddkr6|d }n|d dkrSd|}n|f}n|j||}|s0|jjd||j|}|jj|}i}x|tdt|dD]b}	||	d}
||	d}|sd	}n'd|krt
|}nt|}|||
<qW|S|jjd||j|f|}t|dkr|sqd	Sd|krt
|St|Sd	S(
sInternal function.iRBiRERiiRJN(RRRR+R1RoRKtrangeRTRRYRW(R3RtindexRRjtoptionsRtwordstdicttiR}R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_grid_configures>

		

cKs|jd|||S(sConfigure 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(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrid_columnconfigurescCs.|j|jjdd|j||p-dS(sReturn 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.RtlocationN(RR+R1RoR(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
grid_location#s	cCsQ|tjkr1|j|jjdd|jS|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.
        RRN(R`RRAR+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrid_propagate*scKs|jd|||S(sConfigure 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(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrid_rowconfigure6scCs(|j|jjdd|jp'dS(s<Return a tuple of the number of column and rows in the grid.RtsizeN(RR+R1RoR(R3((s$/usr/lib/python2.7/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-columnRR(N(RRIRzR+RKR1Ro(R3RRRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrid_slavesCs	cGs'dd|f|}|jj|dS(sBind a virtual event VIRTUAL (of the form <<Name>>)
        to an event SEQUENCE such that the virtual event is triggered
        whenever SEQUENCE occurs.teventRN(R+R1(R3tvirtualt	sequencesRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	event_addRscGs'dd|f|}|jj|dS(s-Unbind a virtual event VIRTUAL from SEQUENCE.RtdeleteN(R+R1(R3RRRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pytevent_deleteYscKs`dd|j|f}x4|jD]&\}}|d|t|f}q"W|jj|dS(sGenerate an event SEQUENCE. Additional
        keyword arguments specify parameter of the event
        (e.g. x, y, rootx, rooty).Rtgenerates-%sN(RoRRSR+R1(R3R4RjRiRR((s$/usr/lib/python2.7/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.RR((R+RKR1(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
event_infogs	cCs|jjddS(s*Return a list of all existing image names.timagetnames(R+R1(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytimage_namesoscCs|jjddS(s?Return a list of all available image types (e.g. phote bitmap).Rttypes(R+R1(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytimage_typesssN(s%#s%bs%fs%hs%ks%ss%ts%ws%xs%ys%As%Es%Ks%Ns%Ws%Ts%Xs%Ys%D(RRRRRaRbRFReRgRhRkRmtwaitvarRpRrRtRuRVRWtfloatRYR[RwRvRxR{R|R}R~RRRRRRRRRRRRRRRRRRRRRRRRRRtliftRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR	RR
RRRRRRRR R"R$R&R(R)R+R
R-R.R7R8R9R;R<R=R>R]R?RR@RARRRMRzR@tregisterRKRURHR2R1RyRzR{tconfigR|t__getitem__R~RRR:RRRRRRRRRRRRRRRRRRRRRRRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR`SsH	
	
			
					
										
																
																																													(	
									9											"							RNcBs eZdZdZdZRS(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(RRQR_(R3RRQR_((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7{s		cGsby,|jr|j|}n|j|SWn/tk
rJ}t|n|jjnXdS(s3Apply first function SUBST to arguments, than FUNC.N(RQRR"R_Ry(R3RiR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRCs	(RRRR7RC(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRNxs	tXViewcBs)eZdZdZdZdZRS(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+R1RoR@(R3RiR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs |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.RtmovetoN(R+R1Ro(R3tfraction((s$/usr/lib/python2.7/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).RtscrollN(R+R1Ro(R3RR3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytxview_scrolls(RRRRRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs		tYViewcBs)eZdZdZdZdZRS(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+R1RoR@(R3RiR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs |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.RRN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytyview_movetoscCs#|jj|jdd||dS(s\Shift the y-view according to NUMBER which is measured in
        "units" or "pages" (WHAT).RRN(R+R1Ro(R3RR3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytyview_scrolls(RRRRRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs		tWmcBseZdZdddddZeZdZeZddZeZ	dZ
e
ZddZeZ
dZeZddZeZdZeZdd	ZeZddddd
ZeZddZeZdddZeZd
ZeZddZeZddZ e Z!dddZ"e"Z#ddZ$e$Z%dddZ&e&Z'dddZ(e(Z)ddZ*e*Z+ddZ,e,Z-dddZ.e.Z/dddZ0e0Z1ddZ2e2Z3ddZ4e4Z5ddZ6e6Z7ddZ8e8Z9dZ:e:Z;RS(sAProvides functions for the communication with the window manager.c	Cs.|j|jjdd|j||||S(sInstruct 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+R1Ro(R3tminNumertminDenomtmaxNumertmaxDenom((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	wm_aspectscGs&dd|jf|}|jj|S(sThis 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.
        Rt
attributes(RoR+R1(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
wm_attributesscCs|jjdd|j|S(sVStore NAME in WM_CLIENT_MACHINE property of this widget. Return
        current value.Rtclient(R+R1Ro(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	wm_clientscGsPt|dkr|f}ndd|jf|}t|j|jj|S(sStore 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.iRtcolormapwindows(RTRoRIRzR+R1(R3twlistRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_colormapwindowsscCs|jjdd|j|S(sStore VALUE in WM_COMMAND property. It is the command
        which shall be used to invoke the application. Return current
        command if VALUE is None.RR(R+R1Ro(R3R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
wm_commandscCs|jjdd|jS(sDeiconify this widget. If it was never mapped it will not be mapped.
        On Windows it will raise this widget and give it the focus.Rt	deiconify(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_deiconifyscCs|jjdd|j|S(sSet 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.Rt
focusmodel(R+R1Ro(R3tmodel((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
wm_focusmodelscCs|jjdd|jS(sAReturn identifier for decorative frame of this widget if present.Rtframe(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_framescCs|jjdd|j|S(siSet geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return
        current value if None is given.RR(R+R1Ro(R3tnewGeometry((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_geometrysc	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.RR(RR+R1Ro(R3t	baseWidtht
baseHeighttwidthInct	heightInc((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_grids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.Rtgroup(R+R1Ro(R3tpathName((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_groupscCsE|r%|jjdd|jd|S|jjdd|j|SdS(sSet 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.Rt
iconbitmaps-defaultN(R+R1Ro(R3tbitmaptdefault((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
wm_iconbitmaps	cCs|jjdd|jS(sDisplay widget as icon.Rticonify(R+R1Ro(R3((s$/usr/lib/python2.7/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.Rticonmask(R+R1Ro(R3R((s$/usr/lib/python2.7/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.Rticonname(R+R1Ro(R3tnewName((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_iconname*scCs(|j|jjdd|j||S(sSet 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.Rticonposition(RR+R1Ro(R3RR*((s$/usr/lib/python2.7/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.Rt
iconwindow(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
wm_iconwindow5scCs(|j|jjdd|j||S(sSet 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.Rtmaxsize(RR+R1Ro(R3R'R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
wm_maxsize:scCs(|j|jjdd|j||S(sSet 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.Rtminsize(RR+R1Ro(R3R'R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
wm_minsizeAscCs%|j|jjdd|j|S(sInstruct the window manager to ignore this widget
        if BOOLEAN is given with 1. Return the current value if None
        is given.Rtoverrideredirect(RAR+R1Ro(R3Rf((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_overrideredirectHscCs|jjdd|j|S(sInstruct 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".Rtpositionfrom(R+R1Ro(R3twho((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_positionfromOscCsFt|dr!|j|}n|}|jjdd|j||S(sBind 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".RCRtprotocol(RFR@R+R1Ro(R3R6RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_protocolUs
	cCs|jjdd|j||S(syInstruct the window manager whether this width can be resized
        in WIDTH or HEIGHT. Both values are boolean values.Rt	resizable(R+R1Ro(R3R'R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_resizable`scCs|jjdd|j|S(sInstruct 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".Rtsizefrom(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_sizefromescCs|jjdd|j|S(sQuery or set the state of this widget as one of normal, icon,
        iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only).RRY(R+R1Ro(R3tnewstate((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_statekscCs|jjdd|j|S(sSet the title of this widget.Rttitle(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_titlepscCs|jjdd|j|S(s_Instruct the window manager that this widget is transient
        with regard to widget MASTER.Rt	transient(R+R1Ro(R3R4((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_transienttscCs|jjdd|jS(sWithdraw this widget from the screen such that it is unmapped
        and forgotten by the window manager. Re-draw it with wm_deiconify.Rtwithdraw(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwm_withdrawysN(<RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRYRRRRRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRsv				
	
	tTkcBseeZdZdZdddddddZdZdZdZd	Z	d
Z
dZRS(
szToplevel widget of Tk which represents mostly the main window
    of an application. It has an associated Tcl interpreter.RJR	iic	Csd|_i|_d|_d|_|dkrddl}ddl}|jj|j	d}|jj
|\}}	|	dkr||	}qnd}
tj||||
t
||||_|r|jn|j||dS(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.iiNs.pys.pycs.pyo(s.pys.pycs.pyo(RR4Rt	_tkloadedR+Rptostpathtbasenametargvtsplitextt_tkintertcreatetwantobjectst_loadtktreadprofile(R3t
screenNametbaseNameRtuseTktsynctuseRpRtexttinteractive((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7s				'
cCs'|js#|jj|jndS(N(R
R+tloadtkR(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs	
cCs3d|_|jjd}|tjkrCtdtj|fnt|jjd}|tjkrtdtj|fntdkrtdttn|j	dkrg|_	n|jjdt|jjd	t
|j	jd|j	jd	trtr|an|jd
|jdS(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+RuRt
TK_VERSIONtRuntimeErrorRStTCL_VERSIONt	TkVersionRaRRPR R$RRRRRb(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs0	
	cCsfx!|jjD]}|jqW|jjd|jtj|trbt|krbdandS(shDestroy this and all descendants widgets. This will
        end the application of this Tcl interpreter.RbN(
RtvaluesRbR+R1RoR`RRR(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRbs
c
BsEddl}d|jkr+|jd}n	|j}|jj|d|}|jj|d|}|jj|d|}|jj|d|}i|d6}	d|	U|jj|r|jjd|n|jj|re||	n|jj|r|jjd|n|jj|rAe||	ndS(	sInternal 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.iNtHOMEs.%s.tcls.%s.pyR3sfrom Tkinter import *tsource(	RtenvirontcurdirRRHtisfileR+R1texecfile(
R3RRRthomet	class_tcltclass_pytbase_tcltbase_pytdir((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs$	
cCsZddl}ddl}|jjd||_||_||_|j|||dS(s6Internal function. It reports exception on sys.stderr.iNsException in Tkinter callback
(t	tracebackRptstderrtwritet	last_typet
last_valuetlast_tracebacktprint_exception(R3RuRvRwR3Rp((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRts			cCst|j|S(s3Delegate attribute access to the interpreter object(tgetattrR+(R3tattr((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt__getattr__sN(RRRRoRR7RRRbRRtR<(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	s							cCst||||S(N(R	(RRRR((s$/usr/lib/python2.7/lib-tk/Tkinter.pytTclstPackcBs`eZdZidZeZZZdZeZdZ	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.
        RR{N(R+R1RoR(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytpack_configures	cCs|jjdd|jdS(s:Unmap this widget and do not use it for the packing order.RtforgetN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytpack_forgetscCs|jj|jjdd|j}i}xhtdt|dD]N}||d}||d}|d dkr|j|}n|||<qFW|S(sEReturn information about the packing options
        for this widget.RR(iiiRJ(R+RKR1RoRRTRz(R3RRRR}R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	pack_infos	(RRRR?RR{RRAR@RBR(R`RRRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR>s		

tPlacecBsSeZdZidZeZZZdZeZdZ	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
        RR{N(R+R1RoR(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytplace_configure,s	cCs|jjdd|jdS(sUnmap this widget.RR@N(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytplace_forgetFscCs|jj|jjdd|j}i}xhtdt|dD]N}||d}||d}|d dkr|j|}n|||<qFW|S(sEReturn information about the placing options
        for this widget.RR(iiiRJ(R+RKR1RoRRTRz(R3RRRR}R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
place_infoJs	(RRRRDRR{RRER@RFR(R`RR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRC(s		
tGridcBseZdZidZeZZZejZ	Zej
ZZ
dZeZ
dZdZeZejZZejZZejZZejZZejZZRS(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
        RR{N(R+R1RoR(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrid_configure_s	cCs|jjdd|jdS(sUnmap this widget.RR@N(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrid_forgettscCs|jjdd|jdS(s0Unmap this widget but remember the grid options.RRcN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytgrid_removexscCs|jj|jjdd|j}i}xhtdt|dD]N}||d}||d}|d dkr|j|}n|||<qFW|S(sSReturn information about the options
        for positioning this widget in a grid.RR(iiiRJ(R+RKR1RoRRTRz(R3RRRR}R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	grid_info{s	(RRRRHRR{RR`RRRRRIR@RJRKR(RRRRRRRRRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRGZs

			




t
BaseWidgetcBs>eZdZdZiiddZdZddZRS(sInternal class.cCstr*|s*tstant}q*n||_|j|_d}d|kre|d}|d=n|stt|}n||_|j	dkrd||_	n|j	d||_	i|_
|j|jj
kr|jj
|jjn||jj
|j<dS(s6Internal function. Sets up information about children.R6RJN(RRR	R4R+RR.RR-RoRRb(R3R4RR6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_setups*	

		c	Cs|rt||f}n||_tj||||jdkrRg|_ng}xG|jD]9}t|tkre|j	|||f||=qeqeW|j
j||jf||j
|x$|D]\}}|j||qWdS(sdConstruct a widget with the parent widget MASTER, a name WIDGETNAME
        and appropriate options.N(Rt
widgetNameRLRMRaRRRt	ClassTypeRR+R1RoRR{(	R3R4RNRRjtextratclassesRR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7s		!cCssx!|jjD]}|jqW|jjd|j|j|jjkrb|jj|j=ntj|dS(s)Destroy this and all descendants widgets.RbN(	RR&RbR+R1RoR-R4R`(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRbscCs|jj|j|f|S(N(R+R1Ro(R3R6Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_dos(((RRRRMR7RbRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRLs
		tWidgetcBseZdZRS(sxInternal class.

    Base class for a widget which can be positioned with the geometry managers
    Pack, Place or Grid.(RRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRSstToplevelcBseZdZdidZRS(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
|jdS(
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_RRtcolormapiRBRERR!N((RRLR7RKRRRRb(	R3R4RRjRPtwmkeyRvtoptRx((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7s"


N(RRRRR7(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRTstButtoncBs\eZdZd	idZdZdZdZdZdZ	dZ
dZRS(
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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7scGs|jjd|jdS(Nt
tkButtonEnter(R+R1Ro(R3tdummy((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR[scGs|jjd|jdS(Nt
tkButtonLeave(R+R1Ro(R3R\((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR]scGs|jjd|jdS(NttkButtonDown(R+R1Ro(R3R\((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR^scGs|jjd|jdS(Nt
tkButtonUp(R+R1Ro(R3R\((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR_
scGs|jjd|jdS(NttkButtonInvoke(R+R1Ro(R3R\((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR`
scCs|jj|jddS(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+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRas
cCs|jj|jdS(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+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRbsN(RRRRR7R[R]R^R_R`RaRb(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRYs						cCsdS(Ntend((((s$/usr/lib/python2.7/lib-tk/Tkinter.pytAtEnd(scGs2d}x%|D]}|r
|d|}q
q
W|S(NtinsertRD((RiR_ta((s$/usr/lib/python2.7/lib-tk/Tkinter.pytAtInsert*s

cCsdS(Ns	sel.first((((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
AtSelFirst/scCsdS(Nssel.last((((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	AtSelLast1scCs)|dkrd|fSd||fSdS(Ns@%rs@%r,%r(R(RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pytAt3stCanvascBsIeZdZd:idZdZdZdZdZd:d:dZ	dZ
dZd	Zd
Z
d:dZd:d:d:dZd:d
Zd:dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"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/Z4e4Z5Z6d0Z7d1Z8d2d3Z9d4Z:d5Z;d6Z<d7Z=d8Z>d9Z?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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7;s
cGs!|jj|jdf|dS(sInternal function.taddtagN(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRmFscCs|j|d|dS(s*Add tag NEWTAG to all items above TAGORID.taboveN(Rm(R3tnewtagttagOrId((s$/usr/lib/python2.7/lib-tk/Tkinter.pytaddtag_aboveIscCs|j|ddS(sAdd tag NEWTAG to all items.R:N(Rm(R3Ro((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
addtag_allLscCs|j|d|dS(s*Add tag NEWTAG to all items below TAGORID.tbelowN(Rm(R3RoRp((s$/usr/lib/python2.7/lib-tk/Tkinter.pytaddtag_belowOscCs |j|d||||dS(sAdd 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(Rm(R3RoRR*thalotstart((s$/usr/lib/python2.7/lib-tk/Tkinter.pytaddtag_closestRscCs |j|d||||dS(sLAdd tag NEWTAG to all items in the rectangle defined
        by X1,Y1,X2,Y2.tenclosedN(Rm(R3Rotx1ty1tx2ty2((s$/usr/lib/python2.7/lib-tk/Tkinter.pytaddtag_enclosedXscCs |j|d||||dS(sWAdd tag NEWTAG to all items which overlap the rectangle
        defined by X1,Y1,X2,Y2.toverlappingN(Rm(R3RoRzR{R|R}((s$/usr/lib/python2.7/lib-tk/Tkinter.pytaddtag_overlapping\scCs|j|d|dS(s)Add tag NEWTAG to all items with TAGORID.twithtagN(Rm(R3RoRp((s$/usr/lib/python2.7/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.RN(RR+R1RoR(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRcscCs9|jj|jd||d|r5|j|ndS(sbUnbind for all items with TAGORID for event SEQUENCE  the
        function identified with FUNCID.R8R&N(R+R1RoRF(R3RpR4R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
tag_unbindhscCs"|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.R8(R7Ro(R3RpR4RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyttag_bindnscCs"t|jj|jd||S(srReturn the canvas x coordinate of pixel position SCREENX rounded
        to nearest multiple of GRIDSPACING units.tcanvasx(RYR+R1Ro(R3tscreenxtgridspacing((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRvscCs"t|jj|jd||S(srReturn the canvas y coordinate of pixel position SCREENY rounded
        to nearest multiple of GRIDSPACING units.tcanvasy(RYR+R1Ro(R3tscreenyR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR{scGs2tt|jj|jj|jdf|S(s8Return a list of coordinates for the item given in ARGS.tcoords(RIRYR+RKR1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs	c	Csst|}|d}t|ttfkr;|d }ni}t|jj|jd|||j||S(sInternal function.iR(	RRR
RRWR+R1RoR(R3titemTypeRiRjR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_creates

cOs|jd||S(s6Create arc shaped region with coordinates x1,y1,x2,y2.tarc(R(R3RiRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
create_arcscOs|jd||S(s%Create bitmap with coordinates x1,y1.R(R(R3RiRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
create_bitmapscOs|jd||S(s)Create image item with coordinates x1,y1.R(R(R3RiRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytcreate_imagescOs|jd||S(s-Create line with coordinates x1,y1,...,xn,yn.tline(R(R3RiRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytcreate_linescOs|jd||S(s)Create oval with coordinates x1,y1,x2,y2.toval(R(R3RiRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytcreate_ovalscOs|jd||S(s0Create polygon with coordinates x1,y1,...,xn,yn.tpolygon(R(R3RiRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytcreate_polygonscOs|jd||S(s.Create rectangle with coordinates x1,y1,x2,y2.t	rectangle(R(R3RiRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytcreate_rectanglescOs|jd||S(s#Create text with coordinates x1,y1.ttext(R(R3RiRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytcreate_textscOs|jd||S(s+Create window with coordinates x1,y1,x2,y2.Rn(R(R3RiRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
create_windowscGs!|jj|jdf|dS(sDelete characters of text items identified by tag or id in ARGS (possibly
        several times) from FIRST to LAST character (including).tdcharsN(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscGs!|jj|jdf|dS(s<Delete items identified by all tag or ids contained in ARGS.RN(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscGs!|jj|jdf|dS(siDelete tag or id given as last arguments in ARGS from items
        identified by first argument in ARGS.tdtagN(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscGs,|j|jj|jdf|p+dS(sInternal function.tfind((RR+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs|jd|S(sReturn items above TAGORID.Rn(R(R3Rp((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
find_abovescCs
|jdS(sReturn all items.R:(R(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytfind_allscCs|jd|S(sReturn all items below TAGORID.Rs(R(R3Rp((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
find_belowscCs|jd||||S(sReturn 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.Ru(R(R3RR*RvRw((s$/usr/lib/python2.7/lib-tk/Tkinter.pytfind_closestscCs|jd||||S(s=Return all items in rectangle defined
        by X1,Y1,X2,Y2.Ry(R(R3RzR{R|R}((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
find_enclosedscCs|jd||||S(sLReturn all items which overlap the rectangle
        defined by X1,Y1,X2,Y2.R(R(R3RzR{R|R}((s$/usr/lib/python2.7/lib-tk/Tkinter.pytfind_overlappingscCs|jd|S(sReturn all items with TAGORID.R(R(R3Rp((s$/usr/lib/python2.7/lib-tk/Tkinter.pytfind_withtagscGs|jj|jdf|S(s.Set focus to the first item specified in ARGS.Rv(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRvscGs)|jj|jj|jdf|S(s=Return tags associated with the first item specified in ARGS.tgettags(R+RKR1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs	cGs!|jj|jdf|dS(sdSet cursor at position POS in the item identified by TAGORID.
        In ARGS TAGORID must be first.ticursorN(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscGs#t|jj|jdf|S(s?Return position of cursor as integer in item specified in ARGS.R(RWR+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscGs!|jj|jdf|dS(sSInsert TEXT in item TAGORID at position POS. ARGS must
        be TAGORID POS TEXT.ReN(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRescCs'|jj|jdf|d|fS(s9Return the resource value for an OPTION for item TAGORID.titemcgetRE(R+R1Ro(R3RpR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs	cKs|jd|f||S(sConfigure 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(Rz(R3RpRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscGs!|jj|jdf|dS(sJLower an item TAGORID given in ARGS
        (optional below another item).RN(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	tag_lowerscGs!|jj|jdf|dS(s#Move an item TAGORID given in ARGS.tmoveN(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscKs)|jj|jdf|j||S(sPrint 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+R1RoR(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scGs!|jj|jdf|dS(sJRaise an item TAGORID given in ARGS
        (optional above another item).RN(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	tag_raise	scGs!|jj|jdf|dS(s9Scale item TAGORID with XORIGIN, YORIGIN, XSCALE, YSCALE.tscaleN(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scCs#|jj|jdd||dS(s&Remember the current X, Y coordinates.tscantmarkN(R+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	scan_mark	si
cCs&|jj|jdd|||dS(sAdjust the view of the canvas to GAIN times the
        difference between X and Y and the coordinates given in
        scan_mark.RtdragtoN(R+R1Ro(R3RR*tgain((s$/usr/lib/python2.7/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+R1Ro(R3RpR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
select_adjust	scCs|jj|jdddS(s,Clear the selection if it is in this widget.RRN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselect_clear	scCs#|jj|jdd||dS(s:Set the fixed end of a selection in item TAGORID to INDEX.RtfromN(R+R1Ro(R3RpR((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselect_from	scCs|jj|jddpdS(s(Return the item which has the selection.RR	N(R+R1RoR(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselect_item 	scCs#|jj|jdd||dS(s=Set the variable end of a selection in item TAGORID to INDEX.RttoN(R+R1Ro(R3RpR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	select_to#	scCs|jj|jd|pdS(s$Return the type of the item TAGORID.RN(R+R1RoR(R3Rp((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR&	sN(@RRRRR7RmRqRrRtRxR~RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRvRRRReRRt
itemconfigRRRRRRRRRRRRRRRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRk9sx																																						
							tCheckbuttoncBsJeZdZdidZdZdZdZdZdZ	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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7,	s
cCs|jj|jddS(sPut the button in off-state.tdeselectN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7	scCs|jj|jddS(sFlash the button.RaN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRa:	scCs|jj|jdS(s<Toggle the button and invoke a command if given as resource.Rb(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRb=	scCs|jj|jddS(sPut the button in on-state.RN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR@	scCs|jj|jddS(sToggle the button.ttoggleN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRC	sN(
RRRRR7RRaRbRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR*	s				tEntrycBseZdZdidZddZdZdZdZdZ	dZ
dZd	ZeZ
d
ZeZdZeZdZeZd
ZeZdZeZRS(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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7I	scCs |jj|jd||dS(s.Delete text from FIRST to LAST (not included).RN(R+R1Ro(R3tfirsttlast((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRU	scCs|jj|jdS(sReturn the text.R=(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR=X	scCs|jj|jd|dS(sInsert cursor at INDEX.RN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR[	scCst|jj|jd|S(sReturn position of cursor.R(RWR+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR^	scCs |jj|jd||dS(sInsert STRING at INDEX.ReN(R+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyReb	scCs |jj|jdd|dS(s&Remember the current X, Y coordinates.RRN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRe	scCs |jj|jdd|dS(sAdjust the view of the canvas to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.RRN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRh	scCs |jj|jdd|dS(s9Adjust the end of the selection near the cursor to INDEX.RRN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_adjustm	scCs|jj|jdddS(s,Clear the selection if it is in this widget.RRN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRq	scCs |jj|jdd|dS(s*Set the fixed end of a selection to INDEX.RRN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_fromu	scCs%|jj|jj|jddS(sSReturn True if there are characters selected in the entry, False
        otherwise.Rtpresent(R+R[R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_presenty	s	cCs#|jj|jdd||dS(s3Set the selection from START to END (not included).RRN(R+R1Ro(R3RwRc((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_range	scCs |jj|jdd|dS(s-Set the variable end of a selection to INDEX.RRN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_to	sN(RRRRR7RR=RRReRRRRRRRRRtselect_presentRtselect_rangeRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRG	s*												tFramecBseZdZdidZRS(sFFrame widget which may contain other widgets and can have a 3D border.cKst||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.RUs-classRRN((RRSR7(R3R4RRjRP((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7	s

N(RRRRR7(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	stLabelcBseZdZdidZRS(s0Label widget which can display text and bitmaps.cKstj||d||dS(sConstruct 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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7	sN(RRRRR7(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	stListboxcBseZdZdidZdZdZdZddZddZ	dZ
dZd	Zd
Z
dZdZd
ZeZddZeZdZeZddZeZdZdZddZeZRS(s3Listbox widget which can display a list of strings.cKstj||d||dS(sConstruct 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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7	scCs|jj|jd|dS(s"Activate item identified by INDEX.tactivateN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scGs,|j|jj|jdf|p+dS(svReturn a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
        which encloses the item identified by index in ARGS.RN(RR+R1RoR(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scCs"|jj|jj|jdS(s2Return list of indices of currently selected item.tcurselection(R+RKR1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scCs |jj|jd||dS(s/Delete items from FIRST to LAST (not included).RN(R+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scCsK|r.|jj|jj|jd||S|jj|jd|SdS(s4Get list of items from FIRST to LAST (not included).R=N(R+RKR1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR=	scCs5|jj|jd|}|dkr+dSt|S(s+Return index of item identified with INDEX.RRyN(R+R1RoRRW(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scGs$|jj|jd|f|dS(sInsert ELEMENTS at INDEX.ReN(R+R1Ro(R3Rtelements((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRe	scCst|jj|jd|S(s5Get index of item which is nearest to y coordinate Y.tnearest(RWR+R1Ro(R3R*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scCs#|jj|jdd||dS(s&Remember the current X, Y coordinates.RRN(R+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scCs#|jj|jdd||dS(sAdjust the view of the listbox to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.RRN(R+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scCs|jj|jd|dS(s"Scroll such that INDEX is visible.tseeN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scCs |jj|jdd|dS(s-Set the fixed end oft the selection to INDEX.RtanchorN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_anchor	scCs#|jj|jdd||dS(s6Clear the selection from FIRST to LAST (not included).RRN(R+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scCs(|jj|jj|jdd|S(s+Return 1 if INDEX is part of the selection.Rtincludes(R+R[R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_includes	scCs#|jj|jdd||dS(smSet the selection from FIRST to LAST (not included) without
        changing the currently selected elements.RR0N(R+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
selection_set	scCst|jj|jdS(s-Return the number of elements in the listbox.R(RWR+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	scCs'|jj|jdf|d|fS(s4Return the resource value for an ITEM and an OPTION.RRE(R+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	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(Rz(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
sN(RRRRR7RRRRR=RReRRRRRt
select_anchorRRRtselect_includesRt
select_setRRRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	s2															tMenucBseZdZd%idZdZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
dZdZidZidZidZidZidZidZidZidZidZidZidZidZd%dZdZd%dZ e Z!dZ"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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7
scCsdS(N((R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyttk_bindForTraversal
scCs|jjd|jdS(Nt	tk_mbPost(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs|jjddS(Nttk_mbUnpost(R+R1(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs|jjd|j|dS(Nttk_traverseToMenu(R+R1Ro(R3R[((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs|jjd|j|dS(Nttk_traverseWithinMenu(R+R1Ro(R3R[((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR 
scCs|jjd|jS(Nttk_getMenuButtons(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR"
scCs|jjd|dS(Nttk_nextMenu(R+R1(R3tcount((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR$
scCs|jjd|dS(Nttk_nextMenuEntry(R+R1(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR&
scCs|jjd|jdS(Nt
tk_invokeMenu(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR(
scCs|jjd|jdS(Nttk_firstMenu(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR*
scCs|jjd|jdS(Nttk_mbButtonDown(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR,
sR&cCs#|jjd|j|||dS(s/Post the menu at position X,Y with entry ENTRY.ttk_popupN(R+R1Ro(R3RR*R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR.
scCs|jj|jd|dS(sActivate entry at INDEX.RN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR1
scKs0|jj|jd|f|j||dS(sInternal function.RN(R+R1RoR(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR4
scKs|jd|p|dS(sAdd hierarchical menu item.tcascadeN(R(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytadd_cascade8
scKs|jd|p|dS(sAdd checkbutton menu item.RN(R(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytadd_checkbutton;
scKs|jd|p|dS(sAdd command menu item.RN(R(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytadd_command>
scKs|jd|p|dS(sAddd radio menu item.tradiobuttonN(R(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytadd_radiobuttonA
scKs|jd|p|dS(sAdd separator.t	separatorN(R(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
add_separatorD
scKs3|jj|jd||f|j||dS(sInternal function.ReN(R+R1RoR(R3RRRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyReG
scKs|j|d|p|dS(s$Add hierarchical menu item at INDEX.RN(Re(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytinsert_cascadeK
scKs|j|d|p|dS(s#Add checkbutton menu item at INDEX.RN(Re(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytinsert_checkbuttonN
scKs|j|d|p|dS(sAdd command menu item at INDEX.RN(Re(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytinsert_commandQ
scKs|j|d|p|dS(sAddd radio menu item at INDEX.RN(Re(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytinsert_radiobuttonT
scKs|j|d|p|dS(sAdd separator at INDEX.RN(Re(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytinsert_separatorW
scCs|dkr|}n|j||j|}}|dksL|dkr[d\}}nxat||dD]L}d|j|krot|j|d}|r|j|qqoqoW|jj|j	d||dS(s7Delete menu items between INDEX1 and INDEX2 (included).iiiRRN(ii(
RRRtentryconfigRSt	entrycgetRFR+R1Ro(R3tindex1tindex2t
num_index1t
num_index2RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRZ
s	cCs |jj|jd|d|S(s>Return the resource value of an menu item for OPTION at INDEX.RRE(R+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRi
scKs|jd|f||S(sConfigure a menu item at INDEX.tentryconfigure(Rz(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRl
scCs5|jj|jd|}|dkr+dSt|S(s4Return the index of a menu item identified by INDEX.RRyN(R+R1RoRRW(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRp
scCs|jj|jd|S(sRInvoke a menu item identified by INDEX and execute
        the associated command.Rb(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRbu
scCs |jj|jd||dS(sDisplay a menu at position X,Y.tpostN(R+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRy
scCs|jj|jd|S(s*Return the type of the menu item at INDEX.R(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR|
scCs|jj|jddS(s
Unmap a menu.tunpostN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCst|jj|jd|S(sEReturn the y-position of the topmost pixel of the menu item at INDEX.t	yposition(RWR+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
sN((RRRRR7RRRRRRRRRRRRRRRRRRRReRRRRRRRRRRRbRRRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
sJ																		t
MenubuttoncBseZdZdidZRS(s(Menubutton widget, obsolete since Tk8.0.cKstj||d||dS(Nt
menubutton(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7
sN(RRRRR7(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
stMessagecBseZdZdidZRS(sKMessage widget to display multiline text. Obsolete since Label does it too.cKstj||d||dS(Ntmessage(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7
sN(RRRRR7(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR	
stRadiobuttoncBsAeZdZdidZdZdZdZdZRS(sGRadiobutton widget which shows only one of several buttons in on-state.cKstj||d||dS(sConstruct 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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7
s
cCs|jj|jddS(sPut the button in off-state.RN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs|jj|jddS(sFlash the button.RaN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRa
scCs|jj|jdS(s<Toggle the button and invoke a command if given as resource.Rb(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRb
scCs|jj|jddS(sPut the button in on-state.RN(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
sN(	RRRRR7RRaRbR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
s			tScalecBsDeZdZdidZdZdZddZdZRS(s1Scale widget which can display a numerical scale.cKstj||d||dS(sConstruct 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.RN(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7
s	cCsE|jj|jd}yt|SWntk
r@t|SXdS(s*Get the current value as integer or float.R=N(R+R1RoRWRdRY(R3R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR=
s

cCs|jj|jd|dS(sSet the value to VALUE.R0N(R+R1Ro(R3R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR0
scCs"|j|jj|jd|S(sReturn 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+R1Ro(R3R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs|jj|jd||S(scReturn where the point X,Y lies. Valid return values are "slider",
        "though1" and "though2".tidentify(R+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR

sN(	RRRRR7R=R0RR
(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
s
		t	ScrollbarcBsSeZdZdidZdZdZdZdZdZ	dZ
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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7
s	cCs|jj|jd|dS(sxDisplay the element at INDEX with activebackground and activerelief.
        INDEX can be "arrow1","slider" or "arrow2".RN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs"t|jj|jd||S(snReturn the fractional change of the scrollbar setting if it
        would be moved by DELTAX or DELTAY pixels.Rb(RYR+R1Ro(R3tdeltaxtdeltay((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRb
scCs"t|jj|jd||S(sRReturn the fractional value which corresponds to a slider
        position of X,Y.R(RYR+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs|jj|jd||S(sYReturn the element under position X,Y as one of
        "arrow1","slider","arrow2" or "".R
(R+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR

scCs|j|jj|jdS(sZReturn the current fractional values (upper and lower end)
        of the slider position.R=(R@R+R1Ro(R3((s$/usr/lib/python2.7/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).R0N(R+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR0
sN(RRRRR7RRbRR
R=R0(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
s
					tTextc	BsHeZdZd5idZdZdZdZdZdZ	dZ
d5dZd5d	Zd
Z
d5d5dZdZd5d
ZdZdZdZdZd5dZdZd5dZidZdZdZdZd5dZdZdZdZdZ dZ!dZ"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/Z3d0Z4d5d1Z5e5Z6id2Z7d3Z8d4Z9RS(6s4Text widget which can display text in various forms.cKstj||d||dS(sConstruct 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,

        RN(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7
scGs,|j|jj|jdf|p+dS(sReturn a tuple of (x,y,width,height) which gives the bounding
        box of the visible part of the character at the index in ARGS.RN(RR+R1RoR(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs|jjd|j|dS(Nttk_textSelectTo(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs|jjd|jdS(Nttk_textBackspace(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs#|jjd|j|||dS(Nttk_textIndexCloser(R+R1Ro(R3RfRdR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs|jjd|j|dS(Nttk_textResetAnchor(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs+|jj|jj|jd|||S(sReturn whether between index INDEX1 and index INDEX2 the
        relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=.tcompare(R+R[R1Ro(R3RtopR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs%|jj|jj|jd|S(sjTurn on the internal consistency checks of the B-Tree inside the text
        widget according to BOOLEAN.tdebug(R+R[R1Ro(R3Rf((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR!scCs |jj|jd||dS(s?Delete the characters between INDEX1 and INDEX2 (not included).RN(R+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR&scCs"|j|jj|jd|S(sReturn 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+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR)sc
Ksg}d}d}|s3g}|d}|}nzt|ts[|j|}}n|d|g7}x,|D]$}	||	rr|jd|	qrqrW|j||r|j|n|jj|jd||SWd|r|j|nXdS(sReturn 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|||fdS(N(R(R}R5RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
append_tripleCss-commandREtdumpN(	RRQRSR@RR+R1RoRF(
R3RRRRjRit	func_nameRRR}((s$/usr/lib/python2.7/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+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRVs
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(R3targ((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
edit_modifiedes	cCs
|jdS(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(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	edit_redopscCs
|jdS(s(Clears the undo and redo stacks
        treset(R(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
edit_resetzscCs
|jdS(snInserts a separator (boundary) on the undo stack.

        Does nothing when the undo option is false
        R(R(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytedit_separatorscCs
|jdS(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(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	edit_undos	cCs|jj|jd||S(s5Return the text from INDEX1 to INDEX2 (not included).R=(R+R1Ro(R3RR((s$/usr/lib/python2.7/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.iREiRBRR|(R+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
image_cgets


cKs|jdd|f||S(s%Configure an embedded image at INDEX.RR{(Rz(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytimage_configurescKs+|jj|jdd||j||S(s"Create an embedded image at INDEX.RR(R+R1RoR(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytimage_creates	cCs|jj|jddS(s3Return all names of embedded images in this widget.RR(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCst|jj|jd|S(s1Return the index in the form line.char for INDEX.R(RSR+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscGs'|jj|jd||f|dS(sInsert CHARS before the characters at INDEX. An additional
        tag can be given in ARGS. Additional CHARS and tags can follow in ARGS.ReN(R+R1Ro(R3RtcharsRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRescCs"|jj|jdd||fS(sChange the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT).
        Return the current value if None is given for DIRECTION.Rtgravity(R+R1Ro(R3tmarkNamet	direction((s$/usr/lib/python2.7/lib-tk/Tkinter.pytmark_gravitys	cCs%|jj|jj|jddS(sReturn all mark names.RR(R+RKR1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
mark_namesscCs#|jj|jdd||dS(s0Set mark MARKNAME before the character at INDEX.RR0N(R+R1Ro(R3R.R((s$/usr/lib/python2.7/lib-tk/Tkinter.pytmark_setscGs$|jj|jddf|dS(sDelete all marks in MARKNAMES.RtunsetN(R+R1Ro(R3t	markNames((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
mark_unsetscCs"|jj|jdd|p!dS(s-Return the name of the next mark after INDEX.RtnextN(R+R1RoR(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	mark_nextscCs"|jj|jdd|p!dS(s2Return the name of the previous mark before INDEX.RtpreviousN(R+R1RoR(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
mark_previousscCs#|jj|jdd||dS(s&Remember the current X, Y coordinates.RRN(R+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs#|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.RRN(R+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs(|jdg}|r%|jdn|r;|jdn|rQ|jdn|rg|jdn|r}|jdn|
r|jdn|	r|jd|j|	n|r|d	d
kr|jdn|j||j||r|j|nt|jjt|S(sSearch PATTERN beginning from INDEX until STOPINDEX.
        Return the index of the first character of a match or an
        empty string.tsearchs	-forwardss
-backwardss-exacts-regexps-nocases-elides-countiREs--(RoRRSR+R1R(R3RRt	stopindextforwardst	backwardstexacttregexptnocaseRtelideRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR:s.


cCs|jj|jd|dS(s3Scroll such that the character at INDEX is visible.RN(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscGs*|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.ttagRN(R+R1Ro(R3ttagNameRRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pyttag_adds	cCs<|jj|jdd||d|r8|j|ndS(sgUnbind for all characters with TAGNAME for event SEQUENCE  the
        function identified with FUNCID.RBR8R&N(R+R1RoRF(R3RCR4R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs"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.RBR8(R7Ro(R3RCR4RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCsY|d dkrd|}n|ddkr:|d }n|jj|jdd||S(s+Return the value of OPTION for tag TAGNAME.iREiRBRBR|(R+R1Ro(R3RCR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyttag_cgets


cKs|jdd|f||S(sConfigure a tag TAGNAME.RBR{(Rz(R3RCRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
tag_configurescGs$|jj|jddf|dS(sDelete all tags in TAGNAMES.RBRN(R+R1Ro(R3ttagNames((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
tag_deletescCs#|jj|jdd||dS(s`Change the priority of tag TAGNAME such that it is lower
        than the priority of BELOWTHIS.RBRN(R+R1Ro(R3RCR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs(|jj|jj|jdd|S(sReturn a list of all tag names.RBR(R+RKR1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	tag_namess	cCs.|jj|jj|jdd|||S(sReturn 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.RBt	nextrange(R+RKR1Ro(R3RCRR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
tag_nextrange
scCs.|jj|jj|jdd|||S(sReturn 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.RBt	prevrange(R+RKR1Ro(R3RCRR((s$/usr/lib/python2.7/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.RBRN(R+R1Ro(R3RCR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs	cCs(|jj|jj|jdd|S(s7Return a list of ranges of text which have tag TAGNAME.RBtranges(R+RKR1Ro(R3RC((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
tag_rangesscCs&|jj|jdd|||dS(sARemove tag TAGNAME from all characters between INDEX1 and INDEX2.RBRcN(R+R1Ro(R3RCRR((s$/usr/lib/python2.7/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.iREiRBRnR|(R+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwindow_cget#s


cKs|jdd|f||S(s&Configure an embedded window at INDEX.RnR{(Rz(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwindow_configure*scKs3|jj|jdd|f|j||dS(sCreate a window at INDEX.RnRN(R+R1RoR(R3RRRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
window_create.s	cCs%|jj|jj|jddS(s4Return all names of embedded windows in this widget.RnR(R+RKR1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytwindow_names3s	cGs$|jj|jddf|dS(sObsolete function, use see.Rs
-pickplaceN(R+R1Ro(R3R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytyview_pickplace7sN(:RRRRR7RRRRRRRRRRRR!R#R%R&R(R=R)R*R+RRReR0R1R2R5R7R9RRR:RRDRRRERFt
tag_configRHRRIRKRMRRORPRQRRt
window_configRSRTRU(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
sr							(		
																						t_setitcBs#eZdZddZdZRS(s>Internal class. It wraps the command in the widget OptionMenu.cCs||_||_||_dS(N(t
_setit__valuet_setit__vart_setit__callback(R3tvarR5RB((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7>s		cGs6|jj|j|jr2|j|j|ndS(N(RZR0RYR[(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRCBs	N(RRRRR7RC(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRX<st
OptionMenucBs)eZdZdZdZdZRS(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|rt	d|j
dn|jd|dt|||x0|D](}	|jd|	dt||	|qW||d
<dS(sConstruct 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textvariableitindicatorontreliefRRthighlightthicknessRt
tk_optionMenuR6RttearoffiRsunknown option -RN(
tRAISEDRSR7RNRt_OptionMenu__menuRotmenunameR=RRRRX(
R3R4R?R5R&tkwargsRjRRBR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7Is$
	

cCs#|dkr|jStj||S(NR(RfRSR(R3R6((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRbscCstj|d|_dS(s,Destroy this widget and the associated menu.N(RRbRRf(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRbgs
(RRRR7RRb(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR]Gs		tImagecBsteZdZdZdiddZdZdZdZdZ	dZ
e
ZdZd	Z
d
ZRS(sBase class for images.ic	Ks4d|_|s*t}|s*tdq*n|j|_|stjd7_dtjf}|ddkrd|d}qn|r|rt||f}n|r|}nd
}xO|jD]A\}}t	|dr|j
|}n|d||f}qW|jjdd	||f|||_dS(NsToo early to create imageis	pyimage%riRERBRCRR((RR6RR#R+Rit_last_idRRRFR@R1(	R3timgtypeR6RR4RjRRR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7os,		 cCs|jS(N(R6(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR:scCsA|jr=y|jjdd|jWq=tk
r9q=XndS(NRR(R6R+R1R(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR9s
	
cCs$|jj|jdd||dS(NR{RE(R+R1R6(R3R}R5((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR~scCs|jj|jdd|S(NR{RE(R+R1R6(R3R}((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscKsd}xt|jD]m\}}|dk	r|ddkrN|d }nt|dro|j|}n|d||f}qqW|jj|jdf|dS(sConfigure the image.iRBRCRERN((RRRRFR@R+R1R6(R3RjRRR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR{s
cCst|jjdd|jS(sReturn the height of the image.RR(RWR+R1R6(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs|jjdd|jS(s8Return the type of the imgage, e.g. "photo" or "bitmap".RR(R+R1R6(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCst|jjdd|jS(sReturn the width of the image.RR'(RWR+R1R6(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR'sN(RRRRjRR7R:R9R~RR{RRRR'(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRils					
		t
PhotoImagecBseZdZdiddZdZdZdZdZddZ	ddZ
d	Zdd
ZdddZ
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(RiR7(R3R6RR4Rj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7scCs|jj|jddS(sDisplay a transparent image.tblankN(R+R1R6(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRnscCs|jj|jdd|S(sReturn the value of OPTION.R|RE(R+R1R6(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR|scCs|jj|jdd|S(NR|RE(R+R1R6(R3R}((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCs&t}|jj|d|j|S(s;Return a new PhotoImage with the same image as this widget.tcopy(RlR+R1R6(R3t	destImage((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRos	R&cCsDt}|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.R&Ros-zoom(RlR+R1R6(R3RR*Rp((s$/usr/lib/python2.7/lib-tk/Tkinter.pytzooms
		"cCsDt}|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.R&Ros
-subsample(RlR+R1R6(R3RR*Rp((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	subsamples
		"cCs|jj|jd||S(s8Return the color (red, green, blue) of the pixel at X,Y.R=(R+R1R6(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR=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(R6RR+R1(R3RRRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs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.R5s-formats-fromN(s-from(R6RR+R1(R3tfilenametformattfrom_coordsRi((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR5sN(RRRRR7RnR|RRoRqRrR=RsR5(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRls					
tBitmapImagecBs eZdZdiddZRS(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.RN(RiR7(R3R6RR4Rj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7sN(RRRRR7(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRwscCstjjddS(NRR(RR+R1(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRscCstjjddS(NRR(RR+R1(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRstSpinboxcBseZdZdidZdZddZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZdZdZddZRS(sspinbox widget.cKstj||d||dS(sConstruct 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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7scCs|jj|jd|S(sReturn 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(R+R1Ro(R3R((s$/usr/lib/python2.7/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+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
s	cCs|jj|jdS(sReturns the spinbox's stringR=(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR=(
scCs|jj|jd|S(sAlter 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+R1Ro(R3R((s$/usr/lib/python2.7/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+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
4
scCs|jj|jd|S(s;Returns the numerical index corresponding to index
        R(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR;
scCs|jj|jd||S(sDInsert string s at index

         Returns an empty string.
        Re(R+R1Ro(R3RR_((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRe@
scCs|jj|jd|S(sCauses the specified element to be invoked

        The element could be buttondown or buttonup
        triggering the action associated with it.
        Rb(R+R1Ro(R3telement((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRbG
scGs,|j|jj|jdf|p+dS(sInternal function.R((RR+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRO
scCs|jd|S(sRecords 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(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRT
scCs|jd|S(sCompute 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(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR]
s
cGs,|j|jj|jdf|p+dS(sInternal function.R((RR+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRi
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(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRn
scCs
|jdS(sClear the selection

        If the selection isn't in this widget then the
        command has no effect. Returns an empty string.
        R(R(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR|
scCs|jd|S(sSets or gets the currently selected element.

        If a spinbutton element is specified, it will be
        displayed depressed
        Rz(R(R3Rz((s$/usr/lib/python2.7/lib-tk/Tkinter.pytselection_element
sN(RRRRR7RRR=RR
RReRbRRRRRRR{(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRxs"														t
LabelFramecBseZdZdidZRS(slabelframe widget.cKstj||d||dS(sConstruct 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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7
sN(RRRRR7(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR|
stPanedWindowcBseZdZdidZdZdZeZdZdZ	dZ
dZdZd	Z
d
ZdZdZd
ZddZeZdZRS(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(RSR7(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7
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.
        RN(R+R1RoR(R3RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs|jj|jd|dS(sRemove the pane containing child from the panedwindow

        All geometry management options for child will be forgotten.
        R@N(R+R1Ro(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRc
scCs|jj|jd||S(sIdentify 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+R1Ro(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR

s
cGs,|j|jj|jdf|p+dS(sInternal function.tproxy((RR+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs
|jdS(sBReturn the x and y pair of the most recent proxy location
        tcoord(R(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytproxy_coord
scCs
|jdS(s+Remove the proxy from the display.
        R@(R(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pytproxy_forget
scCs|jd||S(s:Place the proxy at the given x and y coordinates.
        R(R(R3RR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pytproxy_place
scGs,|j|jj|jdf|p+dS(sInternal function.tsash((RR+R1Ro(R3Ri((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR
scCs|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(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
sash_coord
s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(R3R((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt	sash_mark
scCs|jd|||S(s?Place the sash given by index at the given coordinates
        R(R(R3RRR*((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt
sash_placescCs'|jj|jdf|d|fS(swQuery a management option for window.

        Option may be any value allowed by the paneconfigure subcommand
        tpanecgetRE(R+R1Ro(R3RR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRs	c	Ks|dkrt|rti}xT|jj|jj|jd|D]+}|ddf|d||dd<qAW|St|tkr|r|jj|jj|jd|d|}|ddf|dS|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
paneconfigureiiREN(RR+RJR1RoRRR(R3RpRRjR((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRsD)cCs|jj|jdS(s+Returns an ordered list of the child panes.tpanes(R+R1Ro(R3((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRbsN(RRRRR7RRcR@R
RRRRRRRRRRt
paneconfigR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR~
s$	
											Qt
StudbuttoncBseZdidZRS(cKsitj||d|||jd|j|jd|j|jd|j|jd|jdS(Nt
studbuttons<Any-Enter>s<Any-Leave>s<1>s<ButtonRelease-1>(RSR7R8R[R]R^R_(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7js
N(RRRR7(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRist	TributtoncBseZdidZRS(cKstj||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(RSR7R8R[R]R^R_(R3R4RRj((s$/usr/lib/python2.7/lib-tk/Tkinter.pyR7rsN(RRRR7(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRqscCst}dt}tdkrMy|tdd}WqMtk
rIqMXnt|d|}|jt|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-1Rs	Click me!RcSs|jjdd|jdS(NRs[%s](ttestR{(Rx((s$/usr/lib/python2.7/lib-tk/Tkinter.pyRstQUIT(
R	t
TclVersiontunicodet	NameErrorRRRYRRbRR
RR](RxRRRR?((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt_test~s(	
	


	



t__main__([Rt__version__RptplatformtFixTkRtImportErrorRRSttkinterRRtTkconstantsRRR"R%R$RtREADABLEtWRITABLEt	EXCEPTIONtcreatefilehandlerRRtdeletefilehandlerRRRRRRR R$R/R%RPRTRXRZR]RVRWRYR[R`RNRRRR	R=R>RCRGRLRSRTRYRdRgRhRiRjRkRRRRRRRR	RRRRRXR]RiRlRwRRRxR|R~RRRR(((s$/usr/lib/python2.7/lib-tk/Tkinter.pyt<module>s	

			



	


	

,		L	)x-258>				A^y!(H%<<