zfc@sdZdZddlZejdkr6ddlZnddlZeZejZddlTddl Tddl Z dZ e ej Ze ejZejZejZejZy ejWnek ree_nXy ejWnek ree_nXe jdZe jdZd Zd Zd Zy ejZWnek rYnXd Zy ejZWnek rnXeed Z dfdYZ!da"ea#dZ$dZ%ddZ&da'dfdYZ(de(fdYZ)de(fdYZ*de(fdYZ+de(fdYZ,ddZ-e.Z/e Z0dZ1d fd!YZ2d"fd#YZ3d$fd%YZ4d&fd'YZ5d(fd)YZ6d*e2e6fd+YZ7eed*dd,Z8d-fd.YZ9d/fd0YZ:d1fd2YZ;d3e2fd4YZ<d5e<e9e:e;fd6YZ=d7e<e6fd8YZ>d9e=fd:YZ?d;Z@d<ZAd=ZBd>ZCed?ZDd@e=e4e5fdAYZEdBe=fdCYZFdDe=e4fdEYZGdFe=fdGYZHdHe=fdIYZIdJe=e4e5fdKYZJdLe=fdMYZKdNe=fdOYZLdPe=fdQYZMdRe=fdSYZNdTe=fdUYZOdVe=fdWYZPdXe=e4e5fdYYZQdZfd[YZRd\eLfd]YZSd^fd_YZTd`eTfdaYZUdbeTfdcYZVddZWdeZXdfe=e4fdgYZYdhe=fdiYZZdje=fdkYZ[dle?fdmYZ\dne?fdoYZ]dpZ^e_dqkre^ndS(rs2Wrapper functions for Tcl/Tk. Tkinter provides classes which allow the display, positioning and control of widgets. Toplevel widgets are Tk and Toplevel. Other widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton, Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox LabelFrame and PanedWindow. Properties of the widgets are specified with keyword arguments. Keyword arguments have the same name as the corresponding resource under Tk. Widgets are positioned with one of the geometry managers Place, Pack or Grid. These managers can be called with methods place, pack, grid available in every Widget. Actions are bound to events by resources (e.g. keyword argument command) or with the method bind. Example (Hello, World): import Tkinter from Tkconstants import * tk = Tkinter.Tk() frame = Tkinter.Frame(tk, relief=RIDGE, borderwidth=2) frame.pack(fill=BOTH,expand=1) label = Tkinter.Label(frame, text="Hello, World") label.pack(fill=X, expand=1) button = Tkinter.Button(frame,text="Exit",command=tk.destroy) button.pack(side=BOTTOM) tk.mainloop() s$Revision: 81008 $iNtwin32(t*is([\\{}])s([\s])cCsdjtt|S(sInternal function.t (tjointmapt _stringify(tvalue((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt_joinAscCsLt|ttfrit|dkrVt|d}tj|rfd|}qfqHdt|}nt|trt |d}nt|t st|}n|sd}ntj|rtj d|}|j dd}t j d|}|dd krHd |}qHn,|dd ks;t j|rHd|}n|S( sInternal function.iis{%s}sutf-8s{}s\\\1s s\nt"s\( t isinstancetlistttupletlenRt _magic_retsearchRtstrtunicodetsubtreplacet _space_re(R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyREs*  cCsbd}xU|D]M}t|ttfkr>|t|}q |dk r ||f}q q W|S(sInternal function.(N(ttypet TupleTypetListTypet_flattentNone(R trestitem((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR`s  cCst|tkr|St|ttfkr2|Si}xqt|D]c}y|j|WqEttfk r}dG|GHx(|jD]\}}|||scCs(|jj|jjko'|j|jkS(sComparison for equality (==). Note: if the Variable's master matters to behavior also compare self._master == other._master (t __class__R7RK(RRtother((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt__eq__BsN(R7R8R9RQRRWRURYRZRNR]RjR^RpRlRt(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRDs      t StringVarcBs/eZdZdZddddZdZRS(s#Value holder for strings variables.REcCstj||||dS(s6Construct a string variable. MASTER can be given as master widget. VALUE is an optional value (defaults to "") NAME is an optional Tcl name (defaults to PY_VARnum). If NAME matches an existing variable and VALUE is omitted then the existing value is retained. N(RDRU(RRRSRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRUNs cCs2|jj|j}t|tr(|St|S(s#Return value of variable as string.(RJR\RKR t basestringR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR]ZsN(R7R8R9RQRRUR](((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRuKs 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(RDRU(RRRSRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRUds cCs.t|trt|}ntj||S(s;Set the variable to value, converting booleans to integers.(R tboolR?RDRN(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRNpscCst|jj|jS(s/Return the value of the variable as an integer.(tgetintRJR\RK(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR]vsN(R7R8R9RQRRURNR](((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRwas  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(RDRU(RRRSRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU}s cCst|jj|jS(s,Return the value of the variable as a float.(t getdoubleRJR\RK(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR]sN(R7R8R9RQRRUR](((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRzzs t BooleanVarcBs8eZdZeZddddZdZdZRS(s#Value holder for boolean variables.cCstj||||dS(s:Construct a boolean variable. MASTER can be given as master widget. VALUE is an optional value (defaults to False) NAME is an optional Tcl name (defaults to PY_VARnum). If NAME matches an existing variable and VALUE is omitted then the existing value is retained. N(RDRU(RRRSRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRUs cCs"|jj|j|jj|S(sSet the variable to VALUE.(RJR[RKRO(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRNscCs|jj|jj|jS(s+Return the value of the variable as a bool.(RJROR\RK(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR]sN( R7R8R9tFalseRQRRURNR](((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR|s  cCstjj|dS(sRun the main loop of Tcl.N(R;R.tmainloop(tn((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR~scCstjj|S(s1Convert true and false to integer values 1 and 0.(R;R.RO(ts((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyROstMisccBsDeZdZdZdZdZddZdZdZ dZ ddZ e Z dd Z dd Zdd d 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{e|duZ}ddvZ~dwZeZddgdxZeZdyZdZdjeZdZdZdZdZdZddZeZdZeZdZdZdZdZdgZedZeZdZeZdZdddddZeZdZdZidZeZdZedZidZeZdZeZdddZdZdZdZddZdZdZRS(sRInternal class. Base class which defines methods common for interior widgets.cCsC|jdk r?x!|jD]}|jj|qWd|_ndS(skInternal function. Delete all Tcl commands created for this widget in the Tcl interpreter.N(RWRR.RX(RRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytdestroyscCs<|jj|y|jj|Wntk r7nXdS(sDInternal function. Delete the Tcl command provided in NAME.N(R.RXRWRmR@(RRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRXs  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.RNttk_strictMotif(R.RORP(RRtboolean((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRscCs|jjddS(sDChange the color scheme to light brown as used in Tk 3.6 and before.t tk_bisqueN(R.RP(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRscOs.|jjdt|t|jdS(s Set 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(R(R.RPRR!(RRtargstkw((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRs cGs&ddl}|jdtdddS(s)Do not use. Needed in Tk 3.6 and earlier.iNs4tk_menuBar() does nothing and will be removed in 3.6t stackleveli(twarningstwarntDeprecationWarning(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt tk_menuBars  RFcCs|jjdd|dS(sWait until the variable is modified. A parameter of type IntVar, StringVar, DoubleVar or BooleanVar must be given.ttkwaitR_N(R.RP(RRRT((s&/usr/lib64/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.RtwindowN(RR.RPt_w(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wait_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.Rt visibilityN(RR.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytwait_visibilitys  t1cCs|jj||dS(sSet Tcl variable NAME to VALUE.N(R.tsetvar(RRRTR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRscCs|jj|S(s"Return value of Tcl variable NAME.(R.tgetvar(RRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRscCs|jj|S(sPReturn a boolean value for Tcl boolean values true and false given as parameter.(R.RO(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRO 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.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt focus_set scCs|jjdd|jdS(stDirect input focus to this widget even if the application does not have the focus. Use with caution!Rs-forceN(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt focus_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.RtnoneN(R.RPRt _nametowidget(RRRT((s&/usr/lib64/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.Rs -displayofRN(R.RPRRR(RRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytfocus_displayof#scCs?|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.Rs-lastforRN(R.RPRRR(RRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt focus_lastfor+scCs|jjddS(sXThe widget under mouse will get automatically focus. Can not be disabled easily.ttk_focusFollowsMouseN(R.RP(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR1scCs/|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.RPRRR(RRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR5s cCs/|jjd|j}|s"dS|j|S(sHReturn previous widget in the focus order. See tk_focusNext for details.t tk_focusPrevN(R.RPRRR(RRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRAscsjsjjd|dSfd}j|_j|jjd|SdS(sCall function once after given time. MS specifies the time in milliseconds. FUNC gives the function which shall be called. Additional parameters are given as parameters to the function call. Return identifier to cancel scheduling with after_cancel.taftercs;zWdyjWntk r5nXXdS(N(RXtTclError((RtfuncRTRR(s&/usr/lib64/python2.7/lib-tk/Tkinter.pytcallitRs  N(R.RPRR7t _register(RRtmsRRR((RRRTRRs&/usr/lib64/python2.7/lib-tk/Tkinter.pyRFs 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(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt after_idle]scCs|stdny?|jjdd|}|jj|d}|j|Wntk rgnX|jjdd|dS(sCancel scheduling of function identified with ID. Identifier returned by after or after_idle must be given as first parameter. s?id must be a valid identifier returned from after or after_idleRRGitcancelN(R@R.RPR*RXR(RRRbtdatatscript((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt after_cancelds icCs!|jjd|j|dS(sRing a display's bell.tbellN(R(R.RPt _displayof(RRt displayof((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRtscKsd|krd|jdkrdy+d|d<|jjd|j|SWqdtk r`|d=qdXn|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, except on X11, where the default is to try UTF8_STRING and fall back to STRING. This command is equivalent to: selection_get(CLIPBOARD) Rtx11t UTF8_STRINGt clipboardR](RR](RR](t_windowingsystemR.RPt_optionsR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt clipboard_getys ! cKs=d|kr|j|d 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 for pressing Control and mouse button 1 or for pressing A and the Alt key (KeyPress can be omitted). An event pattern can also be a virtual event of the form <> 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(R[R(RRRXRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR\(s'cCs6|jjd|j|d|r2|j|ndS(sWUnbind for this widget for event SEQUENCE the function identified with FUNCID.R\REN(R.RPRRX(RRRXRZ((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytunbindPscCs|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.R\talli(R\R^(R[(RRRXRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytbind_allVscCs|jjdd|ddS(s8Unbind for all widgets for event SEQUENCE all functions.R\R^REN(R.RP(RRRX((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt unbind_all\scCs|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.R\i(R[(RRRRXRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt bind_class_s cCs|jjd||ddS(sWUnbind for all widgets with bindtag CLASSNAME for event SEQUENCE all functions.R\REN(R.RP(RRRRX((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt unbind_classiscCs|jj|dS(sCall the mainloop of Tk.N(R.R~(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR~mscCs|jjdS(s8Quit the Tcl interpreter. All widgets will be destroyed.N(R.tquit(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRcpscCs)|r%ttt|jj|SdS(sInternal function.N(R RRyR.R*(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRsscCs)|r%ttt|jj|SdS(sInternal function.N(R RR{R.R*(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt _getdoubleswscCs|r|jj|SdS(sInternal function.N(R.RO(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt _getboolean{scCs-|rd|fS|dkr)d|jfSdS(sInternal function.s -displayofN((RR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRs    cCsLy|jjSWn4tk rG|jjdd}|j_|SXdS(sInternal function.R.twindowingsystemN(RIt_windowingsystem_cachedRR.RP(RRtws((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRs  "cCsE|rt||f}n t|}d}x|jD]\}}|dk r:|ddkro|d }nt|dr|j|}nt|ttfr&g}xx|D]^}t|tt t fsPqt|t t fr|j d|q|j t |qWdj |}n|d||f}q:q:W|S( sInternal function.it_Ras%dRR)(N(R(R!RthasattrRR R R RvR?tlongReRR(RRR#RRR&R'tnvR((s&/usr/lib64/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(RR<RIR(RRRTtwR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt nametowidgets    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( R`RaRLRbRcRR7R.RdRWRRe(RRRtsubstRYRhRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRs     cCs#|}x|jr|j}q W|S(sInternal function.(RS(RRRn((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRIs s%#s%bs%fs%hs%ks%ss%ts%ws%xs%ys%As%Es%Ks%Ns%Ws%Ts%Xs%Ys%DRcGs 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(R?R@(R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt getint_events i(R t _subst_formatR.ROR?R6tserialtnumRRRtkeycodetstatettimeRKRARNtchart send_eventtkeysymt keysym_numRRtwidgetRtx_rootty_roottdeltaR@(RRRRORyRqtnsigntbRhthR&RR1RnRARNtAtEtKtNtWtTtXtYtDte((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRUsN  ?          cCsLddl}|j|j|j}}}|j}|j|||dS(sInternal function.iN(tsystexc_typet exc_valuet exc_tracebackRItreport_callback_exception(RRRtexctvalttbtroot((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt_report_exceptions  cGsji}x]|jj|jj|D]=}|jj|}|ddf|d||ddscCstddS(Ns)Tkinter objects don't support 'in' tests.(R (RRR4((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt __contains__@scCsI|jj}g||jj|jdD]}||dd^q+S(s3Return a list of all resource names of this widget.Rii(R.R*RPR(RRR*RA((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytkeysBs cCs|jS(s+Return the window path name of this widget.(R(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRZGst_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(RRReR.RPR(RRtflag((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytpack_propagateLscCs1t|j|jj|jjdd|jS(sHReturn a list of all slaves of this widget in its packing order.Rtslaves(RRR.R*RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt pack_slavesYs  cCs1t|j|jj|jjdd|jS(sHReturn a list of all slaves of this widget in its packing order.tplaceR(RRR.R*RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt place_slavesas   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(RRRR.RP(RRtcolumntrowtcol2trow2R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt grid_bboxis cCsmt|ttjfriy:t|}|s1dSd|krGt|St|SWqitk reqiXn|S(NRm(R Rt_tkintertTcl_ObjRR{RyR@(RRRtsvalue((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt_gridconvvalue~s    cCst|tkr_| r_|ddkr6|d }n|d dkrSd|}n|f}n|j||}|st|j|jjd||j|d|jS|jjd||j|f|}t|dkr|j|SdS(sInternal function.iRiiR)RR0N( RRRR5R.RPRRR (RRRtindexR#RtoptionsR((s&/usr/lib64/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(RRRR#R((s&/usr/lib64/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.RPRR(RRRARN((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt grid_locations 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(RRReR.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytgrid_propagatescKs|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(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytgrid_rowconfigurescCs(|j|jjdd|jp'dS(s<Return a tuple of the number of column and rows in the grid.RtsizeN(RR.RPRR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt grid_sizescCs|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(RRRR.R*RPR(RRRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt grid_slavess   cGs'dd|f|}|jj|dS(sBind a virtual event VIRTUAL (of the form <>) to an event SEQUENCE such that the virtual event is triggered whenever SEQUENCE occurs.teventRN(R.RP(RRtvirtualt sequencesR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt event_addscGs'dd|f|}|jj|dS(s-Unbind a virtual event VIRTUAL from SEQUENCE.RtdeleteN(R.RP(RRRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt event_deletescKs`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(RR!RR.RP(RRRXRRR&R'((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytevent_generatescCs"|jj|jjdd|S(suReturn a list of all virtual events or the information about the SEQUENCE bound to the virtual event VIRTUAL.RRG(R.R*RP(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt event_infos cCs|jj|jjddS(s*Return a list of all existing image names.timagetnames(R.R*RP(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt image_namesscCs|jj|jjddS(s?Return a list of all available image types (e.g. photo bitmap).Rttypes(R.R*RP(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt image_typessN(s%#s%bs%fs%hs%ks%ss%ts%ws%xs%ys%As%Es%Ks%Ns%Ws%Ts%Xs%Ys%D(R7R8R9RRWRRXRRRRRtwaitvarRRRRR?RytfloatR{RORRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRtliftRRRRRRRRRRRRRRRRRRR R R RRRRRRRRR!R#R%R'R)R+R-R/R1R3R5R7R9R>R=R?RDRFRHRJRLRMRORRQRRR[R\R]R_R`RaRbR~RcRRdReRtpropertyRRRoRRtregisterRIRrRRVRURRRRRtconfigRt __getitem__RRRRZRRRRRRRRRRRRRRRRRRRRRRRRR(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRsP                                                                                        (             9                       R`cBs 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(RRpR|(RRRRpR|((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRUs  cGsby,|jr|j|}n|j|SWn/tk rJ}t|n|jjnXdS(s3Apply first function SUBST to arguments, than FUNC.N(RpRRAR|R(RRRR%((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRas  (R7R8R9RURa(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR`s 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.RPRRd(RRRR((s&/usr/lib64/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.RPR(RRtfraction((s&/usr/lib64/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.RPR(RRRRW((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt xview_scroll!s(R7R8R9RRR(((s&/usr/lib64/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.RPRRd(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR+scCs |jj|jdd|dS(ssAdjusts the view in the window so that FRACTION of the total height of the canvas is off-screen to the top.RRN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt yview_moveto1scCs#|jj|jdd||dS(s\Shift the y-view according to NUMBER which is measured in "units" or "pages" (WHAT).RRN(R.RPR(RRRRW((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt yview_scroll6s(R7R8R9RRR(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR's  tWmcBseZdZdddddZeZdZeZddZeZ dZ e Z ddZ e Z dZeZddZeZdZeZdd ZeZddddd ZeZdd ZeZddd 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.RPR(RRtminNumertminDenomtmaxNumertmaxDenom((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_aspect?scGs&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(RR.RP(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_attributesKscCs|jjdd|j|S(sVStore NAME in WM_CLIENT_MACHINE property of this widget. Return current value.Rtclient(R.RPR(RRRT((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_clientascGsyt|dkr|f}ndd|jf|}|rM|jj|n(t|j|jj|jj|SdS(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.iRtcolormapwindowsN(R RR.RPRRR*(RRtwlistR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytwm_colormapwindowsfs  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.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_commandrscCs|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.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_deiconifyxscCs|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.RPR(RRtmodel((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_focusmodel}scCs|jjdd|jS(sAReturn identifier for decorative frame of this widget if present.Rtframe(R.RPR(RR((s&/usr/lib64/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.RPR(RRt newGeometry((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_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.RPR(RRt baseWidtht baseHeighttwidthInct heightInc((s&/usr/lib64/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.RPR(RRtpathName((s&/usr/lib64/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.RPR(RRtbitmaptdefault((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_iconbitmaps cCs|jjdd|jS(sDisplay widget as icon.Rticonify(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_iconifyscCs|jjdd|j|S(sVSet mask for the icon bitmap of this widget. Return the mask if None is given.Rticonmask(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_iconmaskscCs|jjdd|j|S(sSSet the name of the icon for this widget. Return the name if None is given.Rticonname(R.RPR(RRtnewName((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_iconnamescCs(|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.RPR(RRRARN((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytwm_iconpositionscCs|jjdd|j|S(sgSet widget PATHNAME to be displayed instead of icon. Return the current value if None is given.Rt iconwindow(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_iconwindowscCs(|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.RPR(RRRKR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_maxsizescCs(|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.RPR(RRRKR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_minsizescCs%|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(ReR.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytwm_overrideredirectscCs|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.RPR(RRtwho((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytwm_positionfromscCsFt|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".RaRtprotocol(RjRR.RPR(RRRTRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_protocols  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.RPR(RRRKR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_resizablescCs|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.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_sizefromscCs|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).RRv(R.RPR(RRtnewstate((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytwm_statescCs|jjdd|j|S(sSet the title of this widget.Rttitle(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytwm_titlescCs|jjdd|j|S(s_Instruct the window manager that this widget is transient with regard to widget MASTER.Rt transient(R.RPR(RRRS((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_transientscCs|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.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt wm_withdrawsN(<R7R8R9RRRRRRRRRRRRRRRRRRRRRRRRRRRRRR R R R RRRRRRRRRRRRRRRRR RvR"R!R$R#R&R%(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR<sv                      tTkcBseeZdZdZd d dddd dZdZdZdZd Z d Z d Z RS( szToplevel widget of Tk which represents mostly the main window of an application. It has an associated Tcl interpreter.RmR'iic Csd|_i|_d|_d|_|dkrddl}|jjtj d}|jj |\}}|dkr||}qnd} t j |||| t ||||_|r|jntjjs|j||ndS(s@Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will be created. BASENAME will be used for the identification of the profile file (see readprofile). It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME is the name of the widget class.iiNs.pys.pycs.pyo(s.pys.pycs.pyo(RRSRt _tkloadedR.tostpathtbasenameRtargvtsplitextRtcreatet wantobjectst_loadtktflagstignore_environmentt readprofile( RRt screenNametbaseNameRtuseTktsynctuseR)textt interactive((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU s        '  cCs'|js#|jj|jndS(N(R(R.tloadtkR0(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR;'s  cCs3d|_|jjd}|tjkrCtdtj|fnt|jjd}|tjkrtdtj|fntdkrtdttn|j dkrg|_ n|jj dt |jj d t |j jd|j jd trt r|an|jd |jdS( Nit tk_versions4tk.h version (%s) doesn't match libtk.a version (%s)t tcl_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.RRt TK_VERSIONR+Rt TCL_VERSIONt TkVersionRWRRdR>RCReR:R;RR(RRR<R=((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR0+s0     cCsfx!|jjD]}|jqW|jjd|jtj|trbt|krbdandS(shDestroy this and all descendants widgets. This will end the application of this Tcl interpreter.RN( RtvaluesRR.RPRRR:R;R(RRR$((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRJs  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.pyRRsfrom Tkinter import *tsource( R)tenvirontcurdirR*RtisfileR.RPtexecfile( RRR5RR)thomet class_tcltclass_pytbase_tcltbase_pytdir((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR3Ss$   cCsWddl}ddl}|jdIJ||_||_||_|j|||dS(sReport callback exception on sys.stderr. Applications may want to override this internal function, and should when sys.stderr is None.iNsException in Tkinter callback(t tracebackRtstderrt last_typet last_valuetlast_tracebacktprint_exception(RRRRRRQR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRhs     cCst|j|S(s3Delegate attribute access to the interpreter object(tgetattrR.(RRtattr((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt __getattr__ssN( R7R8R9RRRUR;R0RR3RRY(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR' s     cCst||||S(N(R'(R4R5RR6((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytTclstPackcBs`eZdZidZeZZZdZeZdZ e Z e j Z Z e jZZRS(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. RRN(R.RPRR(RRR#R((s&/usr/lib64/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.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt pack_forgetscCsQt|j|jjdd|j}d|krM|j|d|deZdZdZiiddZdZddZRS(sInternal class.cCs tr*|s*tstant}q*n||_|j|_d}d|kre|d}|d=n|stt|}n||_|j dkrd||_ n|j d||_ i|_ |j|jj kr|jj |jj n||jj |jd9Z?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(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRUs cGs!|jj|jdf|dS(sInternal function.taddtagN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRscCs|j|d|dS(s*Add tag NEWTAG to all items above TAGORID.taboveN(R(RRtnewtagttagOrId((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt addtag_abovescCs|j|ddS(sAdd tag NEWTAG to all items.R^N(R(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt addtag_allscCs|j|d|dS(s*Add tag NEWTAG to all items below TAGORID.tbelowN(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt addtag_belowscCs |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(R(RRRRARNthalotstart((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytaddtag_closestscCs |j|d||||dS(sLAdd tag NEWTAG to all items in the rectangle defined by X1,Y1,X2,Y2.tenclosedN(R(RRRtx1ty1tx2ty2((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytaddtag_enclosedscCs |j|d||||dS(sWAdd tag NEWTAG to all items which overlap the rectangle defined by X1,Y1,X2,Y2.t overlappingN(R(RRRRRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytaddtag_overlappingscCs|j|d|dS(s)Add tag NEWTAG to all items with TAGORID.twithtagN(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytaddtag_withtagscGs,|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.RPRR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRscCs9|jj|jd||d|r5|j|ndS(sbUnbind for all items with TAGORID for event SEQUENCE the function identified with FUNCID.R\REN(R.RPRRX(RRRRXRZ((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt tag_unbindscCs"|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.R\(R[R(RRRRXRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyttag_bindscCs"t|jj|jd||S(srReturn the canvas x coordinate of pixel position SCREENX rounded to nearest multiple of GRIDSPACING units.tcanvasx(R{R.RPR(RRtscreenxt gridspacing((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRs cCs"t|jj|jd||S(srReturn the canvas y coordinate of pixel position SCREENY rounded to nearest multiple of GRIDSPACING units.tcanvasy(R{R.RPR(RRtscreenyR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRs cGs2tt|jj|jj|jdf|S(s8Return a list of coordinates for the item given in ARGS.tcoords(RR{R.R*RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRs c Csst|}|d}t|ttfkr;|d }ni}t|jj|jd|||j||S(sInternal function.iR.( RRRRRyR.RPRR(RRtitemTypeRRR#((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt_create s     cOs|jd||S(s6Create arc shaped region with coordinates x1,y1,x2,y2.tarc(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt create_arc scOs|jd||S(s%Create bitmap with coordinates x1,y1.R(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt create_bitmap scOs|jd||S(s)Create image item with coordinates x1,y1.R(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt create_image scOs|jd||S(s-Create line with coordinates x1,y1,...,xn,yn.tline(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt create_line scOs|jd||S(s)Create oval with coordinates x1,y1,x2,y2.toval(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt create_oval scOs|jd||S(s0Create polygon with coordinates x1,y1,...,xn,yn.tpolygon(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytcreate_polygon scOs|jd||S(s.Create rectangle with coordinates x1,y1,x2,y2.t rectangle(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytcreate_rectangle scOs|jd||S(s#Create text with coordinates x1,y1.ttext(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt create_text" scOs|jd||S(s+Create window with coordinates x1,y1,x2,y2.R(R(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt create_window% scGs!|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.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR( scGs!|jj|jdf|dS(s<Delete items identified by all tag or ids contained in ARGS.RN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR, scGs!|jj|jdf|dS(siDelete tag or id given as last arguments in ARGS from items identified by first argument in ARGS.tdtagN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR/ scGs,|j|jj|jdf|p+dS(sInternal function.tfind((RR.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR3 scCs|jd|S(sReturn items above TAGORID.R(R(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt find_above7 scCs |jdS(sReturn all items.R^(R(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytfind_all: scCs|jd|S(sReturn all items below TAGORID.R(R(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt find_below= scCs|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 closest). If START is specified the next below this tag is taken.R(R(RRRARNRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt find_closest@ scCs|jd||||S(s=Return all items in rectangle defined by X1,Y1,X2,Y2.R(R(RRRRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt find_enclosedF scCs|jd||||S(sLReturn all items which overlap the rectangle defined by X1,Y1,X2,Y2.R(R(RRRRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytfind_overlappingJ scCs|jd|S(sReturn all items with TAGORID.R(R(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt find_withtagN scGs|jj|jdf|S(s.Set focus to the first item specified in ARGS.R(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRQ scGs)|jj|jj|jdf|S(s=Return tags associated with the first item specified in ARGS.tgettags(R.R*RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRT s cGs!|jj|jdf|dS(sdSet cursor at position POS in the item identified by TAGORID. In ARGS TAGORID must be first.ticursorN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRX scGs#t|jj|jdf|S(s?Return position of cursor as integer in item specified in ARGS.R(RyR.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR\ scGs!|jj|jdf|dS(sSInsert TEXT in item TAGORID at position POS. ARGS must be TAGORID POS TEXT.RN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR_ scCs'|jj|jdf|d|fS(s9Return the resource value for an OPTION for item TAGORID.titemcgetR)(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRc s 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(R(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRg scGs!|jj|jdf|dS(sJLower an item TAGORID given in ARGS (optional below another item).RN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt tag_lowert scGs!|jj|jdf|dS(s#Move an item TAGORID given in ARGS.tmoveN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRy scKs)|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, width, x, y.t postscript(R.RPRR(RRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR| scGs!|jj|jdf|dS(sJRaise an item TAGORID given in ARGS (optional above another item).RN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt tag_raise scGs!|jj|jdf|dS(s9Scale item TAGORID with XORIGIN, YORIGIN, XSCALE, YSCALE.tscaleN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs#|jj|jdd||dS(s&Remember the current X, Y coordinates.tscantmarkN(R.RPR(RRRARN((s&/usr/lib64/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.RPR(RRRARNtgain((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt scan_dragto scCs#|jj|jdd||dS(sLAdjust the end of the selection near the cursor of an item TAGORID to index.tselecttadjustN(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt select_adjust scCs|jj|jdddS(s,Clear the selection if it is in this widget.RRN(R.RPR(RR((s&/usr/lib64/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.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt select_from scCs|jj|jddpdS(s(Return the item which has the selection.RRN(R.RPRR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt select_item scCs#|jj|jdd||dS(s=Set the variable end of a selection in item TAGORID to INDEX.RttoN(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt select_to scCs|jj|jd|pdS(s$Return the type of the item TAGORID.RN(R.RPRR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR sN(@R7R8R9RRURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRt itemconfigRRRRRRRRRRRRRRRR(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRsx                                                   t CheckbuttoncBsJeZdZdidZdZdZdZdZdZ 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.t checkbuttonN(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU s cCs|jj|jddS(sPut the button in off-state.tdeselectN(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jj|jddS(sFlash the button.RN(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jj|jdS(s<Toggle the button and invoke a command if given as resource.R(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jj|jddS(sPut the button in on-state.RN(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jj|jddS(sToggle the button.ttoggleN(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR sN( R7R8R9RRURRRRR(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR s    tEntrycBseZdZdidZddZdZdZdZdZ dZ dZ d Z e Z d ZeZd ZeZd ZeZd ZeZdZeZRS(s1Entry widget which allows displaying 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(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU s cCs |jj|jd||dS(s.Delete text from FIRST to LAST (not included).RN(R.RPR(RRtfirsttlast((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jj|jdS(sReturn the text.R](R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR] scCs|jj|jd|dS(sInsert cursor at INDEX.RN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCst|jj|jd|S(sReturn position of cursor.R(RyR.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR s cCs |jj|jd||dS(sInsert STRING at INDEX.RN(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs |jj|jdd|dS(s&Remember the current X, Y coordinates.RRN(R.RPR(RRRA((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR 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.RPR(RRRA((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs |jj|jdd|dS(s9Adjust the end of the selection near the cursor to INDEX.RRN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytselection_adjust scCs|jj|jdddS(s,Clear the selection if it is in this widget.RRN(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs |jj|jdd|dS(s*Set the fixed end of a selection to INDEX.RRN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytselection_from scCs%|jj|jj|jddS(sSReturn True if there are characters selected in the entry, False otherwise.Rtpresent(R.RORPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytselection_present s cCs#|jj|jdd||dS(s3Set the selection from START to END (not included).RtrangeN(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytselection_range scCs |jj|jdd|dS(s-Set the variable end of a selection to INDEX.RRN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt selection_to sN(R7R8R9RRURR]RRRRRRRRRRRRtselect_presentRt select_rangeRR(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR 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.Rts-classRRN((R(RrRU(RRRSR#RRo((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU s    N(R7R8R9RRU(((s&/usr/lib64/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(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU sN(R7R8R9RRU(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR stListboxcBseZdZdidZdZdZdZddZddZ dZ dZ d Z d Z d Zd 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(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU. scCs|jj|jd|dS(s"Activate item identified by INDEX.tactivateN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR7 scCs(|j|jj|jd|p'dS(sxReturn a tuple of X1,Y1,X2,Y2 coordinates for a rectangle which encloses the item identified by the given index.RN(RR.RPRR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR: scCs%|j|jj|jdp$dS(s.Return the indices of currently selected item.t curselection((RR.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR> scCs |jj|jd||dS(s+Delete items from FIRST to LAST (included).RN(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRA scCsQ|dk r4|jj|jj|jd||S|jj|jd|SdS(s0Get list of items from FIRST to LAST (included).R]N(RR.R*RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR]D s cCs5|jj|jd|}|dkr+dSt|S(s+Return index of item identified with INDEX.RRN(R.RPRRRy(RRRti((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRK s cGs$|jj|jd|f|dS(sInsert ELEMENTS at INDEX.RN(R.RPR(RRRtelements((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRP scCst|jj|jd|S(s5Get index of item which is nearest to y coordinate Y.tnearest(RyR.RPR(RRRN((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRS s cCs#|jj|jdd||dS(s&Remember the current X, Y coordinates.RRN(R.RPR(RRRARN((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRW 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.RPR(RRRARN((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRZ scCs|jj|jd|dS(s"Scroll such that INDEX is visible.tseeN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR_ scCs |jj|jdd|dS(s-Set the fixed end oft the selection to INDEX.RtanchorN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytselection_anchorb scCs#|jj|jdd||dS(s2Clear the selection from FIRST to LAST (included).RRN(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRf scCs(|jj|jj|jdd|S(s+Return 1 if INDEX is part of the selection.Rtincludes(R.RORPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytselection_includesk scCs#|jj|jdd||dS(siSet the selection from FIRST to LAST (included) without changing the currently selected elements.RRNN(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt selection_setp scCst|jj|jdS(s-Return the number of elements in the listbox.R(RyR.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRu scCs'|jj|jdf|d|fS(s4Return the resource value for an ITEM and an OPTION.RR)(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRx s cKs|jd|f||S(s9Configure resources of an ITEM. The values for resources are specified as keyword arguments. To get an overview about the allowed keyword arguments call the method without arguments. Valid resource names: background, bg, foreground, fg, selectbackground, selectforeground.R(R(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR| sN(R7R8R9RRURRRRR]RRRRRRRt select_anchorRRRtselect_includesRt select_setRRRR(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR, s2                  tMenucBseZdZd%idZdZdZdZdZdZ dZ dZ d Z d Z d Zd Zd dZdZidZidZidZidZidZidZidZidZidZidZidZidZd%dZdZd%dZ e Z!dZ"d Z#d!Z$d"Z%d#Z&d$Z'RS(&sPMenu widget which allows displaying 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(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU scCs&ddl}|jdtdddS(Nis=tk_bindForTraversal() does nothing and will be removed in 3.6Ri(RRR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyttk_bindForTraversal s  cCs|jjd|jdS(Nt tk_mbPost(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jjddS(Nt tk_mbUnpost(R.RP(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jjd|j|dS(Nttk_traverseToMenu(R.RPR(RRRx((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jjd|j|dS(Nttk_traverseWithinMenu(R.RPR(RRRx((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jjd|jS(Nttk_getMenuButtons(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR  scCs|jjd|dS(Nt tk_nextMenu(R.RP(RRtcount((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR  scCs|jjd|dS(Nttk_nextMenuEntry(R.RP(RRR ((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR  scCs|jjd|jdS(Nt tk_invokeMenu(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR  scCs|jjd|jdS(Nt tk_firstMenu(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jjd|jdS(Nttk_mbButtonDown(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR sREcCs#|jjd|j|||dS(s/Post the menu at position X,Y with entry ENTRY.ttk_popupN(R.RPR(RRRARNR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jj|jd|dS(sActivate entry at INDEX.RN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scKs0|jj|jd|f|j||dS(sInternal function.RN(R.RPRR(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scKs|jd|p|dS(sAdd hierarchical menu item.tcascadeN(R(RRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt add_cascade scKs|jd|p|dS(sAdd checkbutton menu item.RN(R(RRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytadd_checkbutton scKs|jd|p|dS(sAdd command menu item.RN(R(RRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt add_command scKs|jd|p|dS(sAddd radio menu item.t radiobuttonN(R(RRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytadd_radiobutton scKs|jd|p|dS(sAdd separator.t separatorN(R(RRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt add_separator scKs3|jj|jd||f|j||dS(sInternal function.RN(R.RPRR(RRRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scKs|j|d|p|dS(s$Add hierarchical menu item at INDEX.RN(R(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytinsert_cascade scKs|j|d|p|dS(s#Add checkbutton menu item at INDEX.RN(R(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytinsert_checkbutton scKs|j|d|p|dS(sAdd command menu item at INDEX.RN(R(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytinsert_command scKs|j|d|p|dS(sAddd radio menu item at INDEX.RN(R(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytinsert_radiobutton scKs|j|d|p|dS(sAdd separator at INDEX.RN(R(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytinsert_separator 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( RRRt entryconfigRt entrycgetRXR.RPR(RRtindex1tindex2t num_index1t num_index2RR$((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR s  cCs |jj|jd|d|S(s=Return the resource value of a menu item for OPTION at INDEX.RR)(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scKs|jd|f||S(sConfigure a menu item at INDEX.tentryconfigure(R(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR$ scCs5|jj|jd|}|dkr+dSt|S(s4Return the index of a menu item identified by INDEX.RRN(R.RPRRRy(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR s cCs|jj|jd|S(sRInvoke a menu item identified by INDEX and execute the associated command.R(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs |jj|jd||dS(sDisplay a menu at position X,Y.tpostN(R.RPR(RRRARN((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR% scCs|jj|jd|S(s*Return the type of the menu item at INDEX.R(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jj|jddS(s Unmap a menu.tunpostN(R.RPR(RR((s&/usr/lib64/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(RyR.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR' s N((R7R8R9RRURRRRRR R R R RRRRRRRRRRRRRRRRRRR$RRRR%RR&R'(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR sJ                                 t MenubuttoncBseZdZdidZRS(s(Menubutton widget, obsolete since Tk8.0.cKstj||d||dS(Nt menubutton(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU sN(R7R8R9RRU(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR( stMessagecBseZdZdidZRS(sKMessage widget to display multiline text. Obsolete since Label does it too.cKstj||d||dS(Ntmessage(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU sN(R7R8R9RRU(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR* st RadiobuttoncBsAeZdZdidZdZdZdZdZRS(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(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU s cCs|jj|jddS(sPut the button in off-state.RN(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jj|jddS(sFlash the button.RN(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jj|jdS(s<Toggle the button and invoke a command if given as resource.R(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR" scCs|jj|jddS(sPut the button in on-state.RN(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR% sN( R7R8R9RRURRRR(((s&/usr/lib64/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(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU+ s cCsE|jj|jd}yt|SWntk r@t|SXdS(s*Get the current value as integer or float.R]N(R.RPRRyR@R{(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR]5 s  cCs|jj|jd|dS(sSet the value to VALUE.RNN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRN< 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.RPR(RRR((s&/usr/lib64/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.RPR(RRRARN((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR.E sN( R7R8R9RRUR]RNRR.(((s&/usr/lib64/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(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRUL s cCs|jj|jd|dS(sxDisplay the element at INDEX with activebackground and activerelief. INDEX can be "arrow1","slider" or "arrow2".RN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRV scCs"t|jj|jd||S(snReturn the fractional change of the scrollbar setting if it would be moved by DELTAX or DELTAY pixels.R(R{R.RPR(RRtdeltaxtdeltay((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRZ scCs"t|jj|jd||S(sRReturn the fractional value which corresponds to a slider position of X,Y.R(R{R.RPR(RRRARN((s&/usr/lib64/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.RPR(RRRARN((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR.c scCs|j|jj|jdS(sZReturn the current fractional values (upper and lower end) of the slider position.R](RdR.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR]g scGs!|jj|jdf|dS(siSet the fractional values of the slider position (upper and lower ends as value between 0 and 1).RNN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRNk sN( R7R8R9RRURRRR.R]RN(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR/J s     tTextc BsHeZdZd5idZdZdZdZdZdZ dZ d5dZ d5d Z d Z d5d5d Zd 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(RrRU(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRUt 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.RPRR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs|jjd|j|dS(Nttk_textSelectTo(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR4 scCs|jjd|jdS(Nttk_textBackspace(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR5 scCs#|jjd|j|||dS(Nttk_textIndexCloser(R.RPR(RRRRR$((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR6 scCs|jjd|j|dS(Nttk_textResetAnchor(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR7 scCs+|jj|jj|jd|||S(sReturn whether between index INDEX1 and index INDEX2 the relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=.tcompare(R.RORPR(RRR topR!((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR8 scCsK|dkr.|jj|jj|jdS|jj|jd|dS(sjTurn on the internal consistency checks of the B-Tree inside the text widget according to BOOLEAN.tdebugN(RR.RORPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR: s "cCs |jj|jd||dS(s?Delete the characters between INDEX1 and INDEX2 (not included).RN(R.RPR(RRR R!((s&/usr/lib64/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.RPR(RRR((s&/usr/lib64/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(Re(R4RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt append_triple ss-commandR)tdumpN( RR RRReR.RPRRX( RRR R!RRRt func_nameRR<R4((s&/usr/lib64/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.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR? s cCs|jd|S(s;Get or Set the modified flag If arg is not specified, returns the modified flag of the widget. The insert, delete, edit undo and edit redo commands or the user can set or clear the modified flag. If boolean is specified, sets the modified flag of the widget to arg. tmodified(R?(RRtarg((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt edit_modified s 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?(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt edit_redo scCs |jdS(s(Clears the undo and redo stacks treset(R?(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt edit_reset scCs |jdS(snInserts a separator (boundary) on the undo stack. Does nothing when the undo option is false R(R?(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytedit_separator scCs |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?(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt edit_undo s cCs|jj|jd||S(s5Return the text from INDEX1 to INDEX2 (not included).R](R.RPR(RRR R!((s&/usr/lib64/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.iR)iRiRR(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt image_cget s   cKs|jdd|f||S(s%Configure an embedded image at INDEX.RR(R(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytimage_configure scKs+|jj|jdd||j||S(s"Create an embedded image at INDEX.RR.(R.RPRR(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt image_create s cCs|jj|jddS(s3Return all names of embedded images in this widget.RR(R.RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR" scCst|jj|jd|S(s1Return the index in the form line.char for INDEX.R(RR.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR% scGs'|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.RN(R.RPR(RRRtcharsR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR( scCs"|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.RPR(RRtmarkNamet direction((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt mark_gravity, s cCs%|jj|jj|jddS(sReturn all mark names.RR(R.R*RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt mark_names1 scCs#|jj|jdd||dS(s0Set mark MARKNAME before the character at INDEX.RRNN(R.RPR(RRROR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytmark_set5 scGs$|jj|jddf|dS(sDelete all marks in MARKNAMES.RtunsetN(R.RPR(RRt markNames((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt mark_unset8 scCs"|jj|jdd|p!dS(s-Return the name of the next mark after INDEX.RtnextN(R.RPRR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt mark_next; scCs"|jj|jdd|p!dS(s2Return the name of the previous mark before INDEX.RtpreviousN(R.RPRR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt mark_previous> scCs#|jj|jdd||dS(s&Remember the current X, Y coordinates.RRN(R.RPR(RRRARN((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRA scCs#|jj|jdd||dS(s~Adjust the view of the text to 10 times the difference between X and Y and the coordinates given in scan_mark.RRN(R.RPR(RRRARN((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRD sc Cs(|jdg} |r%| jdn|r;| jdn|rQ| jdn|rg| jdn|r}| jdn| r| jdn| r| jd| j| n|r|d d kr| jd n| 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.Rs -forwardss -backwardss-exacts-regexps-nocases-elides-countiR)s--(RReRR.RPR ( RRRRt stopindextforwardst backwardstexacttregexptnocaseR telideR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRI s.   cCs|jj|jd|dS(s3Scroll such that the character at INDEX is visible.RN(R.RPR(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR\ scGs*|jj|jdd||f|dS(s|Add tag TAGNAME to all characters between INDEX1 and index2 in ARGS. Additional pairs of indices may follow in ARGS.ttagRN(R.RPR(RRttagNameR R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyttag_add_ s cCs<|jj|jdd||d|r8|j|ndS(sgUnbind for all characters with TAGNAME for event SEQUENCE the function identified with FUNCID.RbR\REN(R.RPRRX(RRRcRXRZ((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRd s"cCs%|j|jdd|f|||S(s+Bind to all characters with TAGNAME at event SEQUENCE a call to function FUNC. An additional boolean parameter ADD specifies whether FUNC will be called additionally to the other bound function or whether it will replace the previous function. See bind for the return value.RbR\(R[R(RRRcRXRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRj scCsY|d dkrd|}n|ddkr:|d }n|jj|jdd||S(s+Return the value of OPTION for tag TAGNAME.iR)iRiRbR(R.RPR(RRRcR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyttag_cgetr s   cKs|jdd|f||S(sConfigure a tag TAGNAME.RbR(R(RRRcR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt tag_configurey scGs$|jj|jddf|dS(sDelete all tags in TAGNAMES.RbRN(R.RPR(RRttagNames((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt tag_delete} scCs#|jj|jdd||dS(s`Change the priority of tag TAGNAME such that it is lower than the priority of BELOWTHIS.RbRN(R.RPR(RRRcR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR scCs(|jj|jj|jdd|S(sReturn a list of all tag names.RbR(R.R*RPR(RRR((s&/usr/lib64/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.R*RPR(RRRcR R!((s&/usr/lib64/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.R*RPR(RRRcR R!((s&/usr/lib64/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.RPR(RRRcR((s&/usr/lib64/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.R*RPR(RRRc((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt tag_ranges scCs&|jj|jdd|||dS(sARemove tag TAGNAME from all characters between INDEX1 and INDEX2.RbRmN(R.RPR(RRRcR R!((s&/usr/lib64/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.iR)iRiRR(R.RPR(RRRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt window_cget s   cKs|jdd|f||S(s&Configure an embedded window at INDEX.RR(R(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytwindow_configure scKs3|jj|jdd|f|j||dS(sCreate a window at INDEX.RR.N(R.RPRR(RRRR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt window_create s cCs%|jj|jj|jddS(s4Return all names of embedded windows in this widget.RR(R.R*RPR(RR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt window_names s cGs$|jj|jddf|dS(sObsolete function, use see.Rs -pickplaceN(R.RPR(RRRW((s&/usr/lib64/python2.7/lib-tk/Tkinter.pytyview_pickplace sN(:R7R8R9RRURR4R5R6R7R8R:RR;R=R?RBRDRFRGRIR]RJRKRLRRRRQRRRSRVRXRZRRRRRdRRReRft tag_configRhRRiRkRmRRoRpRqRrt window_configRsRtRu(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyR3r 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(RRtvarRRg((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRU s  cGs6|jj|j|jr2|j|j|ndS(N(RzRNRyR{(RRR((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRa s N(R7R8R9RRURa(((s&/usr/lib64/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|j d|dt |||x0|D](} |j d| dt || |qW||d s s<1>s(RrRUR\RzR|R}R~(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRUs N(R7R8RRU(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRst TributtoncBseZdidZRS(cKstj||d|||jd|j|jd|j|jd|j|jd|j|d|d<|d|ds s<1>stbgtfgtactivebackground(RrRUR\RzR|R}R~(RRRSR#R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRUsN(R7R8RRU(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyRscCst}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(R((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt s tQUIT( R't TclVersionRt NameErrorRRRxRRRRRR~(RRRRRc((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyt_tests(            t__main__(`R9t __version__RtplatformtFixTkRttkinterRRt TkconstantstreR/RRARCRBRtREADABLEtWRITABLEt EXCEPTIONtcreatefilehandlerRRtdeletefilehandlertcompileR RRRRR(tTrueR5R6R:R;R<R>RCRMRDRuRwRzR|R~R?RyR{RORR`RRRR'RZR[RbRfRkRrRsRxRRRRRRRRRRRRR(R*R,R-R/R3RxR}RRRRRRRRRRRR7(((s&/usr/lib64/python2.7/lib-tk/Tkinter.pyts                     ,  k  Q}',/8>     A[}!(I %@@