
bc           @   s*  d  Z  d Z d d l Z e j d k r6 d d l Z n  y d d l Z Wn& e k
 rn Z e e e  d  n Xe Z	 e j
 Z
 d d l Td d l Td d l Z d Z e e j  Z e e j  Z e j Z e j Z e j Z y e j Wn e k
 re e _ n Xy e j Wn e k
 r,e e _ n Xe j d  Z e j d	  Z d
   Z d   Z d   Z  y e j  Z  Wn e k
 rn Xd   Z! y e j! Z! Wn e k
 rn Xe" e d  Z# d f  d     YZ$ d a% e a& d   Z' d   Z( d d  Z) d a* d f  d     YZ+ d e+ f d     YZ, d e+ f d     YZ- d e+ f d     YZ. d e+ f d     YZ/ d d  Z0 e1 Z2 e Z3 d    Z4 d! f  d"     YZ5 d# f  d$     YZ6 d% f  d&     YZ7 d' f  d(     YZ8 d) f  d*     YZ9 d+ e5 e9 f d,     YZ: e e d+ d d-  Z; d. f  d/     YZ< d0 f  d1     YZ= d2 f  d3     YZ> d4 e5 f d5     YZ? d6 e? e< e= e> f d7     YZ@ d8 e? e9 f d9     YZA d: e@ f d;     YZB d<   ZC d=   ZD d>   ZE d?   ZF e d@  ZG dA e@ e7 e8 f dB     YZH dC e@ f dD     YZI dE e@ e7 f dF     YZJ dG e@ f dH     YZK dI e@ f dJ     YZL dK e@ e7 e8 f dL     YZM dM e@ f dN     YZN dO e@ f dP     YZO dQ e@ f dR     YZP dS e@ f dT     YZQ dU e@ f dV     YZR dW e@ f dX     YZS dY e@ e7 e8 f dZ     YZT d[ f  d\     YZU d] eO f d^     YZV d_ f  d`     YZW da eW f db     YZX dc eW f dd     YZY de   ZZ df   Z[ dg e@ e7 f dh     YZ\ di e@ f dj     YZ] dk e@ f dl     YZ^ dm eB f dn     YZ_ do eB f dp     YZ` dq   Za eb dr k r&ea   n  d S(s   s2  Wrapper 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 $iNt   win32s&   , please install the python-tk package(   t   *i   s   ([\\{}])s   ([\s])c         C   s   d j  t t |    S(   s   Internal function.t    (   t   joint   mapt
   _stringify(   t   value(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _joinD   s    c         C   sL  t  |  t t f  ri t |   d k rV t |  d  }  t j |   rf d |  }  qf qHd t |   }  n t  |  t  r t	 |  d  }  n t  |  t	  s t |   }  n  |  s d }  n t j |   rt j
 d |   }  |  j d d  }  t j
 d |   }  |  d d	 k rHd
 |  }  qHn, |  d d	 k s;t j |   rHd |  }  n  |  S(   s   Internal function.i   i    s   {%s}s   utf-8s   {}s   \\\1s   
s   \nt   "s   \(   t
   isinstancet   listt   tuplet   lenR   t	   _magic_ret   searchR   t   strt   unicodet   subt   replacet	   _space_re(   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   H   s*    	c         C   sb   d } xU |  D]M } t  |  t t f k r> | t |  } q | d k	 r | | f } q q W| S(   s   Internal function.(    N(   t   typet	   TupleTypet   ListTypet   _flattent   None(   R   t   rest   item(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   c   s    c         C   s   t  |   t k r |  St  |   t t f k r2 |  Si  } xq t |   D]c } y | j |  WqE t t f k
 r } d G| GHx( | j   D] \ } } | | | <q WqE XqE W| Sd S(   s   Internal function.s   _cnfmerge: fallback due to:N(	   R   t   DictionaryTypet   NoneTypet
   StringTypeR   t   updatet   AttributeErrort	   TypeErrort   items(   t   cnfst   cnft   ct   msgt   kt   v(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   _cnfmergep   s    	c   	      C   s   |  j  |  } t |  d r. t d   n  t |  } i  } xk t | |  D]Z \ } } t |  } | r | d d k r | d } n  | r | |  } n  | | | <qP W| S(   s  Return a properly formatted dict built from Tcl list pairs.

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

    Tcl list is expected to contain an even number of elements.
    i   sN   Tcl list representing a dict is expected to contain an even number of elementsi    t   -i   (   t	   splitlistR   t   RuntimeErrort   itert   zipR   (	   t   tkR'   t	   cut_minust   convt   tt   itt   dictt   keyR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   _splitdict   s    t   Eventc           B   s   e  Z d  Z RS(   s  Container for the properties of an event.

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

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

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

        serial - serial number of event
    num - mouse button pressed (ButtonPress, ButtonRelease)
    focus - whether the window has the focus (Enter, Leave)
    height - height of the exposed window (Configure, Expose)
    width - width of the exposed window (Configure, Expose)
    keycode - keycode of the pressed key (KeyPress, KeyRelease)
    state - state of the event as a number (ButtonPress, ButtonRelease,
                            Enter, KeyPress, KeyRelease,
                            Leave, Motion)
    state - state as a string (Visibility)
    time - when the event occurred
    x - x-position of the mouse
    y - y-position of the mouse
    x_root - x-position of the mouse on the screen
             (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion)
    y_root - y-position of the mouse on the screen
             (ButtonPress, ButtonRelease, KeyPress, KeyRelease, Motion)
    char - pressed character (KeyPress, KeyRelease)
    send_event - see X/Windows documentation
    keysym - keysym of the event as a string (KeyPress, KeyRelease)
    keysym_num - keysym of the event as a number (KeyPress, KeyRelease)
    type - type of the event as a number
    widget - widget in which the event occurred
    delta - delta of wheel movement (MouseWheel)
    (   t   __name__t
   __module__t   __doc__(    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR6      s   )c           C   s   d a  d a b d S(   s   Inhibit setting of default root window.

    Call this function to inhibit that the first instance of
    Tk is used for windows without an explicit parent window.
    i    N(   t   _support_default_rootR   t   _default_root(    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   NoDefaultRoot   s    c         C   s   d S(   s   Internal function.N(    (   t   err(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _tkerror   s    i    c         C   s1   y t  |   }  Wn t k
 r# n Xt |   d S(   sB   Internal function. Calling it will raise the exception SystemExit.N(   t   intt
   ValueErrort
   SystemExit(   t   code(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _exit   s
    t   Variablec           B   sz   e  Z d  Z d Z d Z d d d d  Z d   Z d   Z d   Z	 d   Z
 d   Z e Z d   Z d	   Z d
   Z RS(   s   Class to define value holders for e.g. buttons.

    Subclasses StringVar, IntVar, DoubleVar, BooleanVar are specializations
    that constrain the type of the value returned from get().t    c         C   s   | s t  } n  | j   |  _ | j |  _ | r< | |  _ n d t t  |  _ t d 7a | d k	 ru |  j |  n: |  j j	 |  j j
 d d |  j   s |  j |  j  n  d S(   s.  Construct a variable

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

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        t   PY_VARi   t   infot   existsN(   R;   t   _rootR.   t   _tkt   _namet   reprt   _varnumR   t   sett
   getbooleant   callt   _default(   t   selft   masterR   t   name(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   __init__   s    	
'c         C   s   |  j  d k r d S|  j  j |  j  j d d |  j   rP |  j  j |  j  n  |  j d k	 r x! |  j D] } |  j  j |  qi Wd |  _ n  d S(   s   Unset the variable in Tcl.NRG   RH   (   RJ   R   RO   RP   RK   t   globalunsetvart   _tclCommandst   deletecommand(   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   __del__  s    'c         C   s   |  j  S(   s'   Return the name of the variable in Tcl.(   RK   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   __str__  s    c         C   s   |  j  j |  j |  S(   s   Set the variable to VALUE.(   RJ   t   globalsetvarRK   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRN     s    c         C   s   |  j  j |  j  S(   s   Return value of variable.(   RJ   t   globalgetvarRK   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   get  s    c         C   s   t  | d |  j  j } t t |   } y | j } Wn t k
 rJ n Xy | | j } Wn t k
 ro n X|  j	 j
 | |  |  j d k r g  |  _ n  |  j j |  |  j	 j d d |  j | |  | S(   s
  Define a trace callback for the variable.

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

        Return the name of the callback.
        t   tracet   variableN(   t   CallWrapperR   RI   t   __call__RL   t   idt   im_funcR   R7   RJ   t   createcommandRW   t   appendRP   RK   (   RR   t   modet   callbackt   ft   cbname(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   trace_variable  s     	c         C   s   |  j  j d d |  j | |  |  j  j |  d } xr |  j   D], \ } } |  j  j |  d | k rB PqB qB W|  j  j |  y |  j j |  Wn t k
 r n Xd S(   s   Delete the trace callback for a variable.

        MODE is one of "r", "w", "u" for read, write, undefine.
        CBNAME is the name of the callback returned from trace_variable or trace.
        R^   t   vdeletei    N(	   RJ   RP   RK   R*   t   trace_vinfoRX   RW   t   removeR@   (   RR   Rf   Ri   t   mt   ca(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   trace_vdelete0  s    c         C   s4   t  |  j j |  j j |  j j d d |  j    S(   s&   Return all trace callback information.R^   t   vinfo(   R   RJ   R*   RP   RK   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRl   A  s    c         C   s(   |  j  j | j  j k o' |  j | j k S(   s   Comparison for equality (==).

        Note: if the Variable's master matters to behavior
        also compare self._master == other._master
        (   t	   __class__R7   RK   (   RR   t   other(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   __eq__E  s    N(   R7   R8   R9   RQ   R   RW   RU   RY   RZ   RN   R]   Rj   R^   Rp   Rl   Rt   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRD      s   							t	   StringVarc           B   s/   e  Z d  Z d Z d d d d  Z d   Z RS(   s#   Value holder for strings variables.RE   c         C   s   t  j |  | | |  d S(   s6  Construct a string variable.

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

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(   RD   RU   (   RR   RS   R   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   Q  s    
c         C   s2   |  j  j |  j  } t | t  r( | St |  S(   s#   Return value of variable as string.(   RJ   R\   RK   R	   t
   basestringR   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]   ]  s    N(   R7   R8   R9   RQ   R   RU   R]   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRu   N  s   t   IntVarc           B   s8   e  Z d  Z d Z d d d d  Z d   Z d   Z RS(   s#   Value holder for integer variables.i    c         C   s   t  j |  | | |  d S(   s7  Construct an integer variable.

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

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(   RD   RU   (   RR   RS   R   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   g  s    
c         C   s.   t  | t  r t |  } n  t j |  |  S(   s;   Set the variable to value, converting booleans to integers.(   R	   t   boolR?   RD   RN   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRN   s  s    c         C   s   t  |  j j |  j   S(   s/   Return the value of the variable as an integer.(   t   getintRJ   R\   RK   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]   y  s    N(   R7   R8   R9   RQ   R   RU   RN   R]   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRw   d  s
   	t	   DoubleVarc           B   s/   e  Z d  Z d Z d d d d  Z d   Z RS(   s!   Value holder for float variables.g        c         C   s   t  j |  | | |  d S(   s6  Construct a float variable.

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

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(   RD   RU   (   RR   RS   R   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s    
c         C   s   t  |  j j |  j   S(   s,   Return the value of the variable as a float.(   t	   getdoubleRJ   R\   RK   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]     s    N(   R7   R8   R9   RQ   R   RU   R]   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRz   }  s   t
   BooleanVarc           B   s8   e  Z d  Z e Z d d d d  Z d   Z d   Z RS(   s#   Value holder for boolean variables.c         C   s   t  j |  | | |  d S(   s:  Construct a boolean variable.

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

        If NAME matches an existing variable and VALUE is omitted
        then the existing value is retained.
        N(   RD   RU   (   RR   RS   R   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s    
c         C   s"   |  j  j |  j |  j  j |   S(   s   Set the variable to VALUE.(   RJ   R[   RK   RO   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRN     s    c         C   s   |  j  j |  j  j |  j   S(   s+   Return the value of the variable as a bool.(   RJ   RO   R\   RK   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]     s    N(	   R7   R8   R9   t   FalseRQ   R   RU   RN   R]   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR|     s
   	c         C   s   t  j j |   d S(   s   Run the main loop of Tcl.N(   R;   R.   t   mainloop(   t   n(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR~     s    c         C   s   t  j j |   S(   s1   Convert true and false to integer values 1 and 0.(   R;   R.   RO   (   t   s(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRO     s    t   Miscc           B   sD  e  Z d  Z d Z d   Z d   Z d d  Z d   Z d   Z	 d   Z
 d d  Z e Z d d	  Z d d
  Z d d d  Z d d  Z e Z e Z d   Z d   Z e Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d d  Z d   Z  d   Z! d d  Z" d   Z# d   Z$ d   Z% d   Z& d    Z' d!   Z( d"   Z) d#   Z* d d$  Z+ d%   Z, d&   Z- d d'  Z. d(   Z/ d)   Z0 d*   Z1 d+   Z2 d,   Z3 d-   Z4 d d.  Z5 d d/  Z6 e6 Z7 d d0  Z8 d d1  Z9 d d2  Z: d3   Z; d4   Z< d5   Z= d6   Z> d d7  Z? d8   Z@ d9   ZA d:   ZB d;   ZC d<   ZD d=   ZE d d>  ZF d?   ZG d@   ZH dA   ZI dB   ZJ d dC  ZK dD   ZL dE   ZM dF   ZN dG   ZO dH   ZP dI   ZQ dJ   ZR dK   ZS dL   ZT dM   ZU dN   ZV dO   ZW dP   ZX dQ   ZY dR   ZZ dS   Z[ dT   Z\ dU   Z] dV   Z^ dW   Z_ dX   Z` dY   Za d dZ  Zb d[   Zc d\   Zd d]   Ze d^   Zf d_   Zg d`   Zh da   Zi db   Zj dc   Zk dd   Zl de   Zm d df  Zn dg dh  Zo d d d di  Zp d dj  Zq d d d dk  Zr dl   Zs d d d dm  Zt dn   Zu d do  Zv dp   Zw dq   Zx dr   Zy ds   Zz dt   Z{ e| du    Z} d dv  Z~ dw   Z e Z d dg dx  Z e Z dy   Z d Z d j e  Z d   Z d   Z d   Z d   Z d   Z d d  Z e Z d   Z e Z d   Z d   Z d   Z d   Z d g Z e d  Z e Z d   Z e Z d   Z d d d d d  Z e Z d   Z d   Z i  d  Z e Z d   Z e d  Z i  d  Z e Z d   Z e Z d d d  Z d   Z d   Z d   Z d d  Z d   Z d   Z RS(   sR   Internal class.

    Base class which defines methods common for interior widgets.c         C   sC   |  j  d k	 r? x! |  j  D] } |  j j |  q Wd |  _  n  d S(   sk   Internal function.

        Delete all Tcl commands created for
        this widget in the Tcl interpreter.N(   RW   R   R.   RX   (   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   destroy  s    c         C   s<   |  j  j |  y |  j j |  Wn t k
 r7 n Xd S(   sD   Internal function.

        Delete the Tcl command provided in NAME.N(   R.   RX   RW   Rm   R@   (   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRX     s
    c         C   s"   |  j  j |  j  j d d |   S(   s   Set Tcl internal variable, whether the look and feel
        should adhere to Motif.

        A parameter of 1 means adhere to Motif (e.g. no color
        change if mouse passes over slider).
        Returns the set value.RN   t   tk_strictMotif(   R.   RO   RP   (   RR   t   boolean(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    c         C   s   |  j  j d  d S(   sD   Change the color scheme to light brown as used in Tk 3.6 and before.t	   tk_bisqueN(   R.   RP   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    c         O   s.   |  j  j d t |  t | j     d S(   s  Set a new color scheme for all widget elements.

        A single color as argument will cause that all colors of Tk
        widget elements are derived from this.
        Alternatively several keyword parameters and its associated
        colors can be given. The following keywords are valid:
        activeBackground, foreground, selectColor,
        activeForeground, highlightBackground, selectBackground,
        background, highlightColor, selectForeground,
        disabledForeground, insertBackground, troughColor.t   tk_setPaletteN(   R   (   R.   RP   R   R!   (   RR   t   argst   kw(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    	c         G   s&   d d l  } | j d t d d d S(   s)   Do not use. Needed in Tk 3.6 and earlier.iNs4   tk_menuBar() does nothing and will be removed in 3.6t
   stackleveli   (   t   warningst   warnt   DeprecationWarning(   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   tk_menuBar  s    	RF   c         C   s   |  j  j d d |  d S(   s   Wait until the variable is modified.

        A parameter of type IntVar, StringVar, DoubleVar or
        BooleanVar must be given.t   tkwaitR_   N(   R.   RP   (   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wait_variable  s    c         C   s2   | d k r |  } n  |  j j d d | j  d S(   sQ   Wait until a WIDGET is destroyed.

        If no parameter is given self is used.R   t   windowN(   R   R.   RP   t   _w(   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wait_window  s    	c         C   s2   | d k r |  } n  |  j j d d | j  d S(   sx   Wait until the visibility of a WIDGET changes
        (e.g. it appears).

        If no parameter is given self is used.R   t
   visibilityN(   R   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wait_visibility  s    	t   1c         C   s   |  j  j | |  d S(   s   Set Tcl variable NAME to VALUE.N(   R.   t   setvar(   RR   RT   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    c         C   s   |  j  j |  S(   s"   Return value of Tcl variable NAME.(   R.   t   getvar(   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    c         C   s   |  j  j |  S(   sP   Return a boolean value for Tcl boolean values true and false given as parameter.(   R.   RO   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRO     s    c         C   s   |  j  j d |  j  d S(   s   Direct input focus to this widget.

        If the application currently does not have the focus
        this widget will get the focus if the application gets
        the focus through the window manager.t   focusN(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   focus_set  s    c         C   s   |  j  j d d |  j  d S(   st   Direct input focus to this widget even if the
        application does not have the focus. Use with
        caution!R   s   -forceN(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   focus_force  s    c         C   s6   |  j  j d  } | d k s% | r) d S|  j |  S(   s   Return the widget which has currently the focus in the
        application.

        Use focus_displayof to allow working with several
        displays. Return None if application does not have
        the focus.R   t   noneN(   R.   RP   R   t   _nametowidget(   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   focus_get  s     c         C   s?   |  j  j d d |  j  } | d k s. | r2 d S|  j |  S(   s   Return the widget which has currently the focus on the
        display where this widget is located.

        Return None if the application does not have the focus.R   s
   -displayofR   N(   R.   RP   R   R   R   (   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   focus_displayof&  s     c         C   s?   |  j  j d d |  j  } | d k s. | r2 d S|  j |  S(   sy   Return the widget which would have the focus if top level
        for this widget gets the focus from the window manager.R   s   -lastforR   N(   R.   RP   R   R   R   (   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   focus_lastfor.  s     c         C   s   |  j  j d  d S(   sX   The widget under mouse will get automatically focus. Can not
        be disabled easily.t   tk_focusFollowsMouseN(   R.   RP   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   4  s    c         C   s/   |  j  j d |  j  } | s" d S|  j |  S(   sn  Return 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.   RP   R   R   R   (   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   8  s    	 c         C   s/   |  j  j d |  j  } | s" d S|  j |  S(   sH   Return previous widget in the focus order. See tk_focusNext for details.t   tk_focusPrevN(   R.   RP   R   R   R   (   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   D  s     c            sj    s  j  j d |  d S     f d   }  j | _  j |    j  j d |   Sd S(   s  Call 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.t   afterc              s;   z      Wd  y  j    Wn t k
 r5 n XXd  S(   N(   RX   t   TclError(    (   R   t   funcRT   RR   (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   callitU  s    N(   R.   RP   R   R7   t	   _register(   RR   t   msR   R   R   (    (   R   R   RT   RR   s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   I  s    c         G   s   |  j  d | |  S(   s   Call FUNC once if the Tcl main loop has no event to
        process.

        Return an identifier to cancel the scheduling with
        after_cancel.t   idle(   R   (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   after_idle`  s    c         C   s   | s t  d   n  y? |  j j d d |  } |  j j |  d } |  j |  Wn t k
 rg n X|  j j d d |  d S(   s   Cancel scheduling of function identified with ID.

        Identifier returned by after or after_idle must be
        given as first parameter.
        s?   id must be a valid identifier returned from after or after_idleR   RG   i    t   cancelN(   R@   R.   RP   R*   RX   R   (   RR   Rb   t   datat   script(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   after_cancelg  s    i    c         C   s!   |  j  j d |  j |   d S(   s   Ring a display's bell.t   bellN(   R   (   R.   RP   t
   _displayof(   RR   t	   displayof(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   w  s    c         K   s   d | k rd |  j  d k rd y+ d | d <|  j j d |  j |   SWqd t k
 r` | d =qd Xn  |  j j d |  j |   S(   s  Retrieve data from the clipboard on window's display.

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

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

        This command is equivalent to:

        selection_get(CLIPBOARD)
        R   t   x11t   UTF8_STRINGt	   clipboardR]   (   R   R]   (   R   R]   (   t   _windowingsystemR.   RP   t   _optionsR   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   clipboard_get|  s    
!c         K   s=   d | k r |  j  | d <n  |  j j d |  j |   d S(   s   Clear the data in the Tk clipboard.

        A widget specified for the optional displayof keyword
        argument specifies the target display.R   R   t   clearN(   R   R   (   R   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   clipboard_clear  s     c         K   sG   d | k r |  j  | d <n  |  j j d |  j |  d | f  d S(   s   Append STRING to the Tk clipboard.

        A widget specified at the optional displayof keyword
        argument specifies the target display. The clipboard
        can be retrieved with selection_get.R   R   Re   s   --N(   R   Re   (   R   R.   RP   R   (   RR   t   stringR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   clipboard_append  s     	c         C   s2   |  j  j d d |  j  } | s% d S|  j |  S(   sO   Return widget which has currently the grab in this application
        or None.t   grabt   currentN(   R.   RP   R   R   R   (   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grab_current  s     c         C   s   |  j  j d d |  j  d S(   s.   Release grab for this widget if currently set.R   t   releaseN(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grab_release  s    c         C   s   |  j  j d d |  j  d S(   sw   Set grab for this widget.

        A grab directs all events to this and descendant
        widgets in the application.R   RN   N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grab_set  s    c         C   s    |  j  j d d d |  j  d S(   s   Set global grab for this widget.

        A global grab directs all events to this and
        descendant widgets on the display. Use with caution -
        other applications do not get events anymore.R   RN   s   -globalN(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grab_set_global  s    c         C   s4   |  j  j d d |  j  } | d k r0 d } n  | S(   sY   Return None, "local" or "global" if this widget has
        no, a local or a global grab.R   t   statusR   N(   R.   RP   R   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grab_status  s     	c         C   s    |  j  j d d | | |  d S(   s   Set a VALUE (second parameter) for an option
        PATTERN (first parameter).

        An optional third parameter gives the numeric priority
        (defaults to 80).t   optiont   addN(   R.   RP   (   RR   t   patternR   t   priority(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   option_add  s    c         C   s   |  j  j d d  d S(   sP   Clear the option database.

        It will be reloaded if option_add is called.R   R   N(   R.   RP   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   option_clear  s    c         C   s   |  j  j d d |  j | |  S(   s   Return the value for an option NAME for this widget
        with CLASSNAME.

        Values with higher priority override lower values.R   R]   (   R.   RP   R   (   RR   RT   t	   className(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   option_get  s    c         C   s   |  j  j d d | |  d S(   sv   Read file FILENAME into the option database.

        An optional second parameter gives the numeric
        priority.R   t   readfileN(   R.   RP   (   RR   t   fileNameR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   option_readfile  s    c         K   s=   d | k r |  j  | d <n  |  j j d |  j |   d S(   s   Clear the current X selection.R   t	   selectionR   N(   R   R   (   R   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_clear  s     c         K   s   d | k r |  j  | d <n  d | k r |  j d k r y+ d | d <|  j j d |  j |   SWq t k
 r| | d =q Xn  |  j j d |  j |   S(	   s  Return the contents of the current X selection.

        A keyword parameter selection specifies the name of
        the selection and defaults to PRIMARY.  A keyword
        parameter displayof specifies a widget on the display
        to use. A keyword parameter type specifies the form of data to be
        fetched, defaulting to STRING except on X11, where UTF8_STRING is tried
        before STRING.R   R   R   R   R   R]   (   R   R]   (   R   R]   (   R   R   R.   RP   R   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_get  s    	 
!c         K   s=   |  j  |  } |  j j d |  j |  |  j | f  d S(   s  Specify a function COMMAND to call if the X
        selection owned by this widget is queried by another
        application.

        This function must return the contents of the
        selection. The function will be called with the
        arguments OFFSET and LENGTH which allows the chunking
        of very long selections. The following keyword
        parameters can be provided:
        selection - name of the selection (default PRIMARY),
        type - type of the selection (e.g. STRING, FILE_NAME).R   t   handleN(   R   R   (   R   R.   RP   R   R   (   RR   t   commandR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_handle  s    	c         K   s+   |  j  j d |  j |  |  j f  d S(   s   Become owner of X selection.

        A keyword parameter selection specifies the name of
        the selection (default PRIMARY).R   t   ownN(   R   R   (   R.   RP   R   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_own  s    	c         K   sR   d | k r |  j  | d <n  |  j j d |  j |   } | sE d S|  j |  S(   s   Return owner of X selection.

        The following keyword parameter can
        be provided:
        selection - name of the selection (default PRIMARY),
        type - type of the selection (e.g. STRING, FILE_NAME).R   R   R   (   R   R   N(   R   R.   RP   R   R   R   (   RR   R   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_own_get  s      c         G   s   |  j  j d | | f |  S(   sD   Send Tcl command CMD to different interpreter INTERP to be executed.t   send(   R.   RP   (   RR   t   interpt   cmdR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    c         C   s   |  j  j d |  j |  d S(   s(   Lower this widget in the stacking order.t   lowerN(   R.   RP   R   (   RR   t	   belowThis(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    c         C   s   |  j  j d |  j |  d S(   s(   Raise this widget in the stacking order.t   raiseN(   R.   RP   R   (   RR   t	   aboveThis(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   tkraise  s    c         C   s   |  j  j d d |  j |  S(   s   Useless. Not implemented in Tk.R.   t
   colormodel(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    c         C   s0   d |  j  |  | f } t |  j j |   S(   s*   Return integer which represents atom NAME.t   winfot   atom(   R   R   (   R   Ry   R.   RP   (   RR   RT   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   winfo_atom  s    c         C   s*   d |  j  |  | f } |  j j |  S(   s'   Return name of atom with identifier ID.R   t   atomname(   R   R   (   R   R.   RP   (   RR   Rb   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_atomname  s    c         C   s   t  |  j j d d |  j   S(   s7   Return number of cells in the colormap for this widget.R   t   cells(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_cells$  s    c         C   sj   g  } x] |  j  j |  j  j d d |  j   D]4 } y | j |  j |   Wq. t k
 ra q. Xq. W| S(   s?   Return a list of all widgets which are children of this widget.R   t   children(   R.   R*   RP   R   Re   R   t   KeyError(   RR   t   resultt   child(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_children(  s    "c         C   s   |  j  j d d |  j  S(   s(   Return window class name of this widget.R   t   class(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_class5  s    c         C   s%   |  j  j |  j  j d d |  j   S(   s?   Return true if at the last color request the colormap was full.R   t   colormapfull(   R.   RO   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_colormapfull8  s    	c         C   sF   d |  j  |  | | f } |  j j |  } | s9 d S|  j |  S(   s@   Return the widget which is at the root coordinates ROOTX, ROOTY.R   t
   containing(   R   R   N(   R   R.   RP   R   R   (   RR   t   rootXt   rootYR   R   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_containing<  s
     c         C   s   t  |  j j d d |  j   S(   s$   Return the number of bits per pixel.R   t   depth(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_depthC  s    c         C   s   t  |  j j d d |  j   S(   s"   Return true if this widget exists.R   RH   (   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_existsF  s    c         C   s"   t  |  j j d d |  j |   S(   sW   Return the number of pixels for the given distance NUMBER
        (e.g. "3c") as float.R   t   fpixels(   R{   R.   RP   R   (   RR   t   number(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_fpixelsJ  s    c         C   s   |  j  j d d |  j  S(   sF   Return geometry string for this widget in the form "widthxheight+X+Y".R   t   geometry(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_geometryO  s    c         C   s   t  |  j j d d |  j   S(   s   Return height of this widget.R   t   height(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_heightR  s    c         C   s"   t  |  j j d d |  j  d  S(   s%   Return identifier ID for this widget.R   Rb   i    (   R?   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_idV  s    c         C   s/   d |  j  |  } |  j j |  j j |   S(   s9   Return the name of all Tcl interpreters for this display.R   t   interps(   R   R  (   R   R.   R*   RP   (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_interpsY  s    c         C   s   t  |  j j d d |  j   S(   s%   Return true if this widget is mapped.R   t   ismapped(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_ismapped]  s    c         C   s   |  j  j d d |  j  S(   s/   Return the window manager name for this widget.R   t   manager(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_managera  s    c         C   s   |  j  j d d |  j  S(   s   Return the name of this widget.R   RT   (   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   winfo_named  s    c         C   s   |  j  j d d |  j  S(   s-   Return the name of the parent of this widget.R   t   parent(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_parentg  s    c         C   s*   d |  j  |  | f } |  j j |  S(   s.   Return the pathname of the widget given by ID.R   t   pathname(   R   R
  (   R   R.   RP   (   RR   Rb   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_pathnamej  s    c         C   s"   t  |  j j d d |  j |   S(   s'   Rounded integer value of winfo_fpixels.R   t   pixels(   Ry   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_pixelso  s    c         C   s   t  |  j j d d |  j   S(   s:   Return the x coordinate of the pointer on the root window.R   t   pointerx(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_pointerxs  s    c         C   s"   |  j  |  j j d d |  j   S(   sH   Return a tuple of x and y coordinates of the pointer on the root window.R   t	   pointerxy(   t   _getintsR.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_pointerxyw  s    c         C   s   t  |  j j d d |  j   S(   s:   Return the y coordinate of the pointer on the root window.R   t   pointery(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_pointery{  s    c         C   s   t  |  j j d d |  j   S(   s'   Return requested height of this widget.R   t	   reqheight(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_reqheight  s    c         C   s   t  |  j j d d |  j   S(   s&   Return requested width of this widget.R   t   reqwidth(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_reqwidth  s    c         C   s%   |  j  |  j j d d |  j |   S(   sU   Return tuple of decimal values for red, green, blue for
        COLOR in this widget.R   t   rgb(   R  R.   RP   R   (   RR   t   color(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   winfo_rgb  s    c         C   s   t  |  j j d d |  j   S(   sS   Return x coordinate of upper left corner of this widget on the
        root window.R   t   rootx(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_rootx  s    c         C   s   t  |  j j d d |  j   S(   sS   Return y coordinate of upper left corner of this widget on the
        root window.R   t   rooty(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_rooty  s    c         C   s   |  j  j d d |  j  S(   s&   Return the screen name of this widget.R   t   screen(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_screen  s    c         C   s   t  |  j j d d |  j   S(   sT   Return the number of the cells in the colormap of the screen
        of this widget.R   t   screencells(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_screencells  s    c         C   s   t  |  j j d d |  j   S(   s\   Return the number of bits per pixel of the root window of the
        screen of this widget.R   t   screendepth(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_screendepth  s    c         C   s   t  |  j j d d |  j   S(   sX   Return the number of pixels of the height of the screen of this widget
        in pixel.R   t   screenheight(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_screenheight  s    c         C   s   t  |  j j d d |  j   S(   sU   Return the number of pixels of the height of the screen of
        this widget in mm.R   t   screenmmheight(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_screenmmheight  s    c         C   s   t  |  j j d d |  j   S(   sT   Return the number of pixels of the width of the screen of
        this widget in mm.R   t   screenmmwidth(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_screenmmwidth  s    c         C   s   |  j  j d d |  j  S(   s   Return one of the strings directcolor, grayscale, pseudocolor,
        staticcolor, staticgray, or truecolor for the default
        colormodel of this screen.R   t   screenvisual(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_screenvisual  s    c         C   s   t  |  j j d d |  j   S(   sW   Return the number of pixels of the width of the screen of
        this widget in pixel.R   t   screenwidth(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_screenwidth  s    c         C   s   |  j  j d d |  j  S(   sx   Return information of the X-Server of the screen of this widget in
        the form "XmajorRminor vendor vendorVersion".R   t   server(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_server  s    c         C   s"   |  j  |  j j d d |  j   S(   s*   Return the toplevel widget of this widget.R   t   toplevel(   R   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_toplevel  s    c         C   s   t  |  j j d d |  j   S(   sB   Return true if the widget and all its higher ancestors are mapped.R   t   viewable(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_viewable  s    c         C   s   |  j  j d d |  j  S(   s   Return one of the strings directcolor, grayscale, pseudocolor,
        staticcolor, staticgray, or truecolor for the
        colormodel of this widget.R   t   visual(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_visual  s    c         C   s   |  j  j d d |  j  S(   s7   Return the X identifier for the visual for this widget.R   t   visualid(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_visualid  s    c         C   sp   |  j  j |  j  j d d |  j | r* d p- d   } t |  t k r` |  j  j |  g } n  t |  j |  S(   s   Return a list of all visuals available for the screen
        of this widget.

        Each item in the list consists of a visual name (see winfo_visual), a
        depth and if INCLUDEIDS=1 is given also the X identifier.R   t   visualsavailablet
   includeidsN(	   R.   t   splitRP   R   R   R   R   R   t   _Misc__winfo_parseitem(   RR   R;  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_visualsavailable  s    	c         C   s"   | d  t  t |  j | d   S(   s   Internal function.i   (   R   R   t   _Misc__winfo_getint(   RR   R1   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   __winfo_parseitem  s    c         C   s   t  | d  S(   s   Internal function.i    (   R?   (   RR   t   x(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   __winfo_getint  s    c         C   s   t  |  j j d d |  j   S(   s   Return the height of the virtual root window associated with this
        widget in pixels. If there is no virtual root window return the
        height of the screen.R   t   vrootheight(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_vrootheight  s    c         C   s   t  |  j j d d |  j   S(   s   Return the width of the virtual root window associated with this
        widget in pixel. If there is no virtual root window return the
        width of the screen.R   t
   vrootwidth(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_vrootwidth  s    c         C   s   t  |  j j d d |  j   S(   si   Return the x offset of the virtual root relative to the root
        window of the screen of this widget.R   t   vrootx(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_vrootx  s    c         C   s   t  |  j j d d |  j   S(   si   Return the y offset of the virtual root relative to the root
        window of the screen of this widget.R   t   vrooty(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_vrooty  s    c         C   s   t  |  j j d d |  j   S(   s    Return the width of this widget.R   t   width(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_width  s    c         C   s   t  |  j j d d |  j   S(   sV   Return the x coordinate of the upper left corner of this widget
        in the parent.R   RA  (   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_x  s    c         C   s   t  |  j j d d |  j   S(   sV   Return the y coordinate of the upper left corner of this widget
        in the parent.R   t   y(   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   winfo_y  s    c         C   s   |  j  j d  d S(   sE   Enter event loop until all pending events have been processed by Tcl.R   N(   R.   RP   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    c         C   s   |  j  j d d  d S(   s   Enter event loop until all idle callbacks have been called. This
        will update the display of windows but not process events caused by
        the user.R   t	   idletasksN(   R.   RP   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   update_idletasks	  s    c         C   sK   | d k r. |  j j |  j j d |  j   S|  j j d |  j |  d S(   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).t   bindtagsN(   R   R.   R*   RP   R   (   RR   t   tagList(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRR    s    	i   c         C   s   t  |  t k r/ |  j j | | | f  n | r |  j | |  j |  } d | r\ d p_ d | |  j f } |  j j | | | f  | S| r |  j j | | f  S|  j j |  j j |   Sd S(   s   Internal function.s"   %sif {"[%s %s]" == "break"} break
t   +RE   N(   R   R   R.   RP   R   t   _substitutet   _subst_format_strR*   (   RR   t   whatt   sequenceR   R   t   needcleanupt   funcidR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _bind  s    	c         C   s   |  j  d |  j f | | |  S(   sO  Bind to this widget at event SEQUENCE a call to function FUNC.

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

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

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

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

        If FUNC or SEQUENCE is omitted the bound function or list
        of bound events are returned.t   bind(   R[  R   (   RR   RX  R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR\  +  s    'c         C   s6   |  j  j d |  j | d  | r2 |  j |  n  d S(   sW   Unbind for this widget for event SEQUENCE  the
        function identified with FUNCID.R\  RE   N(   R.   RP   R   RX   (   RR   RX  RZ  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   unbindS  s    c         C   s   |  j  d | | | d  S(   s  Bind to all widgets at an event SEQUENCE a call to function FUNC.
        An additional boolean parameter ADD specifies whether FUNC will
        be called additionally to the other bound function or whether
        it will replace the previous function. See bind for the return value.R\  t   alli    (   R\  R^  (   R[  (   RR   RX  R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   bind_allY  s    c         C   s   |  j  j d d | d  d S(   s8   Unbind for all widgets for event SEQUENCE all functions.R\  R^  RE   N(   R.   RP   (   RR   RX  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   unbind_all_  s    c         C   s   |  j  d | f | | | d  S(   s=  Bind to widgets with bindtag CLASSNAME at event
        SEQUENCE a call of function FUNC. An additional
        boolean parameter ADD specifies whether FUNC will be
        called additionally to the other bound function or
        whether it will replace the previous function. See bind for
        the return value.R\  i    (   R[  (   RR   R   RX  R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   bind_classb  s    	c         C   s   |  j  j d | | d  d S(   sW   Unbind for all widgets with bindtag CLASSNAME for event SEQUENCE
        all functions.R\  RE   N(   R.   RP   (   RR   R   RX  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   unbind_classl  s    c         C   s   |  j  j |  d S(   s   Call the mainloop of Tk.N(   R.   R~   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR~   p  s    c         C   s   |  j  j   d S(   s8   Quit the Tcl interpreter. All widgets will be destroyed.N(   R.   t   quit(   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRc  s  s    c         C   s)   | r% t  t t |  j j |    Sd S(   s   Internal function.N(   R   R   Ry   R.   R*   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  v  s    c         C   s)   | r% t  t t |  j j |    Sd S(   s   Internal function.N(   R   R   R{   R.   R*   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _getdoublesz  s    c         C   s   | r |  j  j |  Sd S(   s   Internal function.N(   R.   RO   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _getboolean~  s    c         C   s-   | r d | f S| d k r) d |  j f Sd S(   s   Internal function.s
   -displayofN(    (   R   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s
    
c         C   sL   y |  j    j SWn4 t k
 rG |  j j d d  } |  j    _ | SXd S(   s   Internal function.R.   t   windowingsystemN(   RI   t   _windowingsystem_cachedR   R.   RP   (   RR   t   ws(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s
    "c         C   sE  | r t  | | f  } n t  |  } d } x| j   D]\ } } | d k	 r: | d d k ro | d  } n  t | d  r |  j |  } n t | t t f  r&g  } xx | D]^ } t | t t	 t
 f  s Pq t | t	 t
 f  r | j d |  q | j t |   q Wd j |  } n  | d | | f } q: q: W| S(	   s   Internal function.it   _Ra   s   %dR   R)   (    N(   R(   R!   R   t   hasattrR   R	   R   R
   Rv   R?   t   longRe   R   R   (   RR   R#   R   R   R&   R'   t   nvR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s*     c         C   sj   t  |  j d  } |  } | d s> | j   } | d } n  x% | D] } | sU Pn  | j | } qE W| S(   sP   Return the Tkinter instance of a widget identified by
        its Tcl name NAME.t   .i    i   (   R   R<  RI   R   (   RR   RT   t   wR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   nametowidget  s    
c         C   s   t  | | |   j } t t |   } y | j } Wn t k
 rG n Xy | | j } Wn t k
 rl n X|  j j | |  | r |  j	 d k r g  |  _	 n  |  j	 j |  n  | S(   s   Return a newly created Tcl function. If this
        function is called, the Python function FUNC will
        be executed. An optional function SUBST can
        be given which will be executed before FUNC.N(   R`   Ra   RL   Rb   Rc   R   R7   R.   Rd   RW   R   Re   (   RR   R   t   substRY  Rh   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s     c         C   s#   |  } x | j  r | j  } q	 W| S(   s   Internal function.(   RS   (   RR   Rn  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRI     s     s   %#s   %bs   %fs   %hs   %ks   %ss   %ts   %ws   %xs   %ys   %As   %Es   %Ks   %Ns   %Ws   %Ts   %Xs   %Ys   %DR   c         G   s	  t  |  t  |  j  k r | S|  j j } t } d   } | \ } } } } }	 }
 } } } } } } } } } } } } } t   } | |  | _ | |  | _ y | |  | _ Wn t	 k
 r n X| |  | _
 | |	  | _ | |
  | _ | |  | _ | |  | _ | |  | _ | |  | _ | | _ y | |  | _ Wn t	 k
 r_n X| | _ | |  | _ | | _ y |  j |  | _ Wn t k
 r| | _ n X| |  | _ | |  | _ y | |  | _ Wn t k
 rd | _ n X| f S(   s   Internal function.c         S   s'   y t  |   SWn t k
 r" |  SXd S(   s?   Tk changed behavior in 8.4.2, returning "??" rather more often.N(   R?   R@   (   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   getint_event  s    i    (   R   t   _subst_formatR.   RO   R?   R6   t   serialt   numR   R   R   t   keycodet   statet   timeRK  RA  RN  t   chart
   send_eventt   keysymt
   keysym_numR   R   t   widgetR   t   x_roott   y_roott   deltaR@   (   RR   R   RO   Ry   Rq  t   nsignt   bRh   t   hR&   R   R1   Rn  RA  RN  t   At   Et   Kt   Nt   Wt   Tt   Xt   Yt   Dt   e(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU    sN     	?	  	  		c         C   sL   d d l  } | j | j | j } } } |  j   } | j | | |  d S(   s   Internal function.iN(   t   syst   exc_typet	   exc_valuet   exc_tracebackRI   t   report_callback_exception(   RR   R  t   exct   valt   tbt   root(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _report_exception  s    c         G   sj   i  } x] |  j  j |  j  j |    D]= } |  j  j |  } | d d f | d | | d d <q% W| S(   s;   Call Tcl configure command and return the result as a dict.i    i   (   R.   R*   RP   (   RR   R   R#   RA  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _getconfigure  s
    %)c         G   s5   |  j  j |  j  j |    } | d d f | d S(   Ni    i   (   R.   R*   RP   (   RR   R   RA  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _getconfigure1$  s    c         C   s   | r t  | | f  } n | r0 t  |  } n  | d k rX |  j t |  j | f   St |  t k r |  j t |  j | d | f   S|  j j	 t |  j | f  |  j
 |   d S(   s   Internal function.R)   N(   R(   R   R  R   R   R   R   R  R.   RP   R   (   RR   R   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   _configure(  s    #c         K   s   |  j  d | |  S(   s   Configure resources of a widget.

        The values for resources are specified as keyword
        arguments. To get an overview about
        the allowed keyword arguments call the method keys.
        t	   configure(   R  (   RR   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  4  s    c         C   s   |  j  j |  j d d |  S(   s4   Return the resource value for a KEY given as string.t   cgetR)   (   R.   RP   R   (   RR   R4   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  =  s    c         C   s   |  j  i | | 6 d  S(   N(   R  (   RR   R4   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   __setitem__A  s    c         C   s   t  d   d  S(   Ns)   Tkinter objects don't support 'in' tests.(   R    (   RR   R4   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   __contains__C  s    c         C   sI   |  j  j } g  | |  j  j |  j d   D] } | |  d d ^ q+ S(   s3   Return a list of all resource names of this widget.R  i    i   (   R.   R*   RP   R   (   RR   R*   RA  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   keysE  s    c         C   s   |  j  S(   s+   Return the window path name of this widget.(   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRZ   J  s    t   _noarg_c         C   sQ   | t  j k r1 |  j |  j j d d |  j   S|  j j d d |  j |  d S(   s  Set 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.
        t   packt	   propagateN(   R   R  Re  R.   RP   R   (   RR   t   flag(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   pack_propagateO  s    c         C   s1   t  |  j |  j j |  j j d d |  j    S(   sH   Return a list of all slaves of this widget
        in its packing order.R  t   slaves(   R   R   R.   R*   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   pack_slaves\  s    		c         C   s1   t  |  j |  j j |  j j d d |  j    S(   sH   Return a list of all slaves of this widget
        in its packing order.t   placeR  (   R   R   R.   R*   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   place_slavesd  s    			c         C   s   d d |  j  f } | d k	 r= | d k	 r= | | | f } n  | d k	 rh | d k	 rh | | | f } n  |  j |  j j |    p d S(   s  Return a tuple of integer coordinates for the bounding
        box of this widget controlled by the geometry manager grid.

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

        The returned integers specify the offset of the upper left
        corner in the master widget and the width and height.
        t   gridt   bboxN(   R   R   R  R.   RP   (   RR   t   columnt   rowt   col2t   row2R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   grid_bboxl  s    c         C   sm   t  | t t j f  ri y: t |  } | s1 d  Sd | k rG t |  St |  SWqi t k
 re qi Xn  | S(   NRm  (   R	   R   t   _tkintert   Tcl_ObjR   R{   Ry   R@   (   RR   R   t   svalue(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _gridconvvalue  s    
c         C   s   t  |  t k r_ | r_ | d d k r6 | d  } n  | d  d k rS d | } n  | f } n |  j | |  } | s t |  j |  j j d | |  j |  d |  j S|  j j d | |  j | f |  } t |  d k r |  j |  Sd S(   s   Internal function.iRi  i   R)   R  R0   N(	   R   R   R   R5   R.   RP   R   R  R   (   RR   R   t   indexR#   R   t   optionsR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _grid_configure  s"    
	
c         K   s   |  j  d | | |  S(   s   Configure column INDEX of a grid.

        Valid resources are minsize (minimum size of the column),
        weight (how much does additional space propagate to this column)
        and pad (how much space to let additionally).t   columnconfigure(   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grid_columnconfigure  s    c         C   s.   |  j  |  j j d d |  j | |   p- d S(   s   Return a tuple of column and row which identify the cell
        at which the pixel at position X and Y inside the master
        widget is located.R  t   locationN(   R  R.   RP   R   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grid_location  s    	c         C   sQ   | t  j k r1 |  j |  j j d d |  j   S|  j j d d |  j |  d S(   s  Set or get the status for propagation of geometry information.

        A boolean argument specifies whether the geometry information
        of the slaves will determine the size of this widget. If no argument
        is given, the current setting will be returned.
        R  R  N(   R   R  Re  R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grid_propagate  s    c         K   s   |  j  d | | |  S(   s   Configure row INDEX of a grid.

        Valid resources are minsize (minimum size of the row),
        weight (how much does additional space propagate to this row)
        and pad (how much space to let additionally).t   rowconfigure(   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grid_rowconfigure  s    c         C   s(   |  j  |  j j d d |  j   p' d S(   s<   Return a tuple of the number of column and rows in the grid.R  t   sizeN(   R  R.   RP   R   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   grid_size  s    c         C   s|   d } | d k	 r% | d | f } n  | d k	 rD | d | f } n  t |  j |  j j |  j j d d |  j f |    S(   sH   Return a list of all slaves of this widget
        in its packing order.s   -rows   -columnR  R  (    N(   R   R   R   R.   R*   RP   R   (   RR   R  R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grid_slaves  s    	c         G   s'   d d | f | } |  j  j |  d S(   s   Bind a virtual event VIRTUAL (of the form <<Name>>)
        to an event SEQUENCE such that the virtual event is triggered
        whenever SEQUENCE occurs.t   eventR   N(   R.   RP   (   RR   t   virtualt	   sequencesR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   event_add  s    c         G   s'   d d | f | } |  j  j |  d S(   s-   Unbind a virtual event VIRTUAL from SEQUENCE.R  t   deleteN(   R.   RP   (   RR   R  R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   event_delete  s    c         K   s`   d d |  j  | f } x4 | j   D]& \ } } | d | t |  f } q" W|  j j |  d S(   s   Generate an event SEQUENCE. Additional
        keyword arguments specify parameter of the event
        (e.g. x, y, rootx, rooty).R  t   generates   -%sN(   R   R!   R   R.   RP   (   RR   RX  R   R   R&   R'   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   event_generate  s    c         C   s"   |  j  j |  j  j d d |   S(   su   Return a list of all virtual events or the information
        about the SEQUENCE bound to the virtual event VIRTUAL.R  RG   (   R.   R*   RP   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   event_info  s    	c         C   s   |  j  j |  j  j d d   S(   s*   Return a list of all existing image names.t   imaget   names(   R.   R*   RP   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   image_names  s    c         C   s   |  j  j |  j  j d d   S(   s?   Return a list of all available image types (e.g. photo bitmap).R  t   types(   R.   R*   RP   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   image_types  s    N(   s   %#s   %bs   %fs   %hs   %ks   %ss   %ts   %ws   %xs   %ys   %As   %Es   %Ks   %Ns   %Ws   %Ts   %Xs   %Ys   %D(   R7   R8   R9   R   RW   R   RX   R   R   R   R   R   t   waitvarR   R   R   R   R?   Ry   t   floatR{   RO   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   t   liftR   R   R   R   R   R   R   R   R   R   R   R   R   R   R  R  R  R  R	  R  R  R  R  R  R  R  R  R  R  R!  R#  R%  R'  R)  R+  R-  R/  R1  R3  R5  R7  R9  R>  R=  R?  RD  RF  RH  RJ  RL  RM  RO  R   RQ  RR  R[  R\  R]  R_  R`  Ra  Rb  R~   Rc  R  Rd  Re  R   t   propertyR   R   Ro  R   R   t   registerRI   Rr  R   RV  RU  R  R  R  R  R  t   configR  t   __getitem__R  R  R  RZ   R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     sP  	
	
								
										
																																																												(	
									  	9																					R`   c           B   s    e  Z d  Z d   Z d   Z RS(   sw   Internal class. Stores function to call when some user
    defined Tcl function is called e.g. after an event occurred.c         C   s   | |  _  | |  _ | |  _ d S(   s(   Store FUNC, SUBST and WIDGET as members.N(   R   Rp  R|  (   RR   R   Rp  R|  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s    		c         G   sb   y, |  j  r |  j  |   } n  |  j |   SWn/ t k
 rJ } t |  n |  j j   n Xd S(   s3   Apply first function SUBST to arguments, than FUNC.N(   Rp  R   RA   R|  R  (   RR   R   R%   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRa   	  s    	(   R7   R8   R9   RU   Ra   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR`     s   	t   XViewc           B   s)   e  Z d  Z d   Z d   Z d   Z RS(   sX   Mix-in class for querying and changing the horizontal position
    of a widget's window.c         G   s2   |  j  j |  j d |  } | s. |  j |  Sd S(   s5   Query and change the horizontal position of the view.t   xviewN(   R.   RP   R   Rd  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s    |  j  j |  j d d |  d S(   ss   Adjusts the view in the window so that FRACTION of the
        total width of the canvas is off-screen to the left.R  t   movetoN(   R.   RP   R   (   RR   t   fraction(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   xview_moveto  s    c         C   s#   |  j  j |  j d d | |  d S(   s\   Shift the x-view according to NUMBER which is measured in "units"
        or "pages" (WHAT).R  t   scrollN(   R.   RP   R   (   RR   R   RW  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   xview_scroll$  s    (   R7   R8   R9   R  R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s   		t   YViewc           B   s)   e  Z d  Z d   Z d   Z d   Z RS(   sV   Mix-in class for querying and changing the vertical position
    of a widget's window.c         G   s2   |  j  j |  j d |  } | s. |  j |  Sd S(   s3   Query and change the vertical position of the view.t   yviewN(   R.   RP   R   Rd  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  .  s    c         C   s    |  j  j |  j d d |  d S(   ss   Adjusts the view in the window so that FRACTION of the
        total height of the canvas is off-screen to the top.R  R  N(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   yview_moveto4  s    c         C   s#   |  j  j |  j d d | |  d S(   s\   Shift the y-view according to NUMBER which is measured in
        "units" or "pages" (WHAT).R  R  N(   R.   RP   R   (   RR   R   RW  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   yview_scroll9  s    (   R7   R8   R9   R  R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  *  s   		t   Wmc           B   s  e  Z d  Z d d d d d  Z e Z d   Z e Z d d  Z e Z	 d   Z
 e
 Z d d  Z e Z d   Z e Z d d  Z e Z d   Z e Z d d	  Z e Z d d d d d
  Z e Z d d  Z e Z d d d  Z e Z d   Z e Z d d  Z e Z d d  Z  e  Z! d d d  Z" e" Z# d d  Z$ e$ Z% d d d  Z& e& Z' d d d  Z( e( Z) d d  Z* e* Z+ d d  Z, e, Z- d d d  Z. e. Z/ d d d  Z0 e0 Z1 d d  Z2 e2 Z3 d d  Z4 e4 Z5 d d  Z6 e6 Z7 d d  Z8 e8 Z9 d   Z: e: Z; RS(   sA   Provides functions for the communication with the window manager.c      	   C   s.   |  j  |  j j d d |  j | | | |   S(   s   Instruct the window manager to set the aspect ratio (width/height)
        of this widget to be between MINNUMER/MINDENOM and MAXNUMER/MAXDENOM. Return a tuple
        of the actual values if no argument is given.t   wmt   aspect(   R  R.   RP   R   (   RR   t   minNumert   minDenomt   maxNumert   maxDenom(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   wm_aspectB  s    c         G   s&   d d |  j  f | } |  j j |  S(   s  This subcommand returns or sets platform specific attributes

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

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

        On Macintosh, XXXXX

        On Unix, there are currently no special attribute values.
        R  t
   attributes(   R   R.   RP   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_attributesN  s    c         C   s   |  j  j d d |  j |  S(   sV   Store NAME in WM_CLIENT_MACHINE property of this widget. Return
        current value.R  t   client(   R.   RP   R   (   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   wm_clientd  s    c         G   sy   t  |  d k r | f } n  d d |  j f | } | rM |  j j |  n( t |  j |  j j |  j j |    Sd S(   s   Store list of window names (WLIST) into WM_COLORMAPWINDOWS property
        of this widget. This list contains windows whose colormaps differ from their
        parents. Return current list of widgets if WLIST is empty.i   R  t   colormapwindowsN(   R   R   R.   RP   R   R   R*   (   RR   t   wlistR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_colormapwindowsi  s    c         C   s   |  j  j d d |  j |  S(   s   Store VALUE in WM_COMMAND property. It is the command
        which shall be used to invoke the application. Return current
        command if VALUE is None.R  R   (   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   wm_commandu  s    c         C   s   |  j  j d d |  j  S(   s   Deiconify this widget. If it was never mapped it will not be mapped.
        On Windows it will raise this widget and give it the focus.R  t	   deiconify(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_deiconify{  s    c         C   s   |  j  j d d |  j |  S(   s   Set focus model to MODEL. "active" means that this widget will claim
        the focus itself, "passive" means that the window manager shall give
        the focus. Return current focus model if MODEL is None.R  t
   focusmodel(   R.   RP   R   (   RR   t   model(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_focusmodel  s    c         C   s   |  j  j d d |  j  S(   sA   Return identifier for decorative frame of this widget if present.R  t   frame(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_frame  s    c         C   s   |  j  j d d |  j |  S(   si   Set geometry to NEWGEOMETRY of the form =widthxheight+x+y. Return
        current value if None is given.R  R   (   R.   RP   R   (   RR   t   newGeometry(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_geometry  s    c      	   C   s.   |  j  |  j j d d |  j | | | |   S(   s  Instruct the window manager that this widget shall only be
        resized on grid boundaries. WIDTHINC and HEIGHTINC are the width and
        height of a grid unit in pixels. BASEWIDTH and BASEHEIGHT are the
        number of grid units requested in Tk_GeometryRequest.R  R  (   R  R.   RP   R   (   RR   t	   baseWidtht
   baseHeightt   widthInct	   heightInc(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_grid  s    c         C   s   |  j  j d d |  j |  S(   s~   Set the group leader widgets for related widgets to PATHNAME. Return
        the group leader of this widget if None is given.R  t   group(   R.   RP   R   (   RR   t   pathName(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_group  s    c         C   sE   | r% |  j  j d d |  j d |  S|  j  j d d |  j |  Sd S(   s  Set bitmap for the iconified widget to BITMAP. Return
        the bitmap if None is given.

        Under Windows, the DEFAULT parameter can be used to set the icon
        for the widget and any descendents that don't have an icon set
        explicitly.  DEFAULT can be the relative path to a .ico file
        (example: root.iconbitmap(default='myicon.ico') ).  See Tk
        documentation for more information.R  t
   iconbitmaps   -defaultN(   R.   RP   R   (   RR   t   bitmapt   default(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_iconbitmap  s    	c         C   s   |  j  j d d |  j  S(   s   Display widget as icon.R  t   iconify(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   wm_iconify  s    c         C   s   |  j  j d d |  j |  S(   sV   Set mask for the icon bitmap of this widget. Return the
        mask if None is given.R  t   iconmask(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_iconmask  s    c         C   s   |  j  j d d |  j |  S(   sS   Set the name of the icon for this widget. Return the name if
        None is given.R  t   iconname(   R.   RP   R   (   RR   t   newName(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_iconname  s    c         C   s(   |  j  |  j j d d |  j | |   S(   s   Set the position of the icon of this widget to X and Y. Return
        a tuple of the current values of X and X if None is given.R  t   iconposition(   R  R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_iconposition  s    c         C   s   |  j  j d d |  j |  S(   sg   Set widget PATHNAME to be displayed instead of icon. Return the current
        value if None is given.R  t
   iconwindow(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_iconwindow  s    c         C   s(   |  j  |  j j d d |  j | |   S(   s   Set max WIDTH and HEIGHT for this widget. If the window is gridded
        the values are given in grid units. Return the current values if None
        is given.R  t   maxsize(   R  R.   RP   R   (   RR   RK  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   wm_maxsize  s    c         C   s(   |  j  |  j j d d |  j | |   S(   s   Set min WIDTH and HEIGHT for this widget. If the window is gridded
        the values are given in grid units. Return the current values if None
        is given.R  t   minsize(   R  R.   RP   R   (   RR   RK  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   wm_minsize  s    c         C   s%   |  j  |  j j d d |  j |   S(   s   Instruct the window manager to ignore this widget
        if BOOLEAN is given with 1. Return the current value if None
        is given.R  t   overrideredirect(   Re  R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_overrideredirect  s    c         C   s   |  j  j d d |  j |  S(   s   Instruct the window manager that the position of this widget shall
        be defined by the user if WHO is "user", and by its own policy if WHO is
        "program".R  t   positionfrom(   R.   RP   R   (   RR   t   who(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_positionfrom  s    c         C   sF   t  | d  r! |  j |  } n | } |  j j d d |  j | |  S(   s   Bind function FUNC to command NAME for this widget.
        Return the function bound to NAME if None is given. NAME could be
        e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW".Ra   R  t   protocol(   Rj  R   R.   RP   R   (   RR   RT   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_protocol  s
    	c         C   s   |  j  j d d |  j | |  S(   sy   Instruct the window manager whether this width can be resized
        in WIDTH or HEIGHT. Both values are boolean values.R  t	   resizable(   R.   RP   R   (   RR   RK  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_resizable  s    c         C   s   |  j  j d d |  j |  S(   s   Instruct the window manager that the size of this widget shall
        be defined by the user if WHO is "user", and by its own policy if WHO is
        "program".R  t   sizefrom(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_sizefrom  s    c         C   s   |  j  j d d |  j |  S(   s   Query or set the state of this widget as one of normal, icon,
        iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only).R  Rv  (   R.   RP   R   (   RR   t   newstate(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_state  s    c         C   s   |  j  j d d |  j |  S(   s   Set the title of this widget.R  t   title(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_title  s    c         C   s   |  j  j d d |  j |  S(   s_   Instruct the window manager that this widget is transient
        with regard to widget MASTER.R  t	   transient(   R.   RP   R   (   RR   RS   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_transient   s    c         C   s   |  j  j d d |  j  S(   s   Withdraw this widget from the screen such that it is unmapped
        and forgotten by the window manager. Re-draw it with wm_deiconify.R  t   withdraw(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   wm_withdraw  s    N(<   R7   R8   R9   R   R  R  R  R  R  R  R  R  R  R   R  R  R  R  R  R  R  R   R  R  R   R  R  R  R  R  R  R  R  R	  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R   Rv  R"  R!  R$  R#  R&  R%  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  ?  sv   					
	t   Tkc           B   se   e  Z d  Z d Z d d d d d d d  Z d   Z d   Z d   Z d	   Z	 d
   Z
 d   Z RS(   sz   Toplevel widget of Tk which represents mostly the main window
    of an application. It has an associated Tcl interpreter.Rm  R'  i   i    c   
   	   C   s   d |  _ i  |  _ d |  _ d |  _ | d k r d d l } | j j t j	 d  } | j j
 |  \ } } | d k r | | } q n  d }	 t j | | | |	 t | | |  |  _ | r |  j   n  t j j s |  j | |  n  d S(   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.i    iNs   .pys   .pycs   .pyo(   s   .pys   .pycs   .pyo(   R   RS   R   t	   _tkloadedR.   t   ost   patht   basenameR  t   argvt   splitextR  t   createt   wantobjectst   _loadtkt   flagst   ignore_environmentt   readprofile(
   RR   t
   screenNamet   baseNameR   t   useTkt   synct   useR)  t   extt   interactive(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s     				'c         C   s'   |  j  s# |  j j   |  j   n  d  S(   N(   R(  R.   t   loadtkR0  (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR;  *  s    	c         C   s3  d |  _  |  j j d  } | t j k rC t d t j | f  n  t |  j j d   } | t j k r t d t j | f  n  t d k  r t d t t   n  |  j	 d  k r g  |  _	 n  |  j j d t  |  j j d	 t  |  j	 j d  |  j	 j d	  t rt r|  a n  |  j d
 |  j  d  S(   Ni   t
   tk_versions4   tk.h version (%s) doesn't match libtk.a version (%s)t   tcl_versions6   tcl.h version (%s) doesn't match libtcl.a version (%s)g      @s)   Tk 4.0 or higher is required; found Tk %st   tkerrort   exitt   WM_DELETE_WINDOW(   R(  R.   R   R  t
   TK_VERSIONR+   R   t   TCL_VERSIONt	   TkVersionRW   R   Rd   R>   RC   Re   R:   R;   R  R   (   RR   R<  R=  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR0  .  s0    		c         C   sf   x! |  j  j   D] } | j   q W|  j j d |  j  t j |   t rb t |  k rb d a n  d S(   sh   Destroy this and all descendants widgets. This will
        end the application of this Tcl interpreter.R   N(
   R   t   valuesR   R.   RP   R   R   R:   R;   R   (   RR   R$   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   M  s     c   
      B   sE  d d l  } d | j k r+ | j d } n	 | j } | j j | d |  } | j j | d |  } | j j | d |  } | j j | d |  } i |  d 6}	 d |	 U| j j |  r |  j j d |  n  | j j |  r e | |	  n  | j j |  r|  j j d |  n  | j j |  rAe | |	  n  d S(	   s   Internal function. It reads BASENAME.tcl and CLASSNAME.tcl into
        the Tcl Interpreter and calls execfile on BASENAME.py and CLASSNAME.py if
        such a file exists in the home directory.iNt   HOMEs   .%s.tcls   .%s.pyRR   s   from Tkinter import *t   source(	   R)  t   environt   curdirR*  R   t   isfileR.   RP   t   execfile(
   RR   R5  R   R)  t   homet	   class_tclt   class_pyt   base_tclt   base_pyt   dir(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR3  V  s$     	c         C   sW   d d l  } d d l } | j d IJ| | _ | | _ | | _ | j | | |  d S(   s   Report callback exception on sys.stderr.

        Applications may want to override this internal function, and
        should when sys.stderr is None.iNs   Exception in Tkinter callback(   t	   tracebackR  t   stderrt	   last_typet
   last_valuet   last_tracebackt   print_exception(   RR   R  R  R  RQ  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  k  s    			c         C   s   t  |  j |  S(   s3   Delegate attribute access to the interpreter object(   t   getattrR.   (   RR   t   attr(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   __getattr__v  s    N(   R7   R8   R9   R   R   RU   R;  R0  R   R3  R  RY  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR'    s   							c         C   s   t  |  | | |  S(   N(   R'  (   R4  R5  R   R6  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   Tcl  s    t   Packc           B   s`   e  Z d  Z i  d  Z e Z Z Z d   Z e Z d   Z	 e	 Z
 e j Z Z e j Z Z RS(   sQ   Geometry manager Pack.

    Base class to use the methods pack_* in every widget.c         K   s0   |  j  j d d |  j f |  j | |   d S(   s(  Pack a widget in the parent widget. Use as options:
        after=widget - pack it after you have packed widget
        anchor=NSEW (or subset) - position widget according to
                                  given direction
        before=widget - pack it before you will pack widget
        expand=bool - expand widget if parent size grows
        fill=NONE or X or Y or BOTH - fill widget if widget grows
        in=master - use master to contain this widget
        in_=master - see 'in' option description
        ipadx=amount - add internal padding in x direction
        ipady=amount - add internal padding in y direction
        padx=amount - add padding in x direction
        pady=amount - add padding in y direction
        side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.
        R  R  N(   R.   RP   R   R   (   RR   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   pack_configure  s    	c         C   s   |  j  j d d |  j  d S(   s:   Unmap this widget and do not use it for the packing order.R  t   forgetN(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   pack_forget  s    c         C   sQ   t  |  j |  j j d d |  j   } d | k rM |  j | d  | d <n  | S(   sE   Return information about the packing options
        for this widget.R  RG   t   in(   R5   R.   RP   R   Ro  (   RR   t   d(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   pack_info  s    '(   R7   R8   R9   R\  R  R  R  R^  R]  Ra  RG   R   R  R  R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR[    s   		t   Placec           B   sS   e  Z d  Z i  d  Z e Z Z Z d   Z e Z d   Z	 e	 Z
 e j Z Z RS(   sS   Geometry manager Place.

    Base class to use the methods place_* in every widget.c         K   s0   |  j  j d d |  j f |  j | |   d S(   s   Place a widget in the parent widget. Use as options:
        in=master - master relative to which the widget is placed
        in_=master - see 'in' option description
        x=amount - locate anchor of this widget at position x of master
        y=amount - locate anchor of this widget at position y of master
        relx=amount - locate anchor of this widget between 0.0 and 1.0
                      relative to width of master (1.0 is right edge)
        rely=amount - locate anchor of this widget between 0.0 and 1.0
                      relative to height of master (1.0 is bottom edge)
        anchor=NSEW (or subset) - position anchor according to given direction
        width=amount - width of this widget in pixel
        height=amount - height of this widget in pixel
        relwidth=amount - width of this widget between 0.0 and 1.0
                          relative to width of master (1.0 is the same width
                          as the master)
        relheight=amount - height of this widget between 0.0 and 1.0
                           relative to height of master (1.0 is the same
                           height as the master)
        bordermode="inside" or "outside" - whether to take border width of
                                           master widget into account
        R  R  N(   R.   RP   R   R   (   RR   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   place_configure  s    	c         C   s   |  j  j d d |  j  d S(   s   Unmap this widget.R  R]  N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   place_forget  s    c         C   sQ   t  |  j |  j j d d |  j   } d | k rM |  j | d  | d <n  | S(   sE   Return information about the placing options
        for this widget.R  RG   R_  (   R5   R.   RP   R   Ro  (   RR   R`  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   place_info  s    '(   R7   R8   R9   Rc  R  R  R  Rd  R]  Re  RG   R   R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRb    s   		t   Gridc           B   s   e  Z d  Z i  d  Z e Z Z Z e j Z	 Z e j
 Z Z
 d   Z e Z d   Z d   Z e Z e j Z Z e j Z Z e j Z Z e j Z Z e j Z Z RS(   sQ   Geometry manager Grid.

    Base class to use the methods grid_* in every widget.c         K   s0   |  j  j d d |  j f |  j | |   d S(   s  Position a widget in the parent widget in a grid. Use as options:
        column=number - use cell identified with given column (starting with 0)
        columnspan=number - this widget will span several columns
        in=master - use master to contain this widget
        in_=master - see 'in' option description
        ipadx=amount - add internal padding in x direction
        ipady=amount - add internal padding in y direction
        padx=amount - add padding in x direction
        pady=amount - add padding in y direction
        row=number - use cell identified with given row (starting with 0)
        rowspan=number - this widget will span several rows
        sticky=NSEW - if cell is larger on which sides will this
                      widget stick to the cell boundary
        R  R  N(   R.   RP   R   R   (   RR   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grid_configure  s    	c         C   s   |  j  j d d |  j  d S(   s   Unmap this widget.R  R]  N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grid_forget  s    c         C   s   |  j  j d d |  j  d S(   s0   Unmap this widget but remember the grid options.R  Rm   N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   grid_remove  s    c         C   sQ   t  |  j |  j j d d |  j   } d | k rM |  j | d  | d <n  | S(   sS   Return information about the options
        for positioning this widget in a grid.R  RG   R_  (   R5   R.   RP   R   Ro  (   RR   R`  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   grid_info   s    '(   R7   R8   R9   Rg  R  R  R  R   R  R  R  R  Rh  R]  Ri  Rj  RG   R  R  R  R  R  R  R  R  R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRf    s   			t
   BaseWidgetc           B   s>   e  Z d  Z d   Z i  i  d d  Z d   Z d d  Z RS(   s   Internal class.c         C   s  t  r* | s* t s t   a n  t } q* n  | |  _ | j |  _ d } d | k re | d } | d =n  | s t t |    } n  | |  _ | j	 d k r d | |  _	 n | j	 d | |  _	 i  |  _
 |  j |  j j
 k r |  j j
 |  j j   n  |  |  j j
 |  j <d S(   s6   Internal function. Sets up information about children.RT   Rm  N(   R:   R;   R'  RS   R.   R   RL   Rb   RK   R   R   R   (   RR   RS   R#   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _setup  s*    	

		c   	      C   s   | r t  | | f  } n  | |  _ t j |  | |  |  j d k rR g  |  _ n  g  } xG | j   D]9 } t |  t k re | j	 | | | f  | | =qe qe W|  j
 j | |  j f | |  j |   x$ | D] \ } } | j |  |  q Wd S(   sd   Construct a widget with the parent widget MASTER, a name WIDGETNAME
        and appropriate options.N(   R(   t
   widgetNameRk  Rl  RW   R   R  R   t	   ClassTypeRe   R.   RP   R   R   R  (	   RR   RS   Rm  R#   R   t   extrat   classesR&   R'   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   )  s    		!c         C   ss   x! |  j  j   D] } | j   q W|  j j d |  j  |  j |  j j  k rb |  j j  |  j =n  t j |   d S(   s)   Destroy this and all descendants widgets.R   N(	   R   RD  R   R.   RP   R   RK   RS   R   (   RR   R$   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   ;  s     c         C   s   |  j  j |  j | f |  S(   N(   R.   RP   R   (   RR   RT   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _doB  s    (    (    (   R7   R8   R9   Rl  RU   R   Rq  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRk    s
   		t   Widgetc           B   s   e  Z d  Z RS(   sx   Internal class.

    Base class for a widget which can be positioned with the geometry managers
    Pack, Place or Grid.(   R7   R8   R9   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRr  F  s   t   Toplevelc           B   s   e  Z d  Z d i  d  Z RS(   s"   Toplevel widget, e.g. for dialogs.c   	      K   s  | r t  | | f  } n  d } xx d d d d d g D]a } | | k r7 | | } | d d k rt d | d  } n
 d | } | | | f } | | =q7 q7 Wt j |  | d	 | i  |  |  j   } |  j | j    |  j | j    |  j d
 |  j  d 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   t   class_R   R6  t   colormapiRi  R)   R2  R@  N(    (   R(   Rk  RU   RI   R	  R!  R  R   (	   RR   RS   R#   R   Ro  t   wmkeyR  t   optR  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   O  s"    
 
N(   R7   R8   R9   R   RU   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRs  M  s   t   Buttonc           B   s\   e  Z d  Z d	 i  d  Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z RS(
   s   Button widget.c         K   s   t  j |  | d | |  d S(   sU  Construct 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
        t   buttonN(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   k  s    c         G   s   |  j  j d |  j  d  S(   Nt   tkButtonEnter(   R.   RP   R   (   RR   t   dummy(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRz    s    c         G   s   |  j  j d |  j  d  S(   Nt   tkButtonLeave(   R.   RP   R   (   RR   R{  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR|    s    c         G   s   |  j  j d |  j  d  S(   Nt   tkButtonDown(   R.   RP   R   (   RR   R{  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR}    s    c         G   s   |  j  j d |  j  d  S(   Nt
   tkButtonUp(   R.   RP   R   (   RR   R{  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR~    s    c         G   s   |  j  j d |  j  d  S(   Nt   tkButtonInvoke(   R.   RP   R   (   RR   R{  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  j |  j d  d S(   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.
        t   flashN(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    
c         C   s   |  j  j |  j d  S(   s  Invoke 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.
        t   invoke(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    N(   R7   R8   R9   R   RU   Rz  R|  R}  R~  R  R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRx  i  s   						c           C   s   d S(   Nt   end(    (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   AtEnd  s    c          G   s2   d } x% |  D] } | r | d | } q q W| S(   Nt   insertR   (    (   R   R   t   a(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   AtInsert  s
     c           C   s   d S(   Ns	   sel.first(    (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   AtSelFirst  s    c           C   s   d S(   Ns   sel.last(    (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   AtSelLast  s    c         C   s)   | d  k r d |  f Sd |  | f Sd  S(   Ns   @%rs   @%r,%r(   R   (   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   At  s    t   Canvasc           B   sI  e  Z d  Z d: i  d  Z d   Z d   Z d   Z d   Z d: d: d  Z	 d   Z
 d   Z d	   Z d
   Z d: d  Z d: d: d: d  Z d: d  Z d: d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z  d   Z! d   Z" d    Z# d: d: d!  Z$ d"   Z% d#   Z& d$   Z' d%   Z( d&   Z) d'   Z* d(   Z+ d)   Z, d*   Z- d: d+  Z. e. Z/ d,   Z0 e0 Z1 d-   Z2 i  d.  Z3 d/   Z4 e4 Z5 Z6 d0   Z7 d1   Z8 d2 d3  Z9 d4   Z: d5   Z; d6   Z< d7   Z= d8   Z> d9   Z? RS(;   s?   Canvas widget to display graphical elements like lines or text.c         K   s   t  j |  | d | |  d S(   s  Construct 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.t   canvasN(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s    
c         G   s!   |  j  j |  j d f |  d S(   s   Internal function.t   addtagN(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  | d |  d S(   s*   Add tag NEWTAG to all items above TAGORID.t   aboveN(   R  (   RR   t   newtagt   tagOrId(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   addtag_above  s    c         C   s   |  j  | d  d S(   s   Add tag NEWTAG to all items.R^  N(   R  (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   addtag_all  s    c         C   s   |  j  | d |  d S(   s*   Add tag NEWTAG to all items below TAGORID.t   belowN(   R  (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   addtag_below  s    c         C   s    |  j  | d | | | |  d S(   s   Add tag NEWTAG to item which is closest to pixel at X, Y.
        If several match take the top-most.
        All items closer than HALO are considered overlapping (all are
        closests). If START is specified the next below this tag is taken.t   closestN(   R  (   RR   R  RA  RN  t   halot   start(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   addtag_closest  s    c         C   s    |  j  | d | | | |  d S(   sL   Add tag NEWTAG to all items in the rectangle defined
        by X1,Y1,X2,Y2.t   enclosedN(   R  (   RR   R  t   x1t   y1t   x2t   y2(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   addtag_enclosed  s    c         C   s    |  j  | d | | | |  d S(   sW   Add tag NEWTAG to all items which overlap the rectangle
        defined by X1,Y1,X2,Y2.t   overlappingN(   R  (   RR   R  R  R  R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   addtag_overlapping  s    c         C   s   |  j  | d |  d S(   s)   Add tag NEWTAG to all items with TAGORID.t   withtagN(   R  (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   addtag_withtag  s    c         G   s,   |  j  |  j j |  j d f |   p+ d S(   s|   Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
        which encloses all items with tags specified as arguments.R  N(   R  R.   RP   R   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s9   |  j  j |  j d | | d  | r5 |  j |  n  d S(   sb   Unbind for all items with TAGORID for event SEQUENCE  the
        function identified with FUNCID.R\  RE   N(   R.   RP   R   RX   (   RR   R  RX  RZ  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   tag_unbind  s    c         C   s"   |  j  |  j d | f | | |  S(   s&  Bind to all items with TAGORID at event SEQUENCE a call to function FUNC.

        An additional boolean parameter ADD specifies whether FUNC will be
        called additionally to the other bound function or whether it will
        replace the previous function. See bind for the return value.R\  (   R[  R   (   RR   R  RX  R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   tag_bind  s    c         C   s"   t  |  j j |  j d | |   S(   sr   Return the canvas x coordinate of pixel position SCREENX rounded
        to nearest multiple of GRIDSPACING units.t   canvasx(   R{   R.   RP   R   (   RR   t   screenxt   gridspacing(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s"   t  |  j j |  j d | |   S(   sr   Return the canvas y coordinate of pixel position SCREENY rounded
        to nearest multiple of GRIDSPACING units.t   canvasy(   R{   R.   RP   R   (   RR   t   screenyR  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         G   s2   t  t |  j j |  j j |  j d f |    S(   s8   Return a list of coordinates for the item given in ARGS.t   coords(   R   R{   R.   R*   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    	c      	   C   ss   t  |  } | d } t |  t t f k r; | d  } n i  } t |  j j |  j d | | |  j | |    S(   s   Internal function.iR.  (	   R   R   R   R   Ry   R.   RP   R   R   (   RR   t   itemTypeR   R   R#   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _create	  s    
c         O   s   |  j  d | |  S(   s6   Create arc shaped region with coordinates x1,y1,x2,y2.t   arc(   R  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   create_arc	  s    c         O   s   |  j  d | |  S(   s%   Create bitmap with coordinates x1,y1.R  (   R  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   create_bitmap	  s    c         O   s   |  j  d | |  S(   s)   Create image item with coordinates x1,y1.R  (   R  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   create_image	  s    c         O   s   |  j  d | |  S(   s-   Create line with coordinates x1,y1,...,xn,yn.t   line(   R  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   create_line	  s    c         O   s   |  j  d | |  S(   s)   Create oval with coordinates x1,y1,x2,y2.t   oval(   R  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   create_oval	  s    c         O   s   |  j  d | |  S(   s0   Create polygon with coordinates x1,y1,...,xn,yn.t   polygon(   R  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   create_polygon	  s    c         O   s   |  j  d | |  S(   s.   Create rectangle with coordinates x1,y1,x2,y2.t	   rectangle(   R  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   create_rectangle"	  s    c         O   s   |  j  d | |  S(   s#   Create text with coordinates x1,y1.t   text(   R  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   create_text%	  s    c         O   s   |  j  d | |  S(   s+   Create window with coordinates x1,y1,x2,y2.R   (   R  (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   create_window(	  s    c         G   s!   |  j  j |  j d f |  d S(   s   Delete characters of text items identified by tag or id in ARGS (possibly
        several times) from FIRST to LAST character (including).t   dcharsN(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  +	  s    c         G   s!   |  j  j |  j d f |  d S(   s<   Delete items identified by all tag or ids contained in ARGS.R  N(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  /	  s    c         G   s!   |  j  j |  j d f |  d S(   si   Delete tag or id given as last arguments in ARGS from items
        identified by first argument in ARGS.t   dtagN(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  2	  s    c         G   s,   |  j  |  j j |  j d f |   p+ d S(   s   Internal function.t   find(    (   R  R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  6	  s    c         C   s   |  j  d |  S(   s   Return items above TAGORID.R  (   R  (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   find_above:	  s    c         C   s   |  j  d  S(   s   Return all items.R^  (   R  (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   find_all=	  s    c         C   s   |  j  d |  S(   s   Return all items below TAGORID.R  (   R  (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   find_below@	  s    c         C   s   |  j  d | | | |  S(   s   Return item which is closest to pixel at X, Y.
        If several match take the top-most.
        All items closer than HALO are considered overlapping (all are
        closest). If START is specified the next below this tag is taken.R  (   R  (   RR   RA  RN  R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   find_closestC	  s    c         C   s   |  j  d | | | |  S(   s=   Return all items in rectangle defined
        by X1,Y1,X2,Y2.R  (   R  (   RR   R  R  R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   find_enclosedI	  s    c         C   s   |  j  d | | | |  S(   sL   Return all items which overlap the rectangle
        defined by X1,Y1,X2,Y2.R  (   R  (   RR   R  R  R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   find_overlappingM	  s    c         C   s   |  j  d |  S(   s   Return all items with TAGORID.R  (   R  (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   find_withtagQ	  s    c         G   s   |  j  j |  j d f |  S(   s.   Set focus to the first item specified in ARGS.R   (   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   T	  s    c         G   s)   |  j  j |  j  j |  j d f |   S(   s=   Return tags associated with the first item specified in ARGS.t   gettags(   R.   R*   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  W	  s    	c         G   s!   |  j  j |  j d f |  d S(   sd   Set cursor at position POS in the item identified by TAGORID.
        In ARGS TAGORID must be first.t   icursorN(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  [	  s    c         G   s#   t  |  j j |  j d f |   S(   s?   Return position of cursor as integer in item specified in ARGS.R  (   Ry   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  _	  s    c         G   s!   |  j  j |  j d f |  d S(   sS   Insert TEXT in item TAGORID at position POS. ARGS must
        be TAGORID POS TEXT.R  N(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  b	  s    c         C   s'   |  j  j |  j d f | d | f  S(   s9   Return the resource value for an OPTION for item TAGORID.t   itemcgetR)   (   R.   RP   R   (   RR   R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  f	  s    	c         K   s   |  j  d | f | |  S(   s   Configure resources of an item TAGORID.

        The values for resources are specified as keyword
        arguments. To get an overview about
        the allowed keyword arguments call the method without arguments.
        t   itemconfigure(   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  j	  s    c         G   s!   |  j  j |  j d f |  d S(   sJ   Lower an item TAGORID given in ARGS
        (optional below another item).R   N(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   tag_lowerw	  s    c         G   s!   |  j  j |  j d f |  d S(   s#   Move an item TAGORID given in ARGS.t   moveN(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  |	  s    c         K   s)   |  j  j |  j d f |  j | |   S(   s   Print the contents of the canvas to a postscript
        file. Valid options: colormap, colormode, file, fontmap,
        height, pageanchor, pageheight, pagewidth, pagex, pagey,
        rotate, width, x, y.t
   postscript(   R.   RP   R   R   (   RR   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         G   s!   |  j  j |  j d f |  d S(   sJ   Raise an item TAGORID given in ARGS
        (optional above another item).R   N(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   tag_raise	  s    c         G   s!   |  j  j |  j d f |  d S(   s9   Scale item TAGORID with XORIGIN, YORIGIN, XSCALE, YSCALE.t   scaleN(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s#   |  j  j |  j d d | |  d S(   s&   Remember the current X, Y coordinates.t   scant   markN(   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   scan_mark	  s    i
   c         C   s&   |  j  j |  j d d | | |  d S(   s   Adjust the view of the canvas to GAIN times the
        difference between X and Y and the coordinates given in
        scan_mark.R  t   dragtoN(   R.   RP   R   (   RR   RA  RN  t   gain(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   scan_dragto	  s    c         C   s#   |  j  j |  j d d | |  d S(   sL   Adjust the end of the selection near the cursor of an item TAGORID to index.t   selectt   adjustN(   R.   RP   R   (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   select_adjust	  s    c         C   s   |  j  j |  j d d  d S(   s,   Clear the selection if it is in this widget.R  R   N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   select_clear	  s    c         C   s#   |  j  j |  j d d | |  d S(   s:   Set the fixed end of a selection in item TAGORID to INDEX.R  t   fromN(   R.   RP   R   (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   select_from	  s    c         C   s   |  j  j |  j d d  p d S(   s(   Return the item which has the selection.R  R   N(   R.   RP   R   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   select_item	  s    c         C   s#   |  j  j |  j d d | |  d S(   s=   Set the variable end of a selection in item TAGORID to INDEX.R  t   toN(   R.   RP   R   (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   select_to	  s    c         C   s   |  j  j |  j d |  p d S(   s$   Return the type of the item TAGORID.R   N(   R.   RP   R   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   	  s    N(@   R7   R8   R9   R   RU   R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R  R   R  R  R  R  R  R  t
   itemconfigR  R   R  R  R  R  R   R  R  R  R  R  R  R  R  R   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    sx   																																						
							t   Checkbuttonc           B   sJ   e  Z d  Z d i  d  Z d   Z d   Z d   Z d   Z d   Z	 RS(   s7   Checkbutton widget which is either in on- or off-state.c         K   s   t  j |  | d | |  d S(   s  Construct 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(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   	  s    
c         C   s   |  j  j |  j d  d S(   s   Put the button in off-state.t   deselectN(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s   |  j  j |  j d  d S(   s   Flash the button.R  N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s   |  j  j |  j d  S(   s<   Toggle the button and invoke a command if given as resource.R  (   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s   |  j  j |  j d  d S(   s   Put the button in on-state.R  N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s   |  j  j |  j d  d S(   s   Toggle the button.t   toggleN(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    N(
   R7   R8   R9   R   RU   R  R  R  R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s   				t   Entryc           B   s   e  Z d  Z d i  d  Z d d  Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z e Z d
   Z e Z d   Z e Z d   Z e Z d   Z e Z d   Z e Z RS(   s1   Entry widget which allows displaying simple text.c         K   s   t  j |  | d | |  d S(   s  Construct 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.t   entryN(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   	  s    c         C   s    |  j  j |  j d | |  d S(   s.   Delete text from FIRST to LAST (not included).R  N(   R.   RP   R   (   RR   t   firstt   last(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s   |  j  j |  j d  S(   s   Return the text.R]   (   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]   	  s    c         C   s   |  j  j |  j d |  d S(   s   Insert cursor at INDEX.R  N(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s   t  |  j j |  j d |   S(   s   Return position of cursor.R  (   Ry   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s    |  j  j |  j d | |  d S(   s   Insert STRING at INDEX.R  N(   R.   RP   R   (   RR   R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s    |  j  j |  j d d |  d S(   s&   Remember the current X, Y coordinates.R  R  N(   R.   RP   R   (   RR   RA  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s    |  j  j |  j d d |  d S(   s   Adjust the view of the canvas to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.R  R  N(   R.   RP   R   (   RR   RA  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s    c         C   s    |  j  j |  j d d |  d S(   s9   Adjust the end of the selection near the cursor to INDEX.R   R  N(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_adjust	  s    c         C   s   |  j  j |  j d d  d S(   s,   Clear the selection if it is in this widget.R   R   N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   	  s    c         C   s    |  j  j |  j d d |  d S(   s*   Set the fixed end of a selection to INDEX.R   R  N(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_from	  s    c         C   s%   |  j  j |  j  j |  j d d   S(   sS   Return True if there are characters selected in the entry, False
        otherwise.R   t   present(   R.   RO   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_present	  s    	c         C   s#   |  j  j |  j d d | |  d S(   s3   Set the selection from START to END (not included).R   t   rangeN(   R.   RP   R   (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_range	  s    c         C   s    |  j  j |  j d d |  d S(   s-   Set the variable end of a selection to INDEX.R   R  N(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_to
  s    N(   R7   R8   R9   R   RU   R  R]   R  R  R  R  R  R  R  R   R  R  R  R  t   select_presentR  t   select_rangeR  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  	  s*   												t   Framec           B   s   e  Z d  Z d i  d  Z RS(   sF   Frame widget which may contain other widgets and can have a 3D border.c         K   s   t  | | f  } d } d | k r> d | d f } | d =n& d | k rd d | d f } | d =n  t j |  | d | i  |  d S(   s  Construct 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.Rt  s   -classR   R  N(    (   R(   Rr  RU   (   RR   RS   R#   R   Ro  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   	
  s    

N(   R7   R8   R9   R   RU   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s   t   Labelc           B   s   e  Z d  Z d i  d  Z RS(   s0   Label widget which can display text and bitmaps.c         K   s   t  j |  | d | |  d S(   s  Construct a label widget with the parent MASTER.

        STANDARD OPTIONS

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

        WIDGET-SPECIFIC OPTIONS

            height, state, width

        t   labelN(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   
  s    N(   R7   R8   R9   R   RU   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s   t   Listboxc           B   s   e  Z d  Z d i  d  Z d   Z d   Z d   Z d d  Z d d  Z	 d   Z
 d   Z d	   Z d
   Z d   Z d   Z d   Z e Z d d  Z e Z d   Z e Z d d  Z e Z d   Z d   Z d d  Z e Z RS(   s3   Listbox widget which can display a list of strings.c         K   s   t  j |  | d | |  d S(   s  Construct a listbox widget with the parent MASTER.

        Valid resource names: background, bd, bg, borderwidth, cursor,
        exportselection, fg, font, foreground, height, highlightbackground,
        highlightcolor, highlightthickness, relief, selectbackground,
        selectborderwidth, selectforeground, selectmode, setgrid, takefocus,
        width, xscrollcommand, yscrollcommand, listvariable.t   listboxN(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   1
  s    c         C   s   |  j  j |  j d |  d S(   s"   Activate item identified by INDEX.t   activateN(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  :
  s    c         C   s(   |  j  |  j j |  j d |   p' d S(   sx   Return a tuple of X1,Y1,X2,Y2 coordinates for a rectangle
        which encloses the item identified by the given index.R  N(   R  R.   RP   R   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  =
  s    c         C   s%   |  j  |  j j |  j d   p$ d S(   s.   Return the indices of currently selected item.t   curselection(    (   R  R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  A
  s    c         C   s    |  j  j |  j d | |  d S(   s+   Delete items from FIRST to LAST (included).R  N(   R.   RP   R   (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  D
  s    c         C   sQ   | d k	 r4 |  j j |  j j |  j d | |   S|  j j |  j d |  Sd S(   s0   Get list of items from FIRST to LAST (included).R]   N(   R   R.   R*   RP   R   (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]   G
  s    c         C   s5   |  j  j |  j d |  } | d k r+ d St |  S(   s+   Return index of item identified with INDEX.R  R   N(   R.   RP   R   R   Ry   (   RR   R  t   i(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  N
  s     c         G   s$   |  j  j |  j d | f |  d S(   s   Insert ELEMENTS at INDEX.R  N(   R.   RP   R   (   RR   R  t   elements(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  S
  s    c         C   s   t  |  j j |  j d |   S(   s5   Get index of item which is nearest to y coordinate Y.t   nearest(   Ry   R.   RP   R   (   RR   RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  V
  s    c         C   s#   |  j  j |  j d d | |  d S(   s&   Remember the current X, Y coordinates.R  R  N(   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  Z
  s    c         C   s#   |  j  j |  j d d | |  d S(   s   Adjust the view of the listbox to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.R  R  N(   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  ]
  s    c         C   s   |  j  j |  j d |  d S(   s"   Scroll such that INDEX is visible.t   seeN(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  b
  s    c         C   s    |  j  j |  j d d |  d S(   s-   Set the fixed end oft the selection to INDEX.R   t   anchorN(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_anchore
  s    c         C   s#   |  j  j |  j d d | |  d S(   s2   Clear the selection from FIRST to LAST (included).R   R   N(   R.   RP   R   (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   i
  s    c         C   s(   |  j  j |  j  j |  j d d |   S(   s+   Return 1 if INDEX is part of the selection.R   t   includes(   R.   RO   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_includesn
  s    c         C   s#   |  j  j |  j d d | |  d S(   si   Set the selection from FIRST to LAST (included) without
        changing the currently selected elements.R   RN   N(   R.   RP   R   (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_sets
  s    c         C   s   t  |  j j |  j d   S(   s-   Return the number of elements in the listbox.R  (   Ry   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  x
  s    c         C   s'   |  j  j |  j d f | d | f  S(   s4   Return the resource value for an ITEM and an OPTION.R  R)   (   R.   RP   R   (   RR   R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  {
  s    	c         K   s   |  j  d | f | |  S(   s9  Configure 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  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    N(   R7   R8   R9   R   RU   R  R  R  R  R]   R  R  R  R  R  R  R  t   select_anchorR   R  R  t   select_includesR  t
   select_setR  R  R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  /
  s2   															t   Menuc           B   s  e  Z d  Z d% i  d  Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z d
   Z d   Z d   Z d d  Z d   Z i  d  Z i  d  Z i  d  Z i  d  Z i  d  Z i  d  Z i  d  Z i  d  Z i  d  Z i  d  Z i  d  Z i  d  Z d% d  Z d   Z d% d  Z  e  Z! d   Z" d    Z# d!   Z$ d"   Z% d#   Z& d$   Z' RS(&   sP   Menu widget which allows displaying menu bars, pull-down menus and pop-up menus.c         K   s   t  j |  | d | |  d S(   sA  Construct 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.t   menuN(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   
  s    c         C   s&   d d  l  } | j d t d d d  S(   Nis=   tk_bindForTraversal() does nothing and will be removed in 3.6R   i   (   R   R   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   tk_bindForTraversal
  s    	c         C   s   |  j  j d |  j  d  S(   Nt	   tk_mbPost(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         C   s   |  j  j d  d  S(   Nt   tk_mbUnpost(   R.   RP   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         C   s   |  j  j d |  j |  d  S(   Nt   tk_traverseToMenu(   R.   RP   R   (   RR   Rx  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         C   s   |  j  j d |  j |  d  S(   Nt   tk_traverseWithinMenu(   R.   RP   R   (   RR   Rx  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         C   s   |  j  j d |  j  S(   Nt   tk_getMenuButtons(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR	  
  s    c         C   s   |  j  j d |  d  S(   Nt   tk_nextMenu(   R.   RP   (   RR   t   count(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR
  
  s    c         C   s   |  j  j d |  d  S(   Nt   tk_nextMenuEntry(   R.   RP   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         C   s   |  j  j d |  j  d  S(   Nt   tk_invokeMenu(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         C   s   |  j  j d |  j  d  S(   Nt   tk_firstMenu(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         C   s   |  j  j d |  j  d  S(   Nt   tk_mbButtonDown(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    RE   c         C   s#   |  j  j d |  j | | |  d S(   s/   Post the menu at position X,Y with entry ENTRY.t   tk_popupN(   R.   RP   R   (   RR   RA  RN  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         C   s   |  j  j |  j d |  d S(   s   Activate entry at INDEX.R  N(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         K   s0   |  j  j |  j d | f |  j | |   d S(   s   Internal function.R   N(   R.   RP   R   R   (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   
  s    c         K   s   |  j  d | p |  d S(   s   Add hierarchical menu item.t   cascadeN(   R   (   RR   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   add_cascade
  s    c         K   s   |  j  d | p |  d S(   s   Add checkbutton menu item.R  N(   R   (   RR   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   add_checkbutton
  s    c         K   s   |  j  d | p |  d S(   s   Add command menu item.R   N(   R   (   RR   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   add_command
  s    c         K   s   |  j  d | p |  d S(   s   Addd radio menu item.t   radiobuttonN(   R   (   RR   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   add_radiobutton
  s    c         K   s   |  j  d | p |  d S(   s   Add separator.t	   separatorN(   R   (   RR   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   add_separator
  s    c         K   s3   |  j  j |  j d | | f |  j | |   d S(   s   Internal function.R  N(   R.   RP   R   R   (   RR   R  R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         K   s   |  j  | d | p |  d S(   s$   Add hierarchical menu item at INDEX.R  N(   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   insert_cascade
  s    c         K   s   |  j  | d | p |  d S(   s#   Add checkbutton menu item at INDEX.R  N(   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   insert_checkbutton
  s    c         K   s   |  j  | d | p |  d S(   s   Add command menu item at INDEX.R   N(   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   insert_command
  s    c         K   s   |  j  | d | p |  d S(   s   Addd radio menu item at INDEX.R  N(   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   insert_radiobutton
  s    c         K   s   |  j  | d | p |  d S(   s   Add separator at INDEX.R  N(   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   insert_separator
  s    c         C   s   | d k r | } n  |  j |  |  j |  } } | d k sL | d k r[ d \ } } n  xa t | | d  D]L } d |  j |  k ro t |  j | d   } | r |  j |  q qo qo W|  j j |  j	 d | |  d S(   s7   Delete menu items between INDEX1 and INDEX2 (included).i    ii   R   R  N(   i    i(
   R   R  R  t   entryconfigR   t	   entrycgetRX   R.   RP   R   (   RR   t   index1t   index2t
   num_index1t
   num_index2R  R$   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    	c         C   s    |  j  j |  j d | d |  S(   s=   Return the resource value of a menu item for OPTION at INDEX.R  R)   (   R.   RP   R   (   RR   R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         K   s   |  j  d | f | |  S(   s   Configure a menu item at INDEX.t   entryconfigure(   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR$  
  s    c         C   s5   |  j  j |  j d |  } | d k r+ d St |  S(   s4   Return the index of a menu item identified by INDEX.R  R   N(   R.   RP   R   R   Ry   (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s     c         C   s   |  j  j |  j d |  S(   sR   Invoke a menu item identified by INDEX and execute
        the associated command.R  (   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  s    c         C   s    |  j  j |  j d | |  d S(   s   Display a menu at position X,Y.t   postN(   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR%  
  s    c         C   s   |  j  j |  j d |  S(   s*   Return the type of the menu item at INDEX.R   (   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   
  s    c         C   s   |  j  j |  j d  d S(   s   Unmap a menu.t   unpostN(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR&  
  s    c         C   s   t  |  j j |  j d |   S(   sE   Return the y-position of the topmost pixel of the menu item at INDEX.t	   yposition(   Ry   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR'    s    N((   R7   R8   R9   R   RU   R  R  R  R  R  R	  R
  R  R  R  R  R  R  R   R  R  R  R  R  R  R  R  R  R  R  R  R  R$  R  R  R  R%  R   R&  R'  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  
  sJ   																		t
   Menubuttonc           B   s   e  Z d  Z d i  d  Z RS(   s(   Menubutton widget, obsolete since Tk8.0.c         K   s   t  j |  | d | |  d  S(   Nt
   menubutton(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   	  s    N(   R7   R8   R9   R   RU   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR(    s   t   Messagec           B   s   e  Z d  Z d i  d  Z RS(   sK   Message widget to display multiline text. Obsolete since Label does it too.c         K   s   t  j |  | d | |  d  S(   Nt   message(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s    N(   R7   R8   R9   R   RU   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR*    s   t   Radiobuttonc           B   sA   e  Z d  Z d i  d  Z d   Z d   Z d   Z d   Z RS(   sG   Radiobutton widget which shows only one of several buttons in on-state.c         K   s   t  j |  | d | |  d S(   s  Construct a radiobutton widget with the parent MASTER.

        Valid resource names: activebackground, activeforeground, anchor,
        background, bd, bg, bitmap, borderwidth, command, cursor,
        disabledforeground, fg, font, foreground, height,
        highlightbackground, highlightcolor, highlightthickness, image,
        indicatoron, justify, padx, pady, relief, selectcolor, selectimage,
        state, takefocus, text, textvariable, underline, value, variable,
        width, wraplength.R  N(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s    
c         C   s   |  j  j |  j d  d S(   s   Put the button in off-state.R  N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  j |  j d  d S(   s   Flash the button.R  N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  "  s    c         C   s   |  j  j |  j d  S(   s<   Toggle the button and invoke a command if given as resource.R  (   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  %  s    c         C   s   |  j  j |  j d  d S(   s   Put the button in on-state.R  N(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  (  s    N(	   R7   R8   R9   R   RU   R  R  R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR,    s   			t   Scalec           B   sD   e  Z d  Z d i  d  Z d   Z d   Z d d  Z d   Z RS(   s1   Scale widget which can display a numerical scale.c         K   s   t  j |  | d | |  d S(   s  Construct a scale widget with the parent MASTER.

        Valid resource names: activebackground, background, bigincrement, bd,
        bg, borderwidth, command, cursor, digits, fg, font, foreground, from,
        highlightbackground, highlightcolor, highlightthickness, label,
        length, orient, relief, repeatdelay, repeatinterval, resolution,
        showvalue, sliderlength, sliderrelief, state, takefocus,
        tickinterval, to, troughcolor, variable, width.R  N(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   .  s    	c         C   sE   |  j  j |  j d  } y t |  SWn t k
 r@ t |  SXd S(   s*   Get the current value as integer or float.R]   N(   R.   RP   R   Ry   R@   R{   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]   8  s
    c         C   s   |  j  j |  j d |  d S(   s   Set the value to VALUE.RN   N(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRN   ?  s    c         C   s"   |  j  |  j j |  j d |   S(   s   Return a tuple (X,Y) of the point along the centerline of the
        trough that corresponds to VALUE or the current value if None is
        given.R  (   R  R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  B  s    c         C   s   |  j  j |  j d | |  S(   sc   Return where the point X,Y lies. Valid return values are "slider",
        "though1" and "though2".t   identify(   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR.  H  s    N(	   R7   R8   R9   R   RU   R]   RN   R  R.  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR-  ,  s   
		t	   Scrollbarc           B   sS   e  Z d  Z d i  d  Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 RS(	   s?   Scrollbar widget which displays a slider at a certain position.c         K   s   t  j |  | d | |  d S(   sl  Construct 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(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   O  s    	c         C   s   |  j  j |  j d |  d S(   sx   Display the element at INDEX with activebackground and activerelief.
        INDEX can be "arrow1","slider" or "arrow2".R  N(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  Y  s    c         C   s"   t  |  j j |  j d | |   S(   sn   Return the fractional change of the scrollbar setting if it
        would be moved by DELTAX or DELTAY pixels.R  (   R{   R.   RP   R   (   RR   t   deltaxt   deltay(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  ]  s    c         C   s"   t  |  j j |  j d | |   S(   sR   Return the fractional value which corresponds to a slider
        position of X,Y.R  (   R{   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  b  s    c         C   s   |  j  j |  j d | |  S(   sY   Return the element under position X,Y as one of
        "arrow1","slider","arrow2" or "".R.  (   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR.  f  s    c         C   s   |  j  |  j j |  j d   S(   sZ   Return the current fractional values (upper and lower end)
        of the slider position.R]   (   Rd  R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]   j  s    c         G   s!   |  j  j |  j d f |  d S(   si   Set the fractional values of the slider position (upper and
        lower ends as value between 0 and 1).RN   N(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRN   n  s    N(   R7   R8   R9   R   RU   R  R  R  R.  R]   RN   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR/  M  s   
					t   Textc        	   B   sH  e  Z d  Z d5 i  d  Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d5 d  Z d5 d	  Z d
   Z d5 d5 d  Z d   Z d5 d  Z d   Z d   Z d   Z d   Z d5 d  Z d   Z d5 d  Z i  d  Z d   Z d   Z d   Z d5 d  Z d   Z d   Z d   Z d   Z  d   Z! d   Z" d    Z# d5 d5 d5 d5 d5 d5 d5 d5 d!  Z$ d"   Z% d#   Z& d5 d$  Z' d5 d%  Z( d&   Z) d5 d'  Z* e* Z+ d(   Z, d5 d)  Z- d5 d*  Z. d5 d+  Z/ d5 d,  Z0 d5 d-  Z1 d.   Z2 d5 d/  Z3 d0   Z4 d5 d1  Z5 e5 Z6 i  d2  Z7 d3   Z8 d4   Z9 RS(6   s4   Text widget which can display text in various forms.c         K   s   t  j |  | d | |  d S(   s  Construct a text widget with the parent MASTER.

        STANDARD OPTIONS

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

        WIDGET-SPECIFIC OPTIONS

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

        R  N(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   w  s    c         G   s,   |  j  |  j j |  j d f |   p+ d S(   s   Return a tuple of (x,y,width,height) which gives the bounding
        box of the visible part of the character at the index in ARGS.R  N(   R  R.   RP   R   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  j d |  j |  d  S(   Nt   tk_textSelectTo(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR4    s    c         C   s   |  j  j d |  j  d  S(   Nt   tk_textBackspace(   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR5    s    c         C   s#   |  j  j d |  j | | |  d  S(   Nt   tk_textIndexCloser(   R.   RP   R   (   RR   R  R  R$   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR6    s    c         C   s   |  j  j d |  j |  d  S(   Nt   tk_textResetAnchor(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR7    s    c         C   s+   |  j  j |  j  j |  j d | | |   S(   s   Return whether between index INDEX1 and index INDEX2 the
        relation OP is satisfied. OP is one of <, <=, ==, >=, >, or !=.t   compare(   R.   RO   RP   R   (   RR   R   t   opR!  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR8    s    c         C   sK   | d k r. |  j j |  j j |  j d   S|  j j |  j d |  d S(   sj   Turn on the internal consistency checks of the B-Tree inside the text
        widget according to BOOLEAN.t   debugN(   R   R.   RO   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR:    s    "c         C   s    |  j  j |  j d | |  d S(   s?   Delete the characters between INDEX1 and INDEX2 (not included).R  N(   R.   RP   R   (   RR   R   R!  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s"   |  j  |  j j |  j d |   S(   s   Return tuple (x,y,width,height,baseline) giving the bounding box
        and baseline position of the visible part of the line containing
        the character at INDEX.t	   dlineinfo(   R  R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR;    s    c   
      K   s   g  } d } d } | s3 g  } | d  } | } n  z t | t  s[ |  j |  } } n  | d | g 7} x, | D]$ }	 | |	 rr | j d |	  qr qr W| j |  | r | j |  n  |  j j |  j d |  | SWd | r |  j |  n  Xd S(   s  Return the contents of the widget between index1 and index2.

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

        If the 'command' argument is given, it is called once for each element
        of the list of triples, with the values of each triple serving as the
        arguments to the function. In this case the list is not returned.c         S   s   | j  |  | | f  d  S(   N(   Re   (   R4   R   R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   append_triple  s    s   -commandR)   t   dumpN(	   R   R	   R   R   Re   R.   RP   R   RX   (
   RR   R   R!  R   R   R   t	   func_nameR   R<  R4   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR=    s*    	
 c         G   s   |  j  j |  j d |  S(   sr  Internal 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

        t   edit(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR?    s    c         C   s   |  j  d |  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.
        t   modified(   R?  (   RR   t   arg(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   edit_modified  s    	c         C   s   |  j  d  S(   s  Redo the last undone edit

        When the undo option is true, reapplies the last
        undone edits provided no other edits were done since
        then. Generates an error when the redo stack is empty.
        Does nothing when the undo option is false.
        t   redo(   R?  (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   edit_redo  s    c         C   s   |  j  d  S(   s(   Clears the undo and redo stacks
        t   reset(   R?  (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   edit_reset  s    c         C   s   |  j  d  S(   sn   Inserts a separator (boundary) on the undo stack.

        Does nothing when the undo option is false
        R  (   R?  (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   edit_separator   s    c         C   s   |  j  d  S(   sD  Undoes 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
        t   undo(   R?  (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   edit_undo  s    	c         C   s   |  j  j |  j d | |  S(   s5   Return the text from INDEX1 to INDEX2 (not included).R]   (   R.   RP   R   (   RR   R   R!  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]     s    c         C   sY   | d  d k r d | } n  | d d k r: | d  } n  |  j  j |  j d d | |  S(   s9   Return the value of OPTION of an embedded image at INDEX.i   R)   iRi  R  R  (   R.   RP   R   (   RR   R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   image_cget  s
    c         K   s   |  j  d d | f | |  S(   s%   Configure an embedded image at INDEX.R  R  (   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   image_configure  s    c         K   s+   |  j  j |  j d d | |  j | |   S(   s"   Create an embedded image at INDEX.R  R.  (   R.   RP   R   R   (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   image_create   s    	c         C   s   |  j  j |  j d d  S(   s3   Return all names of embedded images in this widget.R  R  (   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  %  s    c         C   s   t  |  j j |  j d |   S(   s1   Return the index in the form line.char for INDEX.R  (   R   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  (  s    c         G   s'   |  j  j |  j d | | f |  d S(   s   Insert CHARS before the characters at INDEX. An additional
        tag can be given in ARGS. Additional CHARS and tags can follow in ARGS.R  N(   R.   RP   R   (   RR   R  t   charsR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  +  s    c         C   s"   |  j  j |  j d d | | f  S(   s   Change the gravity of a mark MARKNAME to DIRECTION (LEFT or RIGHT).
        Return the current value if None is given for DIRECTION.R  t   gravity(   R.   RP   R   (   RR   t   markNamet	   direction(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   mark_gravity/  s    	c         C   s%   |  j  j |  j  j |  j d d   S(   s   Return all mark names.R  R  (   R.   R*   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   mark_names4  s    c         C   s#   |  j  j |  j d d | |  d S(   s0   Set mark MARKNAME before the character at INDEX.R  RN   N(   R.   RP   R   (   RR   RO  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   mark_set8  s    c         G   s$   |  j  j |  j d d f |  d S(   s   Delete all marks in MARKNAMES.R  t   unsetN(   R.   RP   R   (   RR   t	   markNames(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   mark_unset;  s    c         C   s"   |  j  j |  j d d |  p! d S(   s-   Return the name of the next mark after INDEX.R  t   nextN(   R.   RP   R   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   mark_next>  s    c         C   s"   |  j  j |  j d d |  p! d S(   s2   Return the name of the previous mark before INDEX.R  t   previousN(   R.   RP   R   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   mark_previousA  s    c         C   s#   |  j  j |  j d d | |  d S(   s&   Remember the current X, Y coordinates.R  R  N(   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  D  s    c         C   s#   |  j  j |  j d d | |  d S(   s~   Adjust the view of the text to 10 times the
        difference between X and Y and the coordinates given in
        scan_mark.R  R  N(   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  G  s    c         C   s(  |  j  d g } | r% | j d  n  | r; | j d  n  | rQ | j d  n  | rg | j d  n  | r} | j d  n  |
 r | j d  n  |	 r | j d  | j |	  n  | r | d	 d
 k r | j d  n  | j |  | j |  | r| j |  n  t |  j j t |    S(   s   Search PATTERN beginning from INDEX until STOPINDEX.
        Return the index of the first character of a match or an
        empty string.R   s	   -forwardss
   -backwardss   -exacts   -regexps   -nocases   -elides   -counti    R)   s   --(   R   Re   R   R.   RP   R   (   RR   R   R  t	   stopindext   forwardst	   backwardst   exactt   regexpt   nocaseR  t   elideR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   L  s.              c         C   s   |  j  j |  j d |  d S(   s3   Scroll such that the character at INDEX is visible.R  N(   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  _  s    c         G   s*   |  j  j |  j d d | | f |  d S(   s|   Add tag TAGNAME to all characters between INDEX1 and index2 in ARGS.
        Additional pairs of indices may follow in ARGS.t   tagR   N(   R.   RP   R   (   RR   t   tagNameR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   tag_addb  s    	c         C   s<   |  j  j |  j d d | | d  | r8 |  j |  n  d S(   sg   Unbind for all characters with TAGNAME for event SEQUENCE  the
        function identified with FUNCID.Rb  R\  RE   N(   R.   RP   R   RX   (   RR   Rc  RX  RZ  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  g  s    "c         C   s%   |  j  |  j d d | 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.Rb  R\  (   R[  R   (   RR   Rc  RX  R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  m  s    c         C   sY   | d  d k r d | } n  | d d k r: | d  } n  |  j  j |  j d d | |  S(   s+   Return the value of OPTION for tag TAGNAME.i   R)   iRi  Rb  R  (   R.   RP   R   (   RR   Rc  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   tag_cgetu  s
    c         K   s   |  j  d d | f | |  S(   s   Configure a tag TAGNAME.Rb  R  (   R  (   RR   Rc  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   tag_configure|  s    c         G   s$   |  j  j |  j d d f |  d S(   s   Delete all tags in TAGNAMES.Rb  R  N(   R.   RP   R   (   RR   t   tagNames(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   tag_delete  s    c         C   s#   |  j  j |  j d d | |  d S(   s`   Change the priority of tag TAGNAME such that it is lower
        than the priority of BELOWTHIS.Rb  R   N(   R.   RP   R   (   RR   Rc  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s(   |  j  j |  j  j |  j d d |   S(   s   Return a list of all tag names.Rb  R  (   R.   R*   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   tag_names  s    	c         C   s.   |  j  j |  j  j |  j d d | | |   S(   s   Return a list of start and end index for the first sequence of
        characters between INDEX1 and INDEX2 which all have tag TAGNAME.
        The text is searched forward from INDEX1.Rb  t	   nextrange(   R.   R*   RP   R   (   RR   Rc  R   R!  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   tag_nextrange  s    c         C   s.   |  j  j |  j  j |  j d d | | |   S(   s   Return a list of start and end index for the first sequence of
        characters between INDEX1 and INDEX2 which all have tag TAGNAME.
        The text is searched backwards from INDEX1.Rb  t	   prevrange(   R.   R*   RP   R   (   RR   Rc  R   R!  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   tag_prevrange  s    c         C   s#   |  j  j |  j d d | |  d S(   sa   Change the priority of tag TAGNAME such that it is higher
        than the priority of ABOVETHIS.Rb  R   N(   R.   RP   R   (   RR   Rc  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    	c         C   s(   |  j  j |  j  j |  j d d |   S(   s7   Return a list of ranges of text which have tag TAGNAME.Rb  t   ranges(   R.   R*   RP   R   (   RR   Rc  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   tag_ranges  s    c         C   s&   |  j  j |  j d d | | |  d S(   sA   Remove tag TAGNAME from all characters between INDEX1 and INDEX2.Rb  Rm   N(   R.   RP   R   (   RR   Rc  R   R!  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   tag_remove  s    	c         C   sY   | d  d k r d | } n  | d d k r: | d  } n  |  j  j |  j d d | |  S(   s:   Return the value of OPTION of an embedded window at INDEX.i   R)   iRi  R   R  (   R.   RP   R   (   RR   R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   window_cget  s
    c         K   s   |  j  d d | f | |  S(   s&   Configure an embedded window at INDEX.R   R  (   R  (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   window_configure  s    c         K   s3   |  j  j |  j d d | f |  j | |   d S(   s   Create a window at INDEX.R   R.  N(   R.   RP   R   R   (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   window_create  s    	c         C   s%   |  j  j |  j  j |  j d d   S(   s4   Return all names of embedded windows in this widget.R   R  (   R.   R*   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   window_names  s    	c         G   s$   |  j  j |  j d d f |  d S(   s   Obsolete function, use see.R  s
   -pickplaceN(   R.   RP   R   (   RR   RW  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   yview_pickplace  s    N(:   R7   R8   R9   R   RU   R  R4  R5  R6  R7  R8  R:  R  R;  R=  R?  RB  RD  RF  RG  RI  R]   RJ  RK  RL  R  R  R  RQ  RR  RS  RV  RX  RZ  R  R  R   R  Rd  R  R  Re  Rf  t
   tag_configRh  R  Ri  Rk  Rm  R  Ro  Rp  Rq  Rr  t   window_configRs  Rt  Ru  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR3  u  sr   							(		
																						t   _setitc           B   s#   e  Z d  Z d d  Z d   Z RS(   s>   Internal class. It wraps the command in the widget OptionMenu.c         C   s   | |  _  | |  _ | |  _ d  S(   N(   t   _setit__valuet   _setit__vart   _setit__callback(   RR   t   varR   Rg   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s    		c         G   s6   |  j  j |  j  |  j r2 |  j |  j |  n  d  S(   N(   Rz  RN   Ry  R{  (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRa     s    	N(   R7   R8   R9   R   RU   Ra   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRx    s   t
   OptionMenuc           B   s)   e  Z d  Z d   Z d   Z d   Z RS(   s?   OptionMenu which allows the user to select a value from a menu.c   
   	   O   s"  i d d 6| d 6d d 6t  d 6d d 6d d	 6} t j |  | d
 |  d |  _ t |  d d d d } |  _ | j |  _ | j d  } d | k r | d =n  | r t	 d | j
   d  n  | j d | d t | | |   x0 | D]( }	 | j d |	 d t | |	 |   q W| |  d <d S(   s   Construct an optionmenu widget with the parent MASTER, with
        the resource textvariable set to VARIABLE, the initially selected
        value VALUE, the other menu values VALUES and an additional
        keyword argument command.i   t   borderwidtht   textvariablei   t   indicatoront   reliefR$   R  t   highlightthicknessR)  t   tk_optionMenuRT   R  t   tearoffi    R   s   unknown option -R  N(   t   RAISEDRr  RU   Rm  R  t   _OptionMenu__menuR   t   menunameR]   R   R  R  Rx  (
   RR   RS   R_   R   RD  t   kwargsR   R  Rg   R'   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s$    
	
c         C   s#   | d k r |  j  St j |  |  S(   NR  (   R  Rr  R  (   RR   RT   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   t  j |   d |  _ d S(   s,   Destroy this widget and the associated menu.N(   R(  R   R   R  (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    (   R7   R8   R9   RU   R  R   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR}    s   		t   Imagec           B   st   e  Z d  Z d Z d i  d d  Z d   Z d   Z d   Z d   Z	 d   Z
 e
 Z d   Z d	   Z d
   Z RS(   s   Base class for images.i    c   	      K   s^  d  |  _ | s* t } | s* t d  q* n  t | d |  |  _ | s t j d 7_ d t j f } | d d k r d | d } q n  | r | r t | | f  } n | r | } n  d } xp | j	   D]b \ } } t
 | d  r |  j |  } n! | d k r|  j j |  } n  | d | | f } q W|  j j d d | | f |  | |  _ d  S(   Ns   Too early to create imageR.   i   s	   pyimage%ri    R)   Ri  Ra   R   t   maskdataR  R.  (    (   R   R  (   R   RT   R;   R+   RW  R.   R  t   _last_idR(   R!   Rj  R   t   _createbytearrayRP   (	   RR   t   imgtypeRT   R#   RS   R   R  R&   R'   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s0    	   	 c         C   s   |  j  S(   N(   RT   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRZ     RE   c         C   sA   |  j  r= y |  j j d d |  j   Wq= t k
 r9 q= Xn  d  S(   NR  R  (   RT   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRY   	  s
    	c         C   s$   |  j  j |  j d d | |  d  S(   NR  R)   (   R.   RP   RT   (   RR   R4   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  j |  j d d |  S(   NR  R)   (   R.   RP   RT   (   RR   R4   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         K   s   d	 } x t  |  j   D] \ } } | d k	 r | d d k rN | d  } n  t | d  ro |  j |  } n! | d
 k r |  j j |  } n  | d | | f } q q W|  j j |  j d f |  d S(   s   Configure the image.iRi  Ra   R   R  R)   R  N(    (   R   R  (	   R(   R!   R   Rj  R   R.   R  RP   RT   (   RR   R   R   R&   R'   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s     c         C   s   t  |  j j d d |  j   S(   s   Return the height of the image.R  R   (   Ry   R.   RP   RT   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   !  s    c         C   s   |  j  j d d |  j  S(   s7   Return the type of the image, e.g. "photo" or "bitmap".R  R   (   R.   RP   RT   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   %  s    c         C   s   t  |  j j d d |  j   S(   s   Return the width of the image.R  RK  (   Ry   R.   RP   RT   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRK  (  s    N(   R7   R8   R9   R  R   RU   RZ   RY   R  R  R  R  R   R   RK  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s   							t
   PhotoImagec           B   s   e  Z d  Z d i  d d  Z d   Z d   Z d   Z d   Z d d  Z	 d d  Z
 d	   Z d d
  Z d d d  Z RS(   s=   Widget which can display images in PGM, PPM, GIF, PNG format.c         K   s    t  j |  d | | | |  d S(   st   Create an image with NAME.

        Valid resource names: data, format, file, gamma, height, palette,
        width.t   photoN(   R  RU   (   RR   RT   R#   RS   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   /  s    c         C   s   |  j  j |  j d  d S(   s   Display a transparent image.t   blankN(   R.   RP   RT   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  5  s    c         C   s   |  j  j |  j d d |  S(   s   Return the value of OPTION.R  R)   (   R.   RP   RT   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  8  s    c         C   s   |  j  j |  j d d |  S(   NR  R)   (   R.   RP   RT   (   RR   R4   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  <  s    c         C   s/   t  d |  j  } |  j j | d |  j  | S(   s;   Return a new PhotoImage with the same image as this widget.RS   t   copy(   R  R.   RP   RT   (   RR   t	   destImage(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  ?  s    RE   c         C   sM   t  d |  j  } | d k r' | } n  |  j j | d |  j d | |  | S(   s   Return a new PhotoImage with the same image as this widget
        but zoom it with a factor of x in the X direction and y in the Y
        direction.  If y is not given, the default value is the same as x.
        RS   RE   R  s   -zoom(   R  R.   RP   RT   (   RR   RA  RN  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   zoomD  s
     	"c         C   sM   t  d |  j  } | d k r' | } n  |  j j | d |  j d | |  | S(   s   Return a new PhotoImage based on the same image as this widget
        but use only every Xth or Yth pixel.  If y is not given, the
        default value is the same as x.
        RS   RE   R  s
   -subsample(   R  R.   RP   RT   (   RR   RA  RN  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   subsampleM  s
     	"c         C   s   |  j  j |  j d | |  S(   s8   Return the color (red, green, blue) of the pixel at X,Y.R]   (   R.   RP   RT   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]   V  s    c         C   s`   |  j  d | f } | rL | d d k r5 | d } n  | d t |  } n  |  j j |  d S(   sz   Put row formatted colors to image starting from
        position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))t   puti    s   -toi   N(   s   -to(   RT   R   R.   RP   (   RR   R   R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  Y  s    c         C   s\   |  j  d | f } | r+ | d | f } n  | rH | d t |  } n  |  j j |  d S(   sR   Write image to file FILENAME in FORMAT starting from
        position FROM_COORDS.t   writes   -formats   -fromN(   s   -from(   RT   R   R.   RP   (   RR   t   filenamet   formatt   from_coordsR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  c  s    N(   R7   R8   R9   R   RU   R  R  R  R  R  R  R]   R  R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  -  s   							
t   BitmapImagec           B   s    e  Z d  Z d i  d d  Z RS(   s.   Widget which can display images in XBM format.c         K   s    t  j |  d | | | |  d S(   sq   Create a bitmap with NAME.

        Valid resource names: background, data, file, foreground, maskdata, maskfile.R  N(   R  RU   (   RR   RT   R#   RS   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   o  s    N(   R7   R8   R9   R   RU   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  m  s   c           C   s   t  j j t  j j d d   S(   NR  R  (   R;   R.   R*   RP   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  u  s    c           C   s   t  j j t  j j d d   S(   NR  R  (   R;   R.   R*   RP   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  x  s    t   Spinboxc           B   s   e  Z d  Z d i  d  Z d   Z d d  Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z d
   Z d   Z d   Z d   Z d   Z d   Z d d  Z RS(   s   spinbox widget.c         K   s   t  j |  | d | |  d S(   s  Construct a spinbox widget with the parent MASTER.

        STANDARD OPTIONS

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

        WIDGET-SPECIFIC OPTIONS

            buttonbackground, buttoncursor,
            buttondownrelief, buttonuprelief,
            command, disabledbackground,
            disabledforeground, format, from,
            invalidcommand, increment,
            readonlybackground, state, to,
            validate, validatecommand values,
            width, wrap,
        t   spinboxN(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   ~  s    c         C   s(   |  j  |  j j |  j d |   p' d S(   s  Return a tuple of X1,Y1,X2,Y2 coordinates for a
        rectangle which encloses the character given by index.

        The first two elements of the list give the x and y
        coordinates of the upper-left corner of the screen
        area covered by the character (in pixels relative
        to the widget) and the last two elements give the
        width and height of the character, in pixels. The
        bounding box may refer to a region outside the
        visible area of the window.
        R  N(   R  R.   RP   R   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  j |  j d | |  S(   sW  Delete 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.   RP   R   (   RR   R  R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    	c         C   s   |  j  j |  j d  S(   s   Returns the spinbox's stringR]   (   R.   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR]     s    c         C   s   |  j  j |  j d |  S(   s   Alter the position of the insertion cursor.

        The insertion cursor will be displayed just before
        the character given by index. Returns an empty string
        R  (   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  j |  j d | |  S(   s{   Returns the name of the widget at position x, y

        Return value is one of: none, buttondown, buttonup, entry
        R.  (   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR.    s    c         C   s   |  j  j |  j d |  S(   s;   Returns the numerical index corresponding to index
        R  (   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  j |  j d | |  S(   sD   Insert string s at index

         Returns an empty string.
        R  (   R.   RP   R   (   RR   R  R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  j |  j d |  S(   s   Causes the specified element to be invoked

        The element could be buttondown or buttonup
        triggering the action associated with it.
        R  (   R.   RP   R   (   RR   t   element(    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         G   s,   |  j  |  j j |  j d f |   p+ d S(   s   Internal function.R  (    (   R  R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  d |  S(   s   Records x and the current view in the spinbox window;

        used in conjunction with later scan dragto commands.
        Typically this command is associated with a mouse button
        press in the widget. It returns an empty string.
        R  (   R  (   RR   RA  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  d |  S(   s  Compute the difference between the given x argument
        and the x argument to the last scan mark command

        It then adjusts the view left or right by 10 times the
        difference in x-coordinates. This command is typically
        associated with mouse motion events in the widget, to
        produce the effect of dragging the spinbox at high speed
        through the window. The return value is an empty string.
        R  (   R  (   RR   RA  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    
c         G   s,   |  j  |  j j |  j d f |   p+ d S(   s   Internal function.R   (    (   R  R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    c         C   s   |  j  d |  S(   s  Locate 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.
        R  (   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    c         C   s   |  j  d  S(   ss   Clear the selection

        If the selection isn't in this widget then the
        command has no effect.
        R   (   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR     s    c         C   s   |  j  j |  j d d |  S(   s   Sets or gets the currently selected element.

        If a spinbutton element is specified, it will be
        displayed depressed.
        R   R  (   R.   RP   R   (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   selection_element  s    N(   R7   R8   R9   R   RU   R  R  R]   R  R.  R  R  R  R  R  R  R   R  R   R  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  |  s"   														t
   LabelFramec           B   s   e  Z d  Z d i  d  Z RS(   s   labelframe widget.c         K   s   t  j |  | d | |  d S(   s  Construct a labelframe widget with the parent MASTER.

        STANDARD OPTIONS

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

        WIDGET-SPECIFIC OPTIONS

            background, class, colormap, container,
            height, labelanchor, labelwidget,
            visual, width
        t
   labelframeN(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s    N(   R7   R8   R9   R   RU   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s   t   PanedWindowc           B   s   e  Z d  Z d i  d  Z d   Z d   Z e Z 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   Z RS(   s   panedwindow widget.c         K   s   t  j |  | d | |  d S(   sT  Construct 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(   Rr  RU   (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU   2  s    c         K   s-   |  j  j |  j d | f |  j |   d S(   s+  Add a child widget to the panedwindow in a new pane.

        The child argument is the name of the child widget
        followed by pairs of arguments that specify how to
        manage the windows. The possible options and values
        are the ones accepted by the paneconfigure method.
        R   N(   R.   RP   R   R   (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR   B  s    c         C   s   |  j  j |  j d |  d S(   s   Remove the pane containing child from the panedwindow

        All geometry management options for child will be forgotten.
        R]  N(   R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRm   L  s    c         C   s   |  j  j |  j d | |  S(   s  Identify the panedwindow component at point x, y

        If the point is over a sash or a sash handle, the result
        is a two element list containing the index of the sash or
        handle, and a word indicating whether it is over a sash
        or a handle, such as {0 sash} or {2 handle}. If the point
        is over any other part of the panedwindow, the result is
        an empty list.
        R.  (   R.   RP   R   (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR.  T  s    
c         G   s,   |  j  |  j j |  j d f |   p+ d S(   s   Internal function.t   proxy(    (   R  R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  `  s    c         C   s   |  j  d  S(   sB   Return the x and y pair of the most recent proxy location
        t   coord(   R  (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   proxy_coorde  s    c         C   s   |  j  d  S(   s+   Remove the proxy from the display.
        R]  (   R  (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   proxy_forgetj  s    c         C   s   |  j  d | |  S(   s:   Place the proxy at the given x and y coordinates.
        R  (   R  (   RR   RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   proxy_placeo  s    c         G   s,   |  j  |  j j |  j d f |   p+ d S(   s   Internal function.t   sash(    (   R  R.   RP   R   (   RR   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  t  s    c         C   s   |  j  d |  S(   sA  Return 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  (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   sash_coordy  s    c         C   s   |  j  d |  S(   s   Records x and y for the sash given by index;

        Used in conjunction with later dragto commands to move the sash.
        R  (   R  (   RR   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt	   sash_mark  s    c         C   s   |  j  d | | |  S(   s?   Place the sash given by index at the given coordinates
        R  (   R  (   RR   R  RA  RN  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt
   sash_place  s    c         C   s'   |  j  j |  j d f | d | f  S(   sw   Query a management option for window.

        Option may be any value allowed by the paneconfigure subcommand
        t   panecgetR)   (   R.   RP   R   (   RR   R   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    	c         K   s   | d k r) | r) |  j |  j d |  St |  t k r_ | r_ |  j |  j d | d |  S|  j j |  j d | f |  j | |   d S(   s  Query or modify the management options for window.

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

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

        t   paneconfigureR)   N(	   R   R  R   R   R   R  R.   RP   R   (   RR   R  R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    Dc         C   s"   |  j  j |  j  j |  j d   S(   s+   Returns an ordered list of the child panes.t   panes(   R.   R*   RP   R   (   RR   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s    N(   R7   R8   R9   R   RU   R   Rm   R]  R.  R  R  R  R  R  R  R  R  R  R  t
   paneconfigR  (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR  0  s$   	
											Kt
   Studbuttonc           B   s   e  Z d i  d   Z RS(   c         K   si   t  j |  | d | |  |  j d |  j  |  j d |  j  |  j d |  j  |  j d |  j  d  S(   Nt
   studbuttons   <Any-Enter>s   <Any-Leave>s   <1>s   <ButtonRelease-1>(   Rr  RU   R\  Rz  R|  R}  R~  (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s
    N(   R7   R8   R   RU   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s   t	   Tributtonc           B   s   e  Z d i  d   Z RS(   c         K   s   t  j |  | d | |  |  j d |  j  |  j d |  j  |  j d |  j  |  j d |  j  |  d |  d <|  d |  d <d  S(	   Nt	   tributtons   <Any-Enter>s   <Any-Leave>s   <1>s   <ButtonRelease-1>t   bgt   fgt   activebackground(   Rr  RU   R\  Rz  R|  R}  R~  (   RR   RS   R#   R   (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyRU     s    N(   R7   R8   R   RU   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyR    s   c          C   s   t    }  d t } t d k rM y | t d d  } WqM t k
 rI qM Xn  t |  d | } | j   t |  d d d |  d  } | j   | |  _ t |  d d	 d |  j } | j   |  j	   |  j
   |  j   |  j   d  S(
   Ns   This is Tcl/Tk version %sg333333 @s   
This should be a cedilla: s
   iso-8859-1R  s	   Click me!R   c         S   s   |  j  j d d |  j  d  S(   NR  s   [%s](   t   testR  (   R  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   <lambda>  s   t   QUIT(   R'  t
   TclVersionR   t	   NameErrorR  R  Rx  R  R   R  R   R  R~   (   R  R  R  R  Rc  (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   _test  s(    	
	

	



t   __main__(c   R9   t   __version__R  t   platformt   FixTkR  t   ImportErrorR%   R   t   tkinterR   R  t   Tkconstantst   reR/  R  RA  RC  RB  R  t   READABLEt   WRITABLEt	   EXCEPTIONt   createfilehandlerR   R   t   deletefilehandlert   compileR   R   R   R   R   R(   t   TrueR5   R6   R:   R;   R<   R>   RC   RM   RD   Ru   Rw   Rz   R|   R~   R?   Ry   R{   RO   R   R`   R  R  R  R'  RZ  R[  Rb  Rf  Rk  Rr  Rs  Rx  R  R  R  R  R  R  R  R  R  R  R  R  R(  R*  R,  R-  R/  R3  Rx  R}  R  R  R  R  R  R  R  R  R  R  R  R7   (    (    (    s$   /usr/lib/python2.7/lib-tk/Tkinter.pyt   <module>   s   	

			    			
  	  ,		k	    Q}',/8>				A[}!( I%@@			