uQc@sdZdZddlZejdkr6ddlZnddlZeZejZddlTddl Tddl Z dZ e ej Ze ejZejZejZejZy ejWnek ree_nXy ejWnek ree_nXe jdZe jdZd Zd Zd Zy ejZWnek rYnXd Zy ejZWnek rnXd fdYZda ea!dZ"dZ#ddZ$da%dfdYZ&de&fdYZ'de&fdYZ(de&fdYZ)de&fdYZ*ddZ+e,Z-e Z.dZ/dfd YZ0d!fd"YZ1d#fd$YZ2d%fd&YZ3d'fd(YZ4d)e0e4fd*YZ5eed)dd+Z6d,fd-YZ7d.fd/YZ8d0fd1YZ9d2e0fd3YZ:d4e:e7e8e9fd5YZ;d6e:e4fd7YZ<d8e;fd9YZ=d:Z>d;Z?d<Z@d=ZAed>ZBd?e;e2e3fd@YZCdAe;fdBYZDdCe;e2fdDYZEdEe;fdFYZFdGe;fdHYZGdIe;e2e3fdJYZHdKe;fdLYZIdMe;fdNYZJdOe;fdPYZKdQe;fdRYZLdSe;fdTYZMdUe;fdVYZNdWe;e2e3fdXYZOdYfdZYZPd[eJfd\YZQd]fd^YZRd_eRfd`YZSdaeRfdbYZTdcZUddZVdee;e2fdfYZWdge;fdhYZXdie;fdjYZYdke=fdlYZZdme=fdnYZ[doZ\e]dpkre\ndS(qs2Wrapper 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$/sys/lib/python2.7/lib-tk/Tkinter.pyt_joinAscCs t|ttfrjt|dkrWt|d}|ddkrgd|}qgqdt|}nt|trt|}n t|}|sd}nbt j |rt j d|}t j d|}n,|ddkst j |rd|}n|S(sInternal function.iit{s{%s}s{}s\\\1t"( t isinstancetlistttupletlenRRt basestringtunicodetstrt _magic_retsearchtsubt _space_re(R((s$/sys/lib/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$/sys/lib/python2.7/lib-tk/Tkinter.pyR]s  cCst|tkr|St|ttfkr2|Si}xqt|D]c}y|j|WqEttfk r}dG|GHx(|jD]\}}|||tmainloop(tn((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRjgscCstjj|S(s1Convert true and false to integer values 1 and 0.(R/R>Rh(ts((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRhostMisccBs)eZdZdZdZdZddZdZdZ 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~dwZeZddgdxZeZdyZdZdjeZdZdZdZddZeZdZeZdZdZdZdZdgZedZeZdZeZdZdddddZeZdZidZeZdZedZidZeZdZeZdddZdZdZdZddZdZdZRS(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>RX(RFRH((s$/sys/lib/python2.7/lib-tk/Tkinter.pytdestroy{scCs<|jj|y|jj|Wntk r7nXdS(sDInternal function. Delete the Tcl command provided in NAME.N(R>RXRntremoveR4(RFRH((s$/sys/lib/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.RCttk_strictMotif(R>RhRD(RFtboolean((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRqscCs|jjddS(sDChange the color scheme to light brown as used in Tk 3.6 and before.t tk_bisqueN(R>RD(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRsscOs.|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(s tk_setPalette(R>RDRR"(RFtargstkw((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRts cGsdS(s)Do not use. Needed in Tk 3.6 and earlier.N((RFRu((s$/sys/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.ttkwaitRQN(R>RD(RFRH((s$/sys/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.RxtwindowN(RR>RDt_w(RFRz((s$/sys/lib/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.Rxt visibilityN(RR>RDR{(RFRz((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwait_visibilitys  t1cCs|jj||dS(sSet Tcl variable NAME to VALUE.N(R>tsetvar(RFRHR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs|jj|S(s"Return value of Tcl variable NAME.(R>tgetvar(RFRH((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs|jj|S(sPReturn a boolean value for Tcl boolean values true and false given as parameter.(R>Rh(RFRl((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRhscCs|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>RDR{(RF((s$/sys/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!Rs-forceN(R>RDR{(RF((s$/sys/lib/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>RDRt _nametowidget(RFRH((s$/sys/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.Rs -displayofRN(R>RDR{RR(RFRH((s$/sys/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.Rs-lastforRN(R>RDR{RR(RFRH((s$/sys/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>RD(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs/|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>RDR{RR(RFRH((s$/sys/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>RDR{RR(RFRH((s$/sys/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(RXtTclError((RutfuncRHRF(s$/sys/lib/python2.7/lib-tk/Tkinter.pytcallits  N(R>RDRR(RFtmsRRuR((RuRRHRFs$/sys/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(RFRRu((s$/sys/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>RDR\RXR(RFtidtdatatscript((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt after_cancel"s icCs!|jjd|j|dS(sRing a display's bell.tbellN(sbell(R>RDt _displayof(RFt displayof((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR0scKsd|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 clipboardRO(Rsget(Rsget(t_windowingsystemR>RDt_optionsR(RFRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt clipboard_get5s ! cKs=d|kr|j|dRDR(RFRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytclipboard_clearLs cKsGd|kr|j|dRDR(RFtstringRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytclipboard_appendSs  cCs2|jjdd|j}|s%dS|j|S(sOReturn widget which has currently the grab in this application or None.tgrabtcurrentN(R>RDR{RR(RFRH((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt grab_current]scCs|jjdd|jdS(s.Release grab for this widget if currently set.RtreleaseN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt grab_releasecscCs|jjdd|jdS(swSet grab for this widget. A grab directs all events to this and descendant widgets in the application.RRCN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytgrab_setfscCs |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.RRCs-globalN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytgrab_set_globallscCs4|jjdd|j}|dkr0d}n|S(sYReturn None, "local" or "global" if this widget has no, a local or a global grab.RtstatusRN(R>RDR{R(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt grab_statusss 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>RD(RFtpatternRtpriority((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt option_addyscCs|jjdddS(sPClear the option database. It will be reloaded if option_add is called.RRN(R>RD(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt option_clearscCs|jjdd|j||S(sReturn the value for an option NAME for this widget with CLASSNAME. Values with higher priority override lower values.RRO(R>RDR{(RFRHt className((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt option_getscCs|jjdd||dS(svRead file FILENAME into the option database. An optional second parameter gives the numeric priority.RtreadfileN(R>RD(RFtfileNameR((s$/sys/lib/python2.7/lib-tk/Tkinter.pytoption_readfilescKs=d|kr|j|dRDR(RFRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytselection_clears cKsd|kr|j|dRDRR(RFRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt selection_gets  ! 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(RRR>RDRR{(RFtcommandRvRH((s$/sys/lib/python2.7/lib-tk/Tkinter.pytselection_handles  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>RDRR{(RFRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt selection_owns cKsRd|kr|j|dRDRRR(RFRvRH((s$/sys/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>RD(RFtinterptcmdRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs|jjd|j|dS(s(Lower this widget in the stacking order.tlowerN(R>RDR{(RFt belowThis((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs|jjd|j|dS(s(Raise this widget in the stacking order.traiseN(R>RDR{(RFt aboveThis((s$/sys/lib/python2.7/lib-tk/Tkinter.pyttkraisescCs|jjdd|j|S(sUseless. Not implemented in Tk.R>t colormodel(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs0d|j||f}t|jj|S(s*Return integer which represents atom NAME.twinfotatom(RR(RRdR>RD(RFRHRRu((s$/sys/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>RD(RFRRRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_atomnamescCst|jjdd|jS(s7Return number of cells in the colormap for this widget.Rtcells(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_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>R\RDR{RRtKeyError(RFtresulttchild((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_childrens " cCs|jjdd|jS(s(Return window class name of this widget.Rtclass(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_classscCs%|jj|jjdd|jS(s?Return true if at the last color request the colormap was full.Rt colormapfull(R>RhRDR{(RF((s$/sys/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>RDRR(RFtrootXtrootYRRuRH((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_containings cCst|jjdd|jS(s$Return the number of bits per pixel.Rtdepth(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_depthscCst|jjdd|jS(s"Return true if this widget exists.RR<(RdR>RDR{(RF((s$/sys/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(RfR>RDR{(RFtnumber((s$/sys/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>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_geometryscCst|jjdd|jS(sReturn height of this widget.Rtheight(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_height scCs%|jj|jjdd|jS(s%Return identifier ID for this widget.RR(R>RdRDR{(RF((s$/sys/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>R\RD(RFRRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_interpsscCst|jjdd|jS(s%Return true if this widget is mapped.Rtismapped(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_ismappedscCs|jjdd|jS(s0Return the window mananger name for this widget.Rtmanager(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_managerscCs|jjdd|jS(sReturn the name of this widget.RRH(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_namescCs|jjdd|jS(s-Return the name of the parent of this widget.Rtparent(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_parent!scCs*d|j||f}|jj|S(s.Return the pathname of the widget given by ID.Rtpathname(swinfoR(RR>RD(RFRRRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_pathname$scCs"t|jjdd|j|S(s'Rounded integer value of winfo_fpixels.Rtpixels(RdR>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_pixels)scCst|jjdd|jS(s:Return the x coordinate of the pointer on the root window.Rtpointerx(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_pointerx-scCs"|j|jjdd|jS(sHReturn a tuple of x and y coordinates of the pointer on the root window.Rt pointerxy(t_getintsR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_pointerxy1scCst|jjdd|jS(s:Return the y coordinate of the pointer on the root window.Rtpointery(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_pointery5scCst|jjdd|jS(s'Return requested height of this widget.Rt reqheight(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_reqheight9scCst|jjdd|jS(s&Return requested width of this widget.Rtreqwidth(RdR>RDR{(RF((s$/sys/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>RDR{(RFtcolor((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_rgbAscCst|jjdd|jS(sSReturn x coordinate of upper left corner of this widget on the root window.Rtrootx(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_rootxFscCst|jjdd|jS(sSReturn y coordinate of upper left corner of this widget on the root window.Rtrooty(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_rootyKscCs|jjdd|jS(s&Return the screen name of this widget.Rtscreen(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_screenPscCst|jjdd|jS(sTReturn the number of the cells in the colormap of the screen of this widget.Rt screencells(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_screencellsSscCst|jjdd|jS(s\Return the number of bits per pixel of the root window of the screen of this widget.Rt screendepth(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_screendepthXscCst|jjdd|jS(sXReturn the number of pixels of the height of the screen of this widget in pixel.Rt screenheight(RdR>RDR{(RF((s$/sys/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(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_screenmmheightbscCst|jjdd|jS(sTReturn the number of pixels of the width of the screen of this widget in mm.Rt screenmmwidth(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_screenmmwidthgscCs|jjdd|jS(sReturn one of the strings directcolor, grayscale, pseudocolor, staticcolor, staticgray, or truecolor for the default colormodel of this screen.Rt screenvisual(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_screenvisuallscCst|jjdd|jS(sWReturn the number of pixels of the width of the screen of this widget in pixel.Rt screenwidth(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_screenwidthqscCs|jjdd|jS(sxReturn information of the X-Server of the screen of this widget in the form "XmajorRminor vendor vendorVersion".Rtserver(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_servervscCs"|j|jjdd|jS(s*Return the toplevel widget of this widget.Rttoplevel(RR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_toplevelzscCst|jjdd|jS(sBReturn true if the widget and all its higher ancestors are mapped.Rtviewable(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_viewable~scCs|jjdd|jS(sReturn one of the strings directcolor, grayscale, pseudocolor, staticcolor, staticgray, or truecolor for the colormodel of this widget.Rtvisual(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_visualscCs|jjdd|jS(s7Return the X identifier for the visual for this widget.Rtvisualid(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_visualidscCsp|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>R[RDR{RRRRt_Misc__winfo_parseitem(RFR&R((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_visualsavailables  cCs"|d tt|j|dS(sInternal function.i(R Rt_Misc__winfo_getint(RFtt((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt__winfo_parseitemscCs t|dS(sInternal function.i(R3(RFtx((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt__winfo_getintscCst|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.Rt vrootheight(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_vrootheightscCst|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(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_vrootwidthscCst|jjdd|jS(siReturn the x offset of the virtual root relative to the root window of the screen of this widget.Rtvrootx(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_vrootxscCst|jjdd|jS(siReturn the y offset of the virtual root relative to the root window of the screen of this widget.Rtvrooty(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_vrootyscCst|jjdd|jS(s Return the width of this widget.Rtwidth(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt winfo_widthscCst|jjdd|jS(sVReturn the x coordinate of the upper left corner of this widget in the parent.RR,(RdR>RDR{(RF((s$/sys/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(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwinfo_yscCs|jjddS(sEEnter event loop until all pending events have been processed by Tcl.RN(R>RD(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs|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.Rt idletasksN(R>RD(RF((s$/sys/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>R\RDR{(RFttagList((s$/sys/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+R9N(RRR>RDRRt _substitutet_subst_format_strR\(RFtwhattsequenceRRt needcleanuptfuncidR((s$/sys/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 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(RFR{(RFRCRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRGs'cCs6|jjd|j|d|r2|j|ndS(sWUnbind for this widget for event SEQUENCE the function identified with FUNCID.RGR9N(R>RDR{RX(RFRCRE((s$/sys/lib/python2.7/lib-tk/Tkinter.pytunbind scCs|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.RGtalli(sbindsall(RF(RFRCRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pytbind_allscCs|jjdd|ddS(s8Unbind for all widgets for event SEQUENCE all functions.RGRIR9N(R>RD(RFRC((s$/sys/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.RGi(RF(RFRRCRR((s$/sys/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.RGR9N(R>RD(RFRRC((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt unbind_class&scCs|jj|dS(sCall the mainloop of Tk.N(R>Rj(RFRk((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRj*scCs|jjdS(s8Quit the Tcl interpreter. All widgets will be destroyed.N(R>tquit(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRN-scCs)|r%ttt|jj|SdS(sInternal function.N(R RRdR>R\(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR0scCs)|r%ttt|jj|SdS(sInternal function.N(R RRfR>R\(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt _getdoubles4scCs|r|jj|SdS(sInternal function.N(R>Rh(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt _getboolean8scCs-|rd|fS|dkr)d|jfSdS(sInternal function.s -displayofN((RR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR<s    cCsLy|jjSWn4tk rG|jjdd}|j_|SXdS(sInternal function.R>twindowingsystemN(t_roott_windowingsystem_cachedR R>RD(RFtws((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRCs  "cCs<|rt||f}n t|}d}x|jD]\}}|dk r:|ddkro|d }nt|dr|j|}nt|ttfrg}xo|D]U}t|tt fsPqt|t r|j d|q|j t |qWdj |}n|d||f}q:q:W|S( sInternal function.it_t__call__s%dRt-(N( R)R"RthasattrRRR R R RR3RRR(RFR$RvRR'R(tnvR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRLs*    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[RRR(RFRHtwRk((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt nametowidgetfs    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( t CallWrapperRVRARtim_funcR R+R>t createcommandRnRR(RFRtsubstRDtfRH((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRRws     cCs#|}x|jr|j}q W|S(sInternal function.(RG(RFR[((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRRs 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(R3R4(Rl((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt getint_events i(R t _subst_formatR>RhR3R*tserialtnumRRRtkeycodetstatettimeR6R,R9tchart send_eventtkeysymt keysym_numRRtwidgetRtx_rootty_roottdeltaR4(RFRuRhRdRbtnsigntbRathR'RlR*R[R,R9tAtEtKtNtWtTtXtYtDte((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR@sN  ?          cCsLddl}|j|j|j}}}|j}|j|||dS(sInternal function.iN(tsystexc_typet exc_valuet exc_tracebackRRtreport_callback_exception(RFR~texctvalttbtroot((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt_report_exceptions  cCs0|rt||f}n|r0t|}n|dkri}xZ|jj|jjt|j|fD]+}|ddf|d||ddR[RDRR{RRR(RFRR$RvR,((s$/sys/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(R(RFR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs|jj|jdd|S(s4Return the resource value for a KEY given as string.tcgetRW(R>RDR{(RFtkey((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs|ji||6dS(N(R(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt __setitem__scCstddS(Ns)Tkinter objects don't support 'in' tests.(R!(RFR((s$/sys/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$/sys/lib/python2.7/lib-tk/Tkinter.pytsR(RR>R[RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytkeyss cCs|jS(s+Return the window path name of this widget.(R{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRLst_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(RmRRPR>RDR{(RFtflag((s$/sys/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(RRR>R\RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt pack_slavess  cCs1t|j|jj|jjdd|jS(sHReturn a list of all slaves of this widget in its packing order.tplaceR(RRR>R\RDR{(RF((s$/sys/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(R{RRR>RD(RFtcolumntrowtcol2trow2Ru((s$/sys/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 | } | || RDR{R\trangeR RRfRd( RFRtindexR$RvtoptionsRtwordstdicttiRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt_grid_configure2s>          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(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytgrid_columnconfigureTscCs.|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>RDR{R(RFR,R9((s$/sys/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(RmRRPR>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pytgrid_propagatecscKs|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(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytgrid_rowconfigureoscCs(|j|jjdd|jp'dS(s<Return a tuple of the number of column and rows in the grid.RtsizeN(RR>RDR{R(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt grid_sizewscCs|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\RDR{(RFRRRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt grid_slaves|s   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>RD(RFtvirtualt sequencesRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt event_addscGs'dd|f|}|jj|dS(s-Unbind a virtual event VIRTUAL from SEQUENCE.RtdeleteN(R>RD(RFRRRu((s$/sys/lib/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(R{R"RR>RD(RFRCRvRuR'R(((s$/sys/lib/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.RR;(R>R\RD(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt event_infos cCs|jjddS(s*Return a list of all existing image names.timagetnames(R>RD(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt image_namesscCs|jjddS(s?Return a list of all available image types (e.g. phote bitmap).Rttypes(R>RD(RF((s$/sys/lib/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(R+R,R-RRnRoRXRqRsRtRwRytwaitvarR|R~RRR3RdtfloatRfRhRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRtliftRRRRRRRRRRRRRRRRRRRRRRRRRRRRR R RRRRRRRRRR R"R$R(R'R)R/R1R3R5R7R8R:RR<R=RFRGRHRJRKRLRMRjRNRRORPRtpropertyRRR\RRRtregisterRRRcRRAR@RRRtconfigRt __getitem__RRRRLRRRRRRRRRRRRRRRRRRRRRRRR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRmtsJ                                                                                        (             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(RR`Rm(RFRR`Rm((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRIs  cGsby,|jr|j|}n|j|SWn/tk rJ}t|n|jjnXdS(s3Apply first function SUBST to arguments, than FUNC.N(R`RR5RmR(RFRuR&((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRVs  (R+R,R-RIRV(((s$/sys/lib/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>RDR{RO(RFRuR((s$/sys/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>RDR{(RFtfraction((s$/sys/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>RDR{(RFRRB((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt xview_scrolls(R+R,R-RRR(((s$/sys/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>RDR{RO(RFRuR((s$/sys/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>RDR{(RFR((s$/sys/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>RDR{(RFRRB((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt yview_scrolls(R+R,R-RRR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRs  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>RDR{(RFtminNumertminDenomtmaxNumertmaxDenom((s$/sys/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(R{R>RD(RFRu((s$/sys/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>RDR{(RFRH((s$/sys/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(R R{RRR>RD(RFtwlistRu((s$/sys/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>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_command"scCs|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>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_deiconify(scCs|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>RDR{(RFtmodel((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_focusmodel-scCs|jjdd|jS(sAReturn identifier for decorative frame of this widget if present.Rtframe(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwm_frame3scCs|jjdd|j|S(siSet geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return current value if None is given.RR(R>RDR{(RFt newGeometry((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_geometry7sc 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>RDR{(RFt baseWidtht baseHeighttwidthInct heightInc((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwm_grid<s cCs|jjdd|j|S(s~Set the group leader widgets for related widgets to PATHNAME. Return the group leader of this widget if None is given.Rtgroup(R>RDR{(RFtpathName((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwm_groupGscCsE|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>RDR{(RFtbitmaptdefault((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_iconbitmapLs cCs|jjdd|jS(sDisplay widget as icon.Rticonify(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_iconifyZscCs|jjdd|j|S(sVSet mask for the icon bitmap of this widget. Return the mask if None is given.Rticonmask(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_iconmask^scCs|jjdd|j|S(sSSet the name of the icon for this widget. Return the name if None is given.Rticonname(R>RDR{(RFtnewName((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_iconnamecscCs(|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>RDR{(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwm_iconpositionhscCs|jjdd|j|S(sgSet widget PATHNAME to be displayed instead of icon. Return the current value if None is given.Rt iconwindow(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_iconwindownscCs(|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>RDR{(RFR6R((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_maxsizesscCs(|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>RDR{(RFR6R((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_minsizezscCs%|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(RPR>RDR{(RFRr((s$/sys/lib/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>RDR{(RFtwho((s$/sys/lib/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".RVRtprotocol(RXRRR>RDR{(RFRHRR((s$/sys/lib/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>RDR{(RFR6R((s$/sys/lib/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>RDR{(RFR((s$/sys/lib/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).RRg(R>RDR{(RFtnewstate((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwm_statescCs|jjdd|j|S(sSet the title of this widget.Rttitle(R>RDR{(RFR((s$/sys/lib/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>RDR{(RFRG((s$/sys/lib/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>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt wm_withdrawsN(<R+R,R-RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR RR R R R RRRRgRRRRRR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRsv                      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.RZRiic Csd|_i|_d|_d|_|dkrddl}ddl}|jj|j d}|jj |\}} | dkr|| }qnd} t j |||| t ||||_|r|jn|jjs|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(RRGRt _tkloadedR>R~tostpathtbasenametargvtsplitextt_tkintertcreatet wantobjectst_loadtktflagstignore_environmentt readprofile( RFt screenNametbaseNameRtuseTktsynctuseR~Rtextt interactive((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRIs       '  cCs'|js#|jj|jndS(N(RR>tloadtkR"(RF((s$/sys/lib/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(RR>RRt TK_VERSIONt RuntimeErrorRt TCL_VERSIONt TkVersionRnRR_R2R7RR.R/R Ro(RFR.R/((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR"s0     cCsfx!|jjD]}|jqW|jjd|jtj|trbt|krbdandS(shDestroy this and all descendants widgets. This will end the application of this Tcl interpreter.RoN( RtvaluesRoR>RDR{RmR.R/R(RFR%((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRos  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.pyRFsfrom Tkinter import *tsource( RtenvirontcurdirRRtisfileR>RDtexecfile( RFR'RRthomet class_tcltclass_pytbase_tcltbase_pytdir((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR%s$   cCsZddl}ddl}|jjd||_||_||_|j|||dS(s6Internal function. It reports exception on sys.stderr.iNsException in Tkinter callback (t tracebackR~tstderrtwritet last_typet last_valuetlast_tracebacktprint_exception(RFRRRRDR~((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRs    cCst|j|S(s3Delegate attribute access to the interpreter object(tgetattrR>(RFtattr((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt __getattr__ sN( R+R,R-R{RRIR-R"RoR%RRM(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRs     cCst||||S(N(R(R&R'RR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pytTcl3stPackcBs`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>RDR{R(RFR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytpack_configure:s cCs|jjdd|jdS(s:Unmap this widget and do not use it for the packing order.RtforgetN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt pack_forgetNscCs|jj|jjdd|j}i}xhtdt|dD]N}||d}||d}|d dkr|j|}n|||R\RDR{RR R(RFRRRRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt pack_infoRs (R+R,R-RPRRRRRRQRSR;RmRRRR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRO6s    tPlacecBsSeZdZidZeZZZdZeZdZ e Z e j 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 RRN(R>RDR{R(RFR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytplace_configuregs cCs|jjdd|jdS(sUnmap this widget.RRQN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt place_forgetscCs|jj|jjdd|j}i}xhtdt|dD]N}||d}||d}|d dkr|j|}n|||R\RDR{RR R(RFRRRRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt place_infos (R+R,R-RURRRRVRQRWR;RmRR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRTcs   tGridcBseZdZidZeZZZejZ Zej Z Z 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 RRN(R>RDR{R(RFR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytgrid_configures cCs|jjdd|jdS(sUnmap this widget.RRQN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt grid_forgetscCs|jjdd|jdS(s0Unmap this widget but remember the grid options.RRpN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt grid_removescCs|jj|jjdd|j}i}xhtdt|dD]N}||d}||d}|d dkr|j|}n|||R\RDR{RR R(RFRRRRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt grid_infos (R+R,R-RYRRRRmRRRRRZRQR[R\R;RRRRRRRRRR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRXs          t BaseWidgetcBs>eZdZdZiiddZdZddZRS(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 |jRRARR@R{RRo(RFRGR$RH((s$/sys/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(R)t widgetNameR]R^RnRRRt ClassTypeRR>RDR{RR( RFRGR_R$RvtextratclassesR'R(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRIs   !cCssx!|jjD]}|jqW|jjd|j|j|jjkrb|jj|j=ntj|dS(s)Destroy this and all descendants widgets.RoN( RR7RoR>RDR{R@RGRm(RFR%((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRos cCs|jj|j|f|S(N(R>RDR{(RFRHRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt_dos(((R+R,R-R^RIRoRc(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR]s   tWidgetcBseZdZRS(sxInternal class. Base class for a widget which can be positioned with the geometry managers Pack, Place or Grid.(R+R,R-(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRdstToplevelcBseZdZdidZRS(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 |jd S( 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.R tclass_RR!tcolormapiRURWRR2N((R)R]RIRRRRR Ro( RFRGR$RvRatwmkeyRtoptR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI s"     N(R+R,R-RRI(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRe stButtoncBs\eZdZd idZdZdZdZdZdZ dZ dZ RS( 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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI'scGs|jjd|jdS(Nt tkButtonEnter(R>RDR{(RFtdummy((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRl<scGs|jjd|jdS(Nt tkButtonLeave(R>RDR{(RFRm((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRn?scGs|jjd|jdS(Nt tkButtonDown(R>RDR{(RFRm((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRoBscGs|jjd|jdS(Nt tkButtonUp(R>RDR{(RFRm((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRpEscGs|jjd|jdS(NttkButtonInvoke(R>RDR{(RFRm((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRqHscCs|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>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRrKs 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>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRsWsN( R+R,R-RRIRlRnRoRpRqRrRs(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRj%s      cCsdS(Ntend((((s$/sys/lib/python2.7/lib-tk/Tkinter.pytAtEndcscGs2d}x%|D]}|r |d|}q q W|S(NtinsertR((RuRlta((s$/sys/lib/python2.7/lib-tk/Tkinter.pytAtInsertes  cCsdS(Ns sel.first((((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt AtSelFirstjscCsdS(Nssel.last((((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt AtSelLastlscCs)|dkrd|fSd||fSdS(Ns@%rs@%r,%r(R(R,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pytAtns  tCanvascBsIeZdZd:idZdZdZdZdZd:d:dZ dZ dZ d Z d Z d:d Zd: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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRIvs cGs!|jj|jdf|dS(sInternal function.taddtagN(R>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR~scCs|j|d|dS(s*Add tag NEWTAG to all items above TAGORID.taboveN(R~(RFtnewtagttagOrId((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt addtag_abovescCs|j|ddS(sAdd tag NEWTAG to all items.RIN(R~(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt addtag_allscCs|j|d|dS(s*Add tag NEWTAG to all items below TAGORID.tbelowN(R~(RFRR((s$/sys/lib/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~(RFRR,R9thalotstart((s$/sys/lib/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~(RFRtx1ty1tx2ty2((s$/sys/lib/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~(RFRRRRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pytaddtag_overlappingscCs|j|d|dS(s)Add tag NEWTAG to all items with TAGORID.twithtagN(R~(RFRR((s$/sys/lib/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>RDR{R(RFRu((s$/sys/lib/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.RGR9N(R>RDR{RX(RFRRCRE((s$/sys/lib/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.RG(RFR{(RFRRCRR((s$/sys/lib/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(RfR>RDR{(RFtscreenxt gridspacing((s$/sys/lib/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(RfR>RDR{(RFtscreenyR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRs cGs2tt|jj|jj|jdf|S(s8Return a list of coordinates for the item given in ARGS.tcoords(RRfR>R\RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRs c Csst|}|d}t|ttfkr;|d }ni}t|jj|jd|||j||S(sInternal function.iR ( RRRRRdR>RDR{R(RFtitemTypeRuRvR$((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt_creates     cOs|jd||S(s6Create arc shaped region with coordinates x1,y1,x2,y2.tarc(R(RFRuRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt create_arcscOs|jd||S(s%Create bitmap with coordinates x1,y1.R(R(RFRuRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt create_bitmapscOs|jd||S(s)Create image item with coordinates x1,y1.R(R(RFRuRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt create_imagescOs|jd||S(s-Create line with coordinates x1,y1,...,xn,yn.tline(R(RFRuRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt create_linescOs|jd||S(s)Create oval with coordinates x1,y1,x2,y2.toval(R(RFRuRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt create_ovalscOs|jd||S(s0Create polygon with coordinates x1,y1,...,xn,yn.tpolygon(R(RFRuRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytcreate_polygonscOs|jd||S(s.Create rectangle with coordinates x1,y1,x2,y2.t rectangle(R(RFRuRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytcreate_rectanglescOs|jd||S(s#Create text with coordinates x1,y1.ttext(R(RFRuRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt create_textscOs|jd||S(s+Create window with coordinates x1,y1,x2,y2.Rz(R(RFRuRv((s$/sys/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>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscGs!|jj|jdf|dS(s<Delete items identified by all tag or ids contained in ARGS.RN(R>RDR{(RFRu((s$/sys/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>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscGs,|j|jj|jdf|p+dS(sInternal function.tfind((RR>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs|jd|S(sReturn items above TAGORID.R(R(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt find_abovescCs |jdS(sReturn all items.RI(R(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytfind_allscCs|jd|S(sReturn all items below TAGORID.R(R(RFR((s$/sys/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.R(R(RFR,R9RR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt find_closestscCs|jd||||S(s=Return all items in rectangle defined by X1,Y1,X2,Y2.R(R(RFRRRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt find_enclosed scCs|jd||||S(sLReturn all items which overlap the rectangle defined by X1,Y1,X2,Y2.R(R(RFRRRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pytfind_overlapping scCs|jd|S(sReturn all items with TAGORID.R(R(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt find_withtag scGs|jj|jdf|S(s.Set focus to the first item specified in ARGS.R(R>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scGs)|jj|jj|jdf|S(s=Return tags associated with the first item specified in ARGS.tgettags(R>R\RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s cGs!|jj|jdf|dS(sdSet cursor at position POS in the item identified by TAGORID. In ARGS TAGORID must be first.ticursorN(R>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scGs#t|jj|jdf|S(s?Return position of cursor as integer in item specified in ARGS.R(RdR>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scGs!|jj|jdf|dS(sSInsert TEXT in item TAGORID at position POS. ARGS must be TAGORID POS TEXT.RvN(R>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRv scCs'|jj|jdf|d|fS(s9Return the resource value for an OPTION for item TAGORID.titemcgetRW(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR" 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(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR& scGs!|jj|jdf|dS(sJLower an item TAGORID given in ARGS (optional below another item).RN(R>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt tag_lower3 scGs!|jj|jdf|dS(s#Move an item TAGORID given in ARGS.tmoveN(R>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR8 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, witdh, x, y.t postscript(R>RDR{R(RFR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR; scGs!|jj|jdf|dS(sJRaise an item TAGORID given in ARGS (optional above another item).RN(R>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt tag_raiseB scGs!|jj|jdf|dS(s9Scale item TAGORID with XORIGIN, YORIGIN, XSCALE, YSCALE.tscaleN(R>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRG scCs#|jj|jdd||dS(s&Remember the current X, Y coordinates.tscantmarkN(R>RDR{(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt scan_markJ 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>RDR{(RFR,R9tgain((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt scan_dragtoM scCs#|jj|jdd||dS(sLAdjust the end of the selection near the cursor of an item TAGORID to index.tselecttadjustN(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt select_adjustR scCs|jj|jdddS(s,Clear the selection if it is in this widget.RRN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt select_clearU scCs#|jj|jdd||dS(s:Set the fixed end of a selection in item TAGORID to INDEX.RtfromN(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt select_fromX scCs|jj|jddpdS(s(Return the item which has the selection.RRN(R>RDR{R(RF((s$/sys/lib/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>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt select_to^ scCs|jj|jd|pdS(s$Return the type of the item TAGORID.RN(R>RDR{R(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRa sN(@R+R,R-RRIR~RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRvRRt itemconfigRRRRRRRRRRRRRRRR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR|tsx                                                   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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRIg s cCs|jj|jddS(sPut the button in off-state.tdeselectN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRr scCs|jj|jddS(sFlash the button.RrN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRru scCs|jj|jdS(s<Toggle the button and invoke a command if given as resource.Rs(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRsx scCs|jj|jddS(sPut the button in on-state.RN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR{ scCs|jj|jddS(sToggle the button.ttoggleN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR~ sN( R+R,R-RRIRRrRsRR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRe s    tEntrycBseZdZdidZddZdZdZdZdZ dZ dZ d Z e Z d ZeZd ZeZd 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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI s cCs |jj|jd||dS(s.Delete text from FIRST to LAST (not included).RN(R>RDR{(RFtfirsttlast((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs|jj|jdS(sReturn the text.RO(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRO scCs|jj|jd|dS(sInsert cursor at INDEX.RN(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCst|jj|jd|S(sReturn position of cursor.R(RdR>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s cCs |jj|jd||dS(sInsert STRING at INDEX.RvN(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRv scCs |jj|jdd|dS(s&Remember the current X, Y coordinates.RRN(R>RDR{(RFR,((s$/sys/lib/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>RDR{(RFR,((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs |jj|jdd|dS(s9Adjust the end of the selection near the cursor to INDEX.RRN(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pytselection_adjust scCs|jj|jdddS(s,Clear the selection if it is in this widget.RRN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs |jj|jdd|dS(s*Set the fixed end of a selection to INDEX.RRN(R>RDR{(RFR((s$/sys/lib/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>RhRDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pytselection_present s cCs#|jj|jdd||dS(s3Set the selection from START to END (not included).RRN(R>RDR{(RFRRt((s$/sys/lib/python2.7/lib-tk/Tkinter.pytselection_range scCs |jj|jdd|dS(s-Set the variable end of a selection to INDEX.RRN(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt selection_to sN(R+R,R-RRIRRORRRvRRRRRRRRRtselect_presentRt select_rangeRR(((s$/sys/lib/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.Rfs-classRRN((R)RdRI(RFRGR$RvRa((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI s    N(R+R,R-RRI(((s$/sys/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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI sN(R+R,R-RRI(((s$/sys/lib/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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI scCs|jj|jd|dS(s"Activate item identified by INDEX.tactivateN(R>RDR{(RFR((s$/sys/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>RDR{R(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs"|jj|jj|jdS(s2Return list of indices of currently selected item.t curselection(R>R\RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs |jj|jd||dS(s/Delete items from FIRST to LAST (not included).RN(R>RDR{(RFRR((s$/sys/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).RON(R>R\RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRO scCs5|jj|jd|}|dkr+dSt|S(s+Return index of item identified with INDEX.RRN(R>RDR{RRd(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s cGs$|jj|jd|f|dS(sInsert ELEMENTS at INDEX.RvN(R>RDR{(RFRtelements((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRv scCst|jj|jd|S(s5Get index of item which is nearest to y coordinate Y.tnearest(RdR>RDR{(RFR9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s cCs#|jj|jdd||dS(s&Remember the current X, Y coordinates.RRN(R>RDR{(RFR,R9((s$/sys/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>RDR{(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs|jj|jd|dS(s"Scroll such that INDEX is visible.tseeN(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR! scCs |jj|jdd|dS(s-Set the fixed end oft the selection to INDEX.RtanchorN(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pytselection_anchor$ scCs#|jj|jdd||dS(s6Clear the selection from FIRST to LAST (not included).RRN(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR( scCs(|jj|jj|jdd|S(s+Return 1 if INDEX is part of the selection.Rtincludes(R>RhRDR{(RFR((s$/sys/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.RRCN(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt selection_set2 scCst|jj|jdS(s-Return the number of elements in the listbox.R(RdR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR7 scCs'|jj|jdf|d|fS(s4Return the resource value for an ITEM and an OPTION.RRW(R>RDR{(RFRR((s$/sys/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(R(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR> sN(R+R,R-RRIRRRRRORRvRRRRRt select_anchorRRRtselect_includesRt select_setRRRR(((s$/sys/lib/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 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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRIK scCsdS(N((RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyttk_bindForTraversalS scCs|jjd|jdS(Nt tk_mbPost(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRU scCs|jjddS(Nt tk_mbUnpost(R>RD(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRW scCs|jjd|j|dS(Nttk_traverseToMenu(R>RDR{(RFRi((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRY scCs|jjd|j|dS(Nttk_traverseWithinMenu(R>RDR{(RFRi((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR[ scCs|jjd|jS(Nttk_getMenuButtons(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR] scCs|jjd|dS(Nt tk_nextMenu(R>RD(RFtcount((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR_ scCs|jjd|dS(Nttk_nextMenuEntry(R>RD(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRa scCs|jjd|jdS(Nt tk_invokeMenu(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRc scCs|jjd|jdS(Nt tk_firstMenu(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRe scCs|jjd|jdS(Nttk_mbButtonDown(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRg sR9cCs#|jjd|j|||dS(s/Post the menu at position X,Y with entry ENTRY.ttk_popupN(R>RDR{(RFR,R9R((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRi scCs|jj|jd|dS(sActivate entry at INDEX.RN(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRl scKs0|jj|jd|f|j||dS(sInternal function.RN(R>RDR{R(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRo scKs|jd|p|dS(sAdd hierarchical menu item.tcascadeN(R(RFR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt add_cascades scKs|jd|p|dS(sAdd checkbutton menu item.RN(R(RFR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytadd_checkbuttonv scKs|jd|p|dS(sAdd command menu item.RN(R(RFR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt add_commandy scKs|jd|p|dS(sAddd radio menu item.t radiobuttonN(R(RFR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytadd_radiobutton| scKs|jd|p|dS(sAdd separator.t separatorN(R(RFR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt add_separator scKs3|jj|jd||f|j||dS(sInternal function.RvN(R>RDR{R(RFRRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRv scKs|j|d|p|dS(s$Add hierarchical menu item at INDEX.RN(Rv(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytinsert_cascade scKs|j|d|p|dS(s#Add checkbutton menu item at INDEX.RN(Rv(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytinsert_checkbutton scKs|j|d|p|dS(sAdd command menu item at INDEX.RN(Rv(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytinsert_command scKs|j|d|p|dS(sAddd radio menu item at INDEX.RN(Rv(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytinsert_radiobutton scKs|j|d|p|dS(sAdd separator at INDEX.RN(Rv(RFRR$Rv((s$/sys/lib/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>RDR{(RFtindex1tindex2t num_index1t num_index2RR%((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s  cCs |jj|jd|d|S(s>Return the resource value of an menu item for OPTION at INDEX.RRW(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scKs|jd|f||S(sConfigure a menu item at INDEX.tentryconfigure(R(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs5|jj|jd|}|dkr+dSt|S(s4Return the index of a menu item identified by INDEX.RRN(R>RDR{RRd(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s cCs|jj|jd|S(sRInvoke a menu item identified by INDEX and execute the associated command.Rs(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRs scCs |jj|jd||dS(sDisplay a menu at position X,Y.tpostN(R>RDR{(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs|jj|jd|S(s*Return the type of the menu item at INDEX.R(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs|jj|jddS(s Unmap a menu.tunpostN(R>RDR{(RF((s$/sys/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(RdR>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s N((R+R,R-RRIRRRRRRRRRRRRRRRRRRRRvR R R R R RRRRRRsRRRR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI sJ                                 t MenubuttoncBseZdZdidZRS(s(Menubutton widget, obsolete since Tk8.0.cKstj||d||dS(Nt menubutton(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI sN(R+R,R-RRI(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR stMessagecBseZdZdidZRS(sKMessage widget to display multiline text. Obsolete since Label does it too.cKstj||d||dS(Ntmessage(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI sN(R+R,R-RRI(((s$/sys/lib/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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI s cCs|jj|jddS(sPut the button in off-state.RN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs|jj|jddS(sFlash the button.RrN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRr scCs|jj|jdS(s<Toggle the button and invoke a command if given as resource.Rs(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRs scCs|jj|jddS(sPut the button in on-state.RN(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR sN( R+R,R-RRIRRrRsR(((s$/sys/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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI s cCsE|jj|jd}yt|SWntk r@t|SXdS(s*Get the current value as integer or float.RON(R>RDR{RdR4Rf(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRO s  cCs|jj|jd|dS(sSet the value to VALUE.RCN(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRC 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>RDR{(RFR((s$/sys/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>RDR{(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR sN( R+R,R-RRIRORCRR(((s$/sys/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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI s cCs|jj|jd|dS(sxDisplay the element at INDEX with activebackground and activerelief. INDEX can be "arrow1","slider" or "arrow2".RN(R>RDR{(RFR((s$/sys/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.Rp(RfR>RDR{(RFtdeltaxtdeltay((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRp scCs"t|jj|jd||S(sRReturn the fractional value which corresponds to a slider position of X,Y.R(RfR>RDR{(RFR,R9((s$/sys/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>RDR{(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR! scCs|j|jj|jdS(sZReturn the current fractional values (upper and lower end) of the slider position.RO(ROR>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRO% scGs!|jj|jdf|dS(siSet the fractional values of the slider position (upper and lower ends as value between 0 and 1).RCN(R>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRC) sN( R+R,R-RRIRRpRRRORC(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR 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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI2 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>RDR{R(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRJ scCs|jjd|j|dS(Nttk_textSelectTo(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR$O scCs|jjd|jdS(Nttk_textBackspace(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR%Q scCs#|jjd|j|||dS(Nttk_textIndexCloser(R>RDR{(RFRwRrR%((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR&S scCs|jjd|j|dS(Nttk_textResetAnchor(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR'U 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>RhRDR{(RFRtopR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR(W scCs%|jj|jj|jd|S(sjTurn on the internal consistency checks of the B-Tree inside the text widget according to BOOLEAN.tdebug(R>RhRDR{(RFRr((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR*\ scCs |jj|jd||dS(s?Delete the characters between INDEX1 and INDEX2 (not included).RN(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRa 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>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR+d 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(RRRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt append_triple~ ss-commandRWtdumpN( RR RRRRR>RDR{RX( RFRRRRvRut func_nameRR,R((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR-i 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>RDR{(RFRu((s$/sys/lib/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/(RFtarg((s$/sys/lib/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/(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt edit_redo scCs |jdS(s(Clears the undo and redo stacks treset(R/(RF((s$/sys/lib/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/(RF((s$/sys/lib/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/(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt edit_undo s cCs|jj|jd||S(s5Return the text from INDEX1 to INDEX2 (not included).RO(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRO scCsY|d dkrd|}n|ddkr:|d }n|jj|jdd||S(s9Return the value of OPTION of an embedded image at INDEX.iRWiRURR(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt image_cget s   cKs|jdd|f||S(s%Configure an embedded image at INDEX.RR(R(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytimage_configure scKs+|jj|jdd||j||S(s"Create an embedded image at INDEX.RR (R>RDR{R(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt image_create s cCs|jj|jddS(s3Return all names of embedded images in this widget.RR(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCst|jj|jd|S(s1Return the index in the form line.char for INDEX.R(RR>RDR{(RFR((s$/sys/lib/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.RvN(R>RDR{(RFRtcharsRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRv 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>RDR{(RFtmarkNamet direction((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt mark_gravity s cCs%|jj|jj|jddS(sReturn all mark names.RR(R>R\RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt mark_names scCs#|jj|jdd||dS(s0Set mark MARKNAME before the character at INDEX.RRCN(R>RDR{(RFR?R((s$/sys/lib/python2.7/lib-tk/Tkinter.pytmark_set scGs$|jj|jddf|dS(sDelete all marks in MARKNAMES.RtunsetN(R>RDR{(RFt markNames((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt mark_unset scCs"|jj|jdd|p!dS(s-Return the name of the next mark after INDEX.RtnextN(R>RDR{R(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt mark_next scCs"|jj|jdd|p!dS(s2Return the name of the previous mark before INDEX.RtpreviousN(R>RDR{R(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt mark_previous scCs#|jj|jdd||dS(s&Remember the current X, Y coordinates.RRN(R>RDR{(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR 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>RDR{(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR 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-countiRWs--(R{RRR>RDR ( RFRRt stopindextforwardst backwardstexacttregexptnocaseRtelideRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s.   cCs|jj|jd|dS(s3Scroll such that the character at INDEX is visible.RN(R>RDR{(RFR((s$/sys/lib/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>RDR{(RFttagNameRRu((s$/sys/lib/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.RRRGR9N(R>RDR{RX(RFRSRCRE((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR! 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.RRRG(RFR{(RFRSRCRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR' scCsY|d dkrd|}n|ddkr:|d }n|jj|jdd||S(s+Return the value of OPTION for tag TAGNAME.iRWiRURRR(R>RDR{(RFRSR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyttag_cget/ s   cKs|jdd|f||S(sConfigure a tag TAGNAME.RRR(R(RFRSR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt tag_configure6 scGs$|jj|jddf|dS(sDelete all tags in TAGNAMES.RRRN(R>RDR{(RFttagNames((s$/sys/lib/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.RRRN(R>RDR{(RFRSR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR= scCs(|jj|jj|jdd|S(sReturn a list of all tag names.RRR(R>R\RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt tag_namesA 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.RRt nextrange(R>R\RDR{(RFRSRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt tag_nextrangeE 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.RRt prevrange(R>R\RDR{(RFRSRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt tag_prevrangeK scCs#|jj|jdd||dS(saChange the priority of tag TAGNAME such that it is higher than the priority of ABOVETHIS.RRRN(R>RDR{(RFRSR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRQ s cCs(|jj|jj|jdd|S(s7Return a list of ranges of text which have tag TAGNAME.RRtranges(R>R\RDR{(RFRS((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt tag_rangesV scCs&|jj|jdd|||dS(sARemove tag TAGNAME from all characters between INDEX1 and INDEX2.RRRpN(R>RDR{(RFRSRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt tag_removeZ s cCsY|d dkrd|}n|ddkr:|d }n|jj|jdd||S(s:Return the value of OPTION of an embedded window at INDEX.iRWiRURzR(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt window_cget^ s   cKs|jdd|f||S(s&Configure an embedded window at INDEX.RzR(R(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pytwindow_configuree scKs3|jj|jdd|f|j||dS(sCreate a window at INDEX.RzR N(R>RDR{R(RFRR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt window_createi s cCs%|jj|jj|jddS(s4Return all names of embedded windows in this widget.RzR(R>R\RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt window_namesn s cGs$|jj|jddf|dS(sObsolete function, use see.Rs -pickplaceN(R>RDR{(RFRB((s$/sys/lib/python2.7/lib-tk/Tkinter.pytyview_pickplacer sN(:R+R,R-RRIRR$R%R&R'R(R*RR+R-R/R2R4R6R7R9ROR:R;R<RRRvRARBRCRFRHRJRRRRRTRRRURVt tag_configRXRRYR[R]RR_R`RaRbt window_configRcRdRe(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR#0 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(RFtvarRRT((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRIy s  cGs6|jj|j|jr2|j|j|ndS(N(RjRCRiRk(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRV} s N(R+R,R-RRIRV(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRhw 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 Ryt_last_idR)R"RXRRRD( RFtimgtypeRHR$RGRvRR'R(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI s,     cCs|jS(N(RH(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRL scCsA|jr=y|jjdd|jWq=tk r9q=XndS(NRR(RHR>RDR(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRK s   cCs$|jj|jdd||dS(NRRW(R>RDRH(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs|jj|jdd|S(NRRW(R>RDRH(RFR((s$/sys/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.iRURVRWRN((R)R"RRXRRR>RDRH(RFRvRR'R(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s  cCst|jjdd|jS(sReturn the height of the image.RR(RdR>RDRH(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs|jjdd|jS(s8Return the type of the imgage, e.g. "photo" or "bitmap".RR(R>RDRH(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCst|jjdd|jS(sReturn the width of the image.RR6(RdR>RDRH(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR6 sN(R+R,R-RzRRIRLRKRRRRRRR6(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRy s       t PhotoImagecBseZdZd id dZdZdZdZdZddZ ddZ d Z d d Z d d d Z RS( s?Widget which can display colored images in GIF, PPM/PGM format.cKs tj|d||||dS(stCreate an image with NAME. Valid resource names: data, format, file, gamma, height, palette, width.tphotoN(RyRI(RFRHR$RGRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI scCs|jj|jddS(sDisplay a transparent image.tblankN(R>RDRH(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR~ scCs|jj|jdd|S(sReturn the value of OPTION.RRW(R>RDRH(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs|jj|jdd|S(NRRW(R>RDRH(RFR((s$/sys/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(R|R>RDRH(RFt destImage((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s R9cCsDt}|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.R9Rs-zoom(R|R>RDRH(RFR,R9R((s$/sys/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.R9Rs -subsample(R|R>RDRH(RFR,R9R((s$/sys/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.RO(R>RDRH(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRO 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(RHR R>RD(RFRRRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR 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.RFs-formats-fromN(s-from(RHR R>RD(RFtfilenametformatt from_coordsRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRF s N(R+R,R-RRIR~RRRRRRORRF(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR| s        t BitmapImagecBs 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(RyRI(RFRHR$RGRv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI! sN(R+R,R-RRI(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCstjjddS(NRR(R/R>RD(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR' scCstjjddS(NRR(R/R>RD(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR( stSpinboxcBseZdZdidZdZddZdZdZdZ dZ dZ d Z d Z d Zd 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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI- 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>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRJ 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>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRX s cCs|jj|jdS(sReturns the spinbox's stringRO(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyROc 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>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRg 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>RDR{(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRo scCs|jj|jd|S(s;Returns the numerical index corresponding to index R(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRv scCs|jj|jd||S(sDInsert string s at index Returns an empty string. Rv(R>RDR{(RFRRl((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRv{ scCs|jj|jd|S(sCauses the specified element to be invoked The element could be buttondown or buttonup triggering the action associated with it. Rs(R>RDR{(RFtelement((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRs scGs,|j|jj|jdf|p+dS(sInternal function.R((RR>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR 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(RFR,((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR 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(RFR,((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s cGs,|j|jj|jdf|p+dS(sInternal function.R((RR>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR scCs|jd|S(sLocate the end of the selection nearest to the character given by index, Then adjust that end of the selection to be at index (i.e including but not going beyond index). The other end of the selection is made the anchor point for future select to commands. If the selection isn't currently in the spinbox, then a new selection is created to include the characters between index and the most recent selection anchor point, inclusive. Returns an empty string. R(R(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR 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(RF((s$/sys/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 R(R(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pytselection_element sN(R+R,R-RRIRRRORRRRvRsRRRRRRR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR+ 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(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI sN(R+R,R-RRI(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR st PanedWindowcBseZdZdidZdZdZeZdZdZ dZ dZ dZ d Z d Zd Zd 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, t panedwindowN(RdRI(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRI 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>RDR{R(RFRRv((s$/sys/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. RQN(R>RDR{(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRp 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>RDR{(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRs cGs,|j|jj|jdf|p+dS(sInternal function.tproxy((RR>RDR{(RFRu((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRscCs |jdS(sBReturn the x and y pair of the most recent proxy location tcoord(R(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt proxy_coordscCs |jdS(s+Remove the proxy from the display. RQ(R(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt proxy_forgetscCs|jd||S(s:Place the proxy at the given x and y coordinates. R(R(RFR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt proxy_placescGs,|j|jj|jdf|p+dS(sInternal function.tsash((RR>RDR{(RFRu((s$/sys/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(RFR((s$/sys/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(RFR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt sash_mark6scCs|jd|||S(s?Place the sash given by index at the given coordinates R(R(RFRR,R9((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt sash_place=scCs'|jj|jdf|d|fS(swQuery a management option for window. Option may be any value allowed by the paneconfigure subcommand tpanecgetRW(R>RDR{(RFRR((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRBs c Ks|dkrt| rti}xT|jj|jj|jd|D]+}|ddf|d||ddR[RDR{RRR(RFRR$RvR,((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRJsD )cCs|jj|jdS(s+Returns an ordered list of the child panes.tpanes(R>RDR{(RF((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRsN(R+R,R-RRIRRpRQRRRRRRRRRRRt paneconfigR(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyR s$           Qt StudbuttoncBseZdidZRS(cKsitj||d|||jd|j|jd|j|jd|j|jd|jdS(Nt studbuttons s s<1>s(RdRIRGRlRnRoRp(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRIs N(R+R,RRI(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRst TributtoncBseZdidZRS(cKstj||d|||jd|j|jd|j|jd|j|jd|j|d|d<|d|ds s<1>stbgtfgtactivebackground(RdRIRGRlRnRoRp(RFRGR$Rv((s$/sys/lib/python2.7/lib-tk/Tkinter.pyRIsN(R+R,RRI(((s$/sys/lib/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$/sys/lib/python2.7/lib-tk/Tkinter.pyRs tQUIT( Rt TclVersionRt NameErrorRRRjRRoRRRRj(RRRRRN((s$/sys/lib/python2.7/lib-tk/Tkinter.pyt_tests(            t__main__(^R-t __version__R~tplatformtFixTkRttkinterRRt TkconstantstreR!RR3R6R5RtREADABLEtWRITABLEt EXCEPTIONtcreatefilehandlerR RtdeletefilehandlertcompileRRRRRR)R*R.R/R0R2R7RBR8RaRbReRgRjR3RdRfRhRmR]RRRRRNRORTRXR]RdReRjRuRxRyRzR{R|RRRRRRRRRRRR#RhRmRyR|RRRRRRRRRR+(((s$/sys/lib/python2.7/lib-tk/Tkinter.pyts                     ,  L  Az-258>     A^y!(H %<<