Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/lib-tk/ttk.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^c@sVdZdZdZddddddd	d
ddd
dddddddddddddgZddlZddlmZmZmZejdkr�e	ne
Zd�Ze
d �Z
e
ed!�Zd"�Ze
d#�Ze
d$�Zd%d&d'�Zd(�Ze	d)�Zd*�Zd+�Zd,�Zd-�Zd.�Zd/�Zed0�Zdefd1��YZd2ejfd3��YZdefd4��YZ defd5��YZ!deej"fd6��YZ"de"fd7��YZ#defd8��YZ$defd9��YZ%d	efd:��YZ&e&Z'defd;��YZ(defd<��YZ)d
eej*fd=��YZ+e+Z*defd>��YZ,defd?��YZ-deej.fd@��YZ.deej/fdA��YZ/defdB��YZ0defdC��YZ1deej2ej3fdD��YZ4de$efdE��YZ5de(fdF��YZ6dS(Gs�Ttk wrapper.

This module provides classes to allow using Tk themed widget set.

Ttk is based on a revised and enhanced version of
TIP #48 (http://tip.tcl.tk/48) specified style engine.

Its basic idea is to separate, to the extent possible, the code
implementing a widget's behavior from the code implementing its
appearance. Widget class bindings are primarily responsible for
maintaining the widget state and invoking callbacks, all aspects
of the widgets appearance lies at Themes.
s0.3.1s!Guilherme Polo <[email protected]>tButtontCheckbuttontComboboxtEntrytFrametLabelt
Labelframet
LabelFramet
MenubuttontNotebooktPanedwindowtPanedWindowtProgressbartRadiobuttontScalet	Scrollbart	SeparatortSizegriptStyletTreeviewtLabeledScalet
OptionMenut
tclobjs_to_pytsetup_masteri�N(t_flattent_joint
_stringifyg!@cCsatr]ddl}|jjd�}|rA|jjd|�n|jjd�t|_ndS(Ni�tTILE_LIBRARYs(global auto_path; lappend auto_path {%s}spackage require tile(t
_REQUIRE_TILEtostenvirontgetttktevaltTruet_tile_loaded(tmasterRttilelib((s /sys/lib/python2.7/lib-tk/ttk.pyt
_load_tile"s	cCs=|rt|�}n$t|ttf�r9t|�}n|S(sInternal function.(Rt
isinstancetlistttupleR(tvaluetscript((s /sys/lib/python2.7/lib-tk/ttk.pyt_format_optvalue1s
cCsyg}xf|j�D]X\}}|s2||kr|jd|�|dk	rk|jt||��qkqqWt|�S(s�Formats optdict to a tuple to pass it to tk.call.

    E.g. (script=False):
      {'foreground': 'blue', 'padding': [1, 2, 3, 4]} returns:
      ('-foreground', 'blue', '-padding', '1 2 3 4')s-%sN(t	iteritemstappendtNoneR,R(toptdictR+tignoretoptstoptR*((s /sys/lib/python2.7/lib-tk/ttk.pyt_format_optdict;s cCs�g}x�|D]}|d }|d}|dt|�dkrT|dpNd}ndj|�}|j|�|dk	r
|j|�q
q
W|S(Ni�iitt (tlentjoinR.R/(titemstopt_valtitemtstatetval((s /sys/lib/python2.7/lib-tk/ttk.pyt_mapdict_valuesKs



cCsSg}x@|j�D]2\}}|jd|tt|�|�f�qWt|�S(s�Formats mapdict to pass it to tk.call.

    E.g. (script=False):
      {'expand': [('active', 'selected', 'grey'), ('focus', [1, 2, 3, 4])]}

      returns:

      ('-expand', '{active selected} grey focus {1, 2, 3, 4}')s-%s(R-textendR,R>R(tmapdictR+R2R3R*((s /sys/lib/python2.7/lib-tk/ttk.pyt_format_mapdictds


cOsd}d}|d
kr�|dkrW|d}tt|d��}d||f}n9|d \}}	tt|d��}
d||	|
f}t||�}nD|dkr�d}t|�dkr�|d|�f}q�|rd	|}d
j|�}n||fS(sAFormats args and kw according to the given element factory etype.timagetvsapiiis%s %sis%s %s %stfroms{%s}R6N((RBRC(R/RR>R4R7R,R8(tetypeR+targstkwtspecR2tinamet	imagespect
class_nametpart_idtstatemap((s /sys/lib/python2.7/lib-tk/ttk.pyt_format_elemcreateus&


iic
Csg}x�D]�}|\}}|p(i}djt|td	��}dd|||rcd|ndf}d|kr�|j|d�||7}t|d||�\}	}|j|	�||8}|jdd|�q
|j|�q
Wdj|�|fS(
s#Formats a layout list so we can pass the result to ttk::style
    layout and ttk::style settings. Note that the layout doesn't has to
    be a list necessarily.

    E.g.:
      [("Menubutton.background", None),
       ("Menubutton.button", {"children":
           [("Menubutton.focus", {"children":
               [("Menubutton.padding", {"children":
                [("Menubutton.label", {"side": "left", "expand": 1})]
               })]
           })]
       }),
       ("Menubutton.indicator", {"side": "right"})
      ]

      returns:

      Menubutton.background
      Menubutton.button -children {
        Menubutton.focus -children {
          Menubutton.padding -children {
            Menubutton.label -side left -expand 1
          }
        }
      }
      Menubutton.indicator -side rightR6tchildrens%s%s%ss %sR5s -children {s%s}s
(RO(R8R4R"R.t_format_layoutlist(
tlayouttindenttindent_sizeR+tlayout_elemtelemR2tfoptstheadt	newscript((s /sys/lib/python2.7/lib-tk/ttk.pyRP�s 
'



cCs�g}x�|j�D]�\}}|jd�rddjt|dt��}|jd||f�n|jd�r�djt|dt��}|jd||f�nd|kr�ds�d}nt|d�\}}|jd||f�n|jd	�r|d	}|d
}d}x4|t|�krWt	||d�rW|d7}q$W|d|!}	|t|�kr�||r�||ni}
t
|t|	|
�\}}|jd
||||f�qqWdj|�S(s�Returns an appropriate script, based on settings, according to
    theme_settings definition to be used by theme_settings and
    theme_create.t	configureR6sttk::style configure %s %s;tmapsttk::style map %s %s;RQtnullsttk::style layout %s {
%s
}selement createiiR-s%ttk::style element create %s %s %s %ss
(R-RR8R4R"R.RARPR7thasattrRN(tsettingsR+tnameR2tst_teoptsREtargctelemargstelemkwRH((s /sys/lib/python2.7/lib-tk/ttk.pyt_script_from_settings�s2
	

)
,	cCsb|rdnd}i}t|�}x1t||�D] \}}||t|�|<q4Wt|�S(s�Break tuple in pairs, format it properly, then build the return
    dict. If cut_minus is True, the supposed '-' prefixing options will
    be removed.

    ttuple is expected to contain an even number of elements.ii(titertziptstrR(tttuplet	cut_minust	opt_starttretdicttitR3R=((s /sys/lib/python2.7/lib-tk/ttk.pyt_dict_from_tcltuple�scCs�g}xp|D]h}t|dd�}|dkrA|j|�q
t|�}|dkrh|j�}n|j|�q
Wt|�}gt||�D]}t|�^q�S(stConstruct a list from the given statespec tuple according to the
    accepted statespec accepted by _format_mapdict.ttypenamet	StateSpecN(tgetattrR/R.RhtsplitRfRgR(tstupletnvalR=RoRmRH((s /sys/lib/python2.7/lib-tk/ttk.pyt_list_from_statespecs
cCs�|j|�}g}d}x�|t|�kr�||}i}|j||f�|d7}x||t|�kr�|||d!\}}|jd�s�Pn|d}|d7}|dkr�t||�}n|||<q`WqW|S(spConstruct a list from the tuple returned by ttk::layout, this is
    somewhat the reverse of _format_layoutlist.iiit-RO(t	splitlistR7R.t
startswitht_list_from_layouttuple(R tltupletrestindxR^R2R3R=((s /sys/lib/python2.7/lib-tk/ttk.pyRys$



cGsFt|�}|j||�}t|�dr3|St|j|��S(sgFormat options then call Tk command with args and options and return
    the appropriate result.

    If no option is specified, a dict is returned. If a option is
    specified with the None value, the value for that option is returned.
    Otherwise, the function just sets the passed options and the caller
    shouldn't be expecting a return value anyway.i(R4tcallR7RnRw(R toptionsRFR{((s /sys/lib/python2.7/lib-tk/ttk.pyt_val_or_dict1s
cCs:t|�}yt|�}Wnttfk
r5nX|S(sAConverts a value to, hopefully, a more appropriate Python object.(tunicodetintt
ValueErrort	TypeError(R*((s /sys/lib/python2.7/lib-tk/ttk.pyt_convert_stringvalAscCs=t|t�r9d|kr*t|�}q9t|�}n|S(Nt.(R'RhtfloatR�(tx((s /sys/lib/python2.7/lib-tk/ttk.pyt
_to_numberKs
cCs�x�|j�D]�\}}|r{t|d�r{t|t�r{t|ddd�dkrit|�}q�tt|�}nt|d�r�t|�}n|||<q
W|S(sOReturns adict with its values converted from Tcl objects to Python
    objects.t__len__iRoRpN(	R-R\R't
basestringRqR/RuRZR�(tadictR3R=((s /sys/lib/python2.7/lib-tk/ttk.pyRSs%cCs@|dkr<tjr-tjp'tj�}q<td��n|S(sIf master is not None, itself is returned. If master is None,
    the default master is returned if there is one, otherwise a new
    master is created and returned.

    If it is not allowed to use the default root and master is None,
    RuntimeError is raised.sINo master specified and Tkinter is configured to not support default rootN(R/tTkintert_support_default_roott
_default_roottTktRuntimeError(R$((s /sys/lib/python2.7/lib-tk/ttk.pyRds	cBs�eZdZdZdd�Zdd�Zdd�Zddd�Zdd�Z	d�Z
d�Zd	�Zddd
�Z
d�Zd�Zdd
�ZRS(sManipulate style database.s
ttk::stylecCsGt|�}t|dt�s+t|�n||_|jj|_dS(NR#(RRqtFalseR&R$R (tselfR$((s /sys/lib/python2.7/lib-tk/ttk.pyt__init__zs

	cKs5|dk	rd||<nt|j||jd|�S(s�Query or sets the default value of the specified option(s) in
        style.

        Each key in kw is an option and each value is either a string or
        a sequence identifying the value for that option.RYN(R/RR t_name(R�tstylet	query_optRG((s /sys/lib/python2.7/lib-tk/ttk.pyRY�s
cKsr|dk	r>t|jj|jj|jd|d|���St|jj|jj|jd|t|����S(sSQuery or sets dynamic values of the specified option(s) in
        style.

        Each key in kw is an option and each value should be a list or a
        tuple (usually) containing statespecs grouped in tuples, or list,
        or something else of your preference. A statespec is compound of
        one or more states and then a value.RZs-%sN(R/RuR RwR}R�RnRA(R�R�R�RG((s /sys/lib/python2.7/lib-tk/ttk.pyRZ�s
&cCsA|rdj|�nd}|jj|jd|d|||�S(sReturns the value specified for option in style.

        If state is specified it is expected to be a sequence of one
        or more states. If the default argument is set, it is used as
        a fallback value in case no specification for option is found.R6R5tlookups-%s(R8R R}R�(R�R�toptionR<tdefault((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs\d}|rt|�d}n|dk	r4d}nt|j|jj|jd||��S(s�Define the widget layout for given style. If layoutspec is
        omitted, return the layout specification for given style.

        layoutspec is expected to be a list or an object different than
        None that evaluates to False if you want to "turn off" that style.
        If it is a list (or tuple, or something else), each item should be
        a tuple where the first item is the layout name and the second item
        should have the format described below:

        LAYOUTS

            A layout can contain the value None, if takes no options, or
            a dict of options specifying how to arrange the element.
            The layout mechanism uses a simplified version of the pack
            geometry manager: given an initial cavity, each element is
            allocated a parcel. Valid options/values are:

                side: whichside
                    Specifies which side of the cavity to place the
                    element; one of top, right, bottom or left. If
                    omitted, the element occupies the entire cavity.

                sticky: nswe
                    Specifies where the element is placed inside its
                    allocated parcel.

                children: [sublayout... ]
                    Specifies a list of elements to place inside the
                    element. Each element is a tuple (or other sequence)
                    where the first item is the layout name, and the other
                    is a LAYOUT.iR[RQN(R/RPRyR R}R�(R�R�t
layoutspectlspec((s /sys/lib/python2.7/lib-tk/ttk.pyRQ�s 		cOsDt|t||�\}}|jj|jdd||||�dS(s9Create a new element in the current theme of given etype.telementtcreateN(RNR�R R}R�(R�telementnameRERFRGRHR2((s /sys/lib/python2.7/lib-tk/ttk.pytelement_create�scCs%|jj|jj|jdd��S(s:Returns the list of elements defined in the current theme.R�tnames(R RwR}R�(R�((s /sys/lib/python2.7/lib-tk/ttk.pyt
element_names�scCs(|jj|jj|jdd|��S(s)Return the list of elementname's options.R�R~(R RwR}R�(R�R�((s /sys/lib/python2.7/lib-tk/ttk.pytelement_options�sc	Cso|rt|�nd}|rI|jj|jdd|d|d|�n"|jj|jdd|d|�dS(s.Creates a new theme.

        It is an error if themename already exists. If parent is
        specified, the new theme will inherit styles, elements and
        layouts from the specified parent theme. If settings are present,
        they are expected to have the same syntax used for theme_settings.R5tthemeR�s-parents	-settingsN(ReR R}R�(R�t	themenametparentR]R+((s /sys/lib/python2.7/lib-tk/ttk.pyttheme_create�scCs/t|�}|jj|jdd||�dS(s�Temporarily sets the current theme to themename, apply specified
        settings and then restore the previous theme.

        Each key in settings is a style and each value may contain the
        keys 'configure', 'map', 'layout' and 'element create' and they
        are expected to have the same format as specified by the methods
        configure, map, layout and element_create respectively.R�R]N(ReR R}R�(R�R�R]R+((s /sys/lib/python2.7/lib-tk/ttk.pyttheme_settings�scCs%|jj|jj|jdd��S(s#Returns a list of all known themes.R�R�(R RwR}R�(R�((s /sys/lib/python2.7/lib-tk/ttk.pyttheme_namesscCs3|dkr|jjd�S|jjd|�dS(s�If themename is None, returns the theme in use, otherwise, set
        the current theme to themename, refreshes all widgets and emits
        a <<ThemeChanged>> event.sreturn $ttk::currentThemes
ttk::setThemeN(R/R R!R}(R�R�((s /sys/lib/python2.7/lib-tk/ttk.pyt	theme_use
sN(t__name__t
__module__t__doc__R�R/R�RYRZR�RQR�R�R�R�R�R�R�(((s /sys/lib/python2.7/lib-tk/ttk.pyRus+					tWidgetcBs;eZdZdd�Zd�Zdd�Zdd�ZRS(s!Base class for Tk themed widgets.cCsKt|�}t|dt�s+t|�ntjj|||d|�dS(s�Constructs a Ttk Widget with the parent master.

        STANDARD OPTIONS

            class, cursor, takefocus, style

        SCROLLABLE WIDGET OPTIONS

            xscrollcommand, yscrollcommand

        LABEL WIDGET OPTIONS

            text, textvariable, underline, image, compound, width

        WIDGET STATES

            active, disabled, focus, pressed, selected, background,
            readonly, alternate, invalid
        R#RGN(RRqR�R&R�R�R�(R�R$t
widgetnameRG((s /sys/lib/python2.7/lib-tk/ttk.pyR�s
cCs|jj|jd||�S(s�Returns the name of the element at position x, y, or the empty
        string if the point does not lie within any element.

        x and y are pixel coordinates relative to the widget.tidentify(R R}t_w(R�R�ty((s /sys/lib/python2.7/lib-tk/ttk.pyR�7scOsS|jj|jj|jddj|���}|rI|rI|||�St|�S(s1Test the widget's state.

        If callback is not specified, returns True if the widget state
        matches statespec and False otherwise. If callback is specified,
        then it will be invoked with *args, **kw if the widget state
        matches statespec. statespec is expected to be a sequence.tinstateR6(R t
getbooleanR}R�R8tbool(R�t	statespectcallbackRFRGtret((s /sys/lib/python2.7/lib-tk/ttk.pyR�?s
	'
cCsI|dk	rdj|�}n|jjt|jj|jd|���S(sModify or inquire widget state.

        Widget state is returned if statespec is None, otherwise it is
        set according to the statespec flags and then a new state spec
        is returned indicating which flags were changed. statespec is
        expected to be a sequence.R6R<N(R/R8R RwRhR}R�(R�R�((s /sys/lib/python2.7/lib-tk/ttk.pyR<NsN(R�R�R�R/R�R�R�R<(((s /sys/lib/python2.7/lib-tk/ttk.pyR�s
	cBs#eZdZdd�Zd�ZRS(scTtk Button widget, displays a textual label and/or image, and
    evaluates a command when pressed.cKstj||d|�dS(sConstruct a Ttk Button widget with the parent master.

        STANDARD OPTIONS

            class, compound, cursor, image, state, style, takefocus,
            text, textvariable, underline, width

        WIDGET-SPECIFIC OPTIONS

            command, default, width
        sttk::buttonN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�_scCs|jj|jd�S(s/Invokes the command associated with the button.tinvoke(R R}R�(R�((s /sys/lib/python2.7/lib-tk/ttk.pyR�nsN(R�R�R�R/R�R�(((s /sys/lib/python2.7/lib-tk/ttk.pyR[scBs#eZdZdd�Zd�ZRS(s;Ttk Checkbutton widget which is either in on- or off-state.cKstj||d|�dS(s'Construct a Ttk Checkbutton widget with the parent master.

        STANDARD OPTIONS

            class, compound, cursor, image, state, style, takefocus,
            text, textvariable, underline, width

        WIDGET-SPECIFIC OPTIONS

            command, offvalue, onvalue, variable
        sttk::checkbuttonN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�vscCs|jj|jd�S(sWToggles between the selected and deselected states and
        invokes the associated command. If the widget is currently
        selected, sets the option variable to the offvalue option
        and deselects the widget; otherwise, sets the option variable
        to the option onvalue.

        Returns the result of the associated command.R�(R R}R�(R�((s /sys/lib/python2.7/lib-tk/ttk.pyR��sN(R�R�R�R/R�R�(((s /sys/lib/python2.7/lib-tk/ttk.pyRsscBs8eZdZddd�Zd�Zd�Zd�ZRS(seTtk Entry widget displays a one-line text string and allows that
    string to be edited by the user.cKs tj|||pd|�dS(s�Constructs a Ttk Entry widget with the parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus, xscrollcommand

        WIDGET-SPECIFIC OPTIONS

            exportselection, invalidcommand, justify, show, state,
            textvariable, validate, validatecommand, width

        VALIDATION MODES

            none, key, focus, focusin, focusout, all
        s
ttk::entryN(R�R�(R�R$twidgetRG((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs"|j|jj|jd|��S(sqReturn a tuple of (x, y, width, height) which describes the
        bounding box of the character given by index.tbbox(t_getintsR R}R�(R�tindex((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs|jj|jd||�S(sxReturns the name of the element at position x, y, or the
        empty string if the coordinates are outside the window.R�(R R}R�(R�R�R�((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs(t|jj|jj|jd���S(s�Force revalidation, independent of the conditions specified
        by the validate option. Returns False if validation fails, True
        if it succeeds. Sets or clears the invalid state accordingly.tvalidate(R�R R�R}R�(R�((s /sys/lib/python2.7/lib-tk/ttk.pyR��sN(R�R�R�R/R�R�R�R�(((s /sys/lib/python2.7/lib-tk/ttk.pyR�s
		cBs/eZdZdd�Zdd�Zd�ZRS(sMTtk Combobox widget combines a text field with a pop-down list of
    values.cKstj||d|�dS(sConstruct a Ttk Combobox widget with the parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus

        WIDGET-SPECIFIC OPTIONS

            exportselection, justify, height, postcommand, state,
            textvariable, values, width
        s
ttk::comboboxN(RR�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCsG|dkr.|jj|jj|jd��S|jj|jd|�S(sIf newindex is supplied, sets the combobox value to the
        element at position newindex in the list of values. Otherwise,
        returns the index of the current value in the list of values
        or -1 if the current value does not appear in the list.tcurrentN(R/R tgetintR}R�(R�tnewindex((s /sys/lib/python2.7/lib-tk/ttk.pyR��s"cCs|jj|jd|�dS(s(Sets the value of the combobox to value.tsetN(R R}R�(R�R*((s /sys/lib/python2.7/lib-tk/ttk.pyR��sN(R�R�R�R/R�R�R�(((s /sys/lib/python2.7/lib-tk/ttk.pyR�s
cBseZdZdd�ZRS(sJTtk Frame widget is a container, used to group other widgets
    together.cKstj||d|�dS(s�Construct a Ttk Frame with parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus

        WIDGET-SPECIFIC OPTIONS

            borderwidth, relief, padding, width, height
        s
ttk::frameN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR��sN(R�R�R�R/R�(((s /sys/lib/python2.7/lib-tk/ttk.pyR�scBseZdZdd�ZRS(s7Ttk Label widget displays a textual label and/or image.cKstj||d|�dS(sGConstruct a Ttk Label with parent master.

        STANDARD OPTIONS

            class, compound, cursor, image, style, takefocus, text,
            textvariable, underline, width

        WIDGET-SPECIFIC OPTIONS

            anchor, background, font, foreground, justify, padding,
            relief, text, wraplength
        s
ttk::labelN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR��s
N(R�R�R�R/R�(((s /sys/lib/python2.7/lib-tk/ttk.pyR�scBseZdZdd�ZRS(s�Ttk Labelframe widget is a container used to group other widgets
    together. It has an optional label, which may be a plain text string
    or another widget.cKstj||d|�dS(s�Construct a Ttk Labelframe with parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus

        WIDGET-SPECIFIC OPTIONS
            labelanchor, text, underline, padding, labelwidget, width,
            height
        sttk::labelframeN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�sN(R�R�R�R/R�(((s /sys/lib/python2.7/lib-tk/ttk.pyRscBseZdZdd�ZRS(sbTtk Menubutton widget displays a textual label and/or image, and
    displays a menu when pressed.cKstj||d|�dS(sConstruct a Ttk Menubutton with parent master.

        STANDARD OPTIONS

            class, compound, cursor, image, state, style, takefocus,
            text, textvariable, underline, width

        WIDGET-SPECIFIC OPTIONS

            direction, menu
        sttk::menubuttonN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�sN(R�R�R�R/R�(((s /sys/lib/python2.7/lib-tk/ttk.pyRscBszeZdZdd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
dd�Zdd	�Zd
�Z
d�ZRS(
s�Ttk Notebook widget manages a collection of windows and displays
    a single one at a time. Each child window is associated with a tab,
    which the user may select to change the currently-displayed window.cKstj||d|�dS(s\Construct a Ttk Notebook with parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus

        WIDGET-SPECIFIC OPTIONS

            height, padding, width

        TAB OPTIONS

            state, sticky, padding, text, image, compound, underline

        TAB IDENTIFIERS (tab_id)

            The tab_id argument found in several methods may take any of
            the following forms:

                * An integer between zero and the number of tabs
                * The name of a child window
                * A positional specification of the form "@x,y", which
                  defines the tab
                * The string "current", which identifies the
                  currently-selected tab
                * The string "end", which returns the number of tabs (only
                  valid for method index)
        s
ttk::notebookN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�.scKs&|jj|jd|t|��dS(s�Adds a new tab to the notebook.

        If window is currently managed by the notebook but hidden, it is
        restored to its previous position.taddN(R R}R�R4(R�tchildRG((s /sys/lib/python2.7/lib-tk/ttk.pyR�NscCs|jj|jd|�dS(sXRemoves the tab specified by tab_id, unmaps and unmanages the
        associated window.tforgetN(R R}R�(R�ttab_id((s /sys/lib/python2.7/lib-tk/ttk.pyR�VscCs|jj|jd|�dS(s�Hides the tab specified by tab_id.

        The tab will not be displayed, but the associated window remains
        managed by the notebook and its configuration remembered. Hidden
        tabs may be restored with the add command.thideN(R R}R�(R�R�((s /sys/lib/python2.7/lib-tk/ttk.pyR�\scCs|jj|jd||�S(sZReturns the name of the tab element at position x, y, or the
        empty string if none.R�(R R}R�(R�R�R�((s /sys/lib/python2.7/lib-tk/ttk.pyR�escCs%|jj|jj|jd|��S(s|Returns the numeric index of the tab specified by tab_id, or
        the total number of tabs if tab_id is the string "end".R�(R R�R}R�(R�R�((s /sys/lib/python2.7/lib-tk/ttk.pyR�kscKs)|jj|jd||t|��dS(s�Inserts a pane at the specified position.

        pos is either the string end, an integer index, or the name of
        a managed child. If child is already managed by the notebook,
        moves it to the specified position.tinsertN(R R}R�R4(R�tposR�RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�qscCs|jj|jd|�S(s�Selects the specified tab.

        The associated child window will be displayed, and the
        previously-selected window (if different) is unmapped. If tab_id
        is omitted, returns the widget name of the currently selected
        pane.tselect(R R}R�(R�R�((s /sys/lib/python2.7/lib-tk/ttk.pyR�zscKs5|dk	rd||<nt|j||jd|�S(s�Query or modify the options of the specific tab_id.

        If kw is not given, returns a dict of the tab option values. If option
        is specified, returns the value of that option. Otherwise, sets the
        options to the corresponding values.ttabN(R/RR R�(R�R�R�RG((s /sys/lib/python2.7/lib-tk/ttk.pyR��s
cCs(|jj|jj|jd�p$d�S(s2Returns a list of windows managed by the notebook.ttabs((R RwR}R�(R�((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs|jjd|j�dS(s�Enable keyboard traversal for a toplevel window containing
        this notebook.

        This will extend the bindings for the toplevel window containing
        this notebook as follows:

            Control-Tab: selects the tab following the currently selected
                         one

            Shift-Control-Tab: selects the tab preceding the currently
                               selected one

            Alt-K: where K is the mnemonic (underlined) character of any
                   tab, will select that tab.

        Multiple notebooks in a single toplevel may be enabled for
        traversal, including nested notebooks. However, notebook traversal
        only works properly if all panes are direct children of the
        notebook.sttk::notebook::enableTraversalN(R R}R�(R�((s /sys/lib/python2.7/lib-tk/ttk.pytenable_traversal�sN(R�R�R�R/R�R�R�R�R�R�R�R�R�R�R�(((s /sys/lib/python2.7/lib-tk/ttk.pyR	)s 								
	cBsGeZdZdd�ZejjZd�Zdd�Z	dd�Z
RS(sfTtk Panedwindow widget displays a number of subwindows, stacked
    either vertically or horizontally.cKstj||d|�dS(s�Construct a Ttk Panedwindow with parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus

        WIDGET-SPECIFIC OPTIONS

            orient, width, height

        PANE OPTIONS

            weight
        sttk::panedwindowN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR��scKs)|jj|jd||t|��dS(s�Inserts a pane at the specified positions.

        pos is either the string end, and integer index, or the name
        of a child. If child is already managed by the paned window,
        moves it to the specified position.R�N(R R}R�R4(R�R�R�RG((s /sys/lib/python2.7/lib-tk/ttk.pyR��scKs5|dk	rd||<nt|j||jd|�S(sQQuery or modify the options of the specified pane.

        pane is either an integer index or the name of a managed subwindow.
        If kw is not given, returns a dict of the pane option values. If
        option is specified then the value for that option is returned.
        Otherwise, sets the options to the corresponding values.tpaneN(R/RR R�(R�R�R�RG((s /sys/lib/python2.7/lib-tk/ttk.pyR��s
cCs(|jj|jj|jd||��S(sLIf newpos is specified, sets the position of sash number index.

        May adjust the positions of adjacent sashes to ensure that
        positions are monotonically increasing. Sash positions are further
        constrained to be between 0 and the total size of the widget.

        Returns the new position of sash number index.tsashpos(R R�R}R�(R�R�tnewpos((s /sys/lib/python2.7/lib-tk/ttk.pyR��sN(R�R�R�R/R�R�RR�R�R�R�(((s /sys/lib/python2.7/lib-tk/ttk.pyR
�s		cBs;eZdZdd�Zdd�Zdd�Zd�ZRS(s6Ttk Progressbar widget shows the status of a long-running
    operation. They can operate in two modes: determinate mode shows the
    amount completed relative to the total amount of work to be done, and
    indeterminate mode provides an animated display to let the user know
    that something is happening.cKstj||d|�dS(s�Construct a Ttk Progressbar with parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus

        WIDGET-SPECIFIC OPTIONS

            orient, length, mode, maximum, value, variable, phase
        sttk::progressbarN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs|jj|jd|�dS(s�Begin autoincrement mode: schedules a recurring timer event
        that calls method step every interval milliseconds.

        interval defaults to 50 milliseconds (20 steps/second) if ommited.tstartN(R R}R�(R�tinterval((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs|jj|jd|�dS(sRIncrements the value option by amount.

        amount defaults to 1.0 if omitted.tstepN(R R}R�(R�tamount((s /sys/lib/python2.7/lib-tk/ttk.pyR�scCs|jj|jd�dS(sVStop autoincrement mode: cancels any recurring timer event
        initiated by start.tstopN(R R}R�(R�((s /sys/lib/python2.7/lib-tk/ttk.pyR�
sN(R�R�R�R/R�R�R�R�(((s /sys/lib/python2.7/lib-tk/ttk.pyR�s
cBs#eZdZdd�Zd�ZRS(seTtk Radiobutton widgets are used in groups to show or change a
    set of mutually-exclusive options.cKstj||d|�dS(sConstruct a Ttk Radiobutton with parent master.

        STANDARD OPTIONS

            class, compound, cursor, image, state, style, takefocus,
            text, textvariable, underline, width

        WIDGET-SPECIFIC OPTIONS

            command, value, variable
        sttk::radiobuttonN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�scCs|jj|jd�S(s�Sets the option variable to the option value, selects the
        widget, and invokes the associated command.

        Returns the result of the command, or an empty string if
        no command is specified.R�(R R}R�(R�((s /sys/lib/python2.7/lib-tk/ttk.pyR�&sN(R�R�R�R/R�R�(((s /sys/lib/python2.7/lib-tk/ttk.pyR
scBs5eZdZdd�Zdd�Zddd�ZRS(sTtk Scale widget is typically used to control the numeric value of
    a linked variable that varies uniformly over some range.cKstj||d|�dS(s�Construct a Ttk Scale with parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus

        WIDGET-SPECIFIC OPTIONS

            command, from, length, orient, to, value, variable
        s
ttk::scaleN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�3scKsa|r|j|�ntj||�td|kd|kd|kg�r]|jd�ndS(s�Modify or query scale options.

        Setting a value for any of the "from", "from_" or "to" options
        generates a <<RangeChanged>> event.RDtfrom_ttos<<RangeChanged>>N(tupdateR�RYtanytevent_generate(R�tcnfRG((s /sys/lib/python2.7/lib-tk/ttk.pyRYAs
'cCs|jj|jd||�S(s�Get the current value of the value option, or the value
        corresponding to the coordinates x, y if they are specified.

        x and y are pixel coordinates relative to the scale widget
        origin.R(R R}R�(R�R�R�((s /sys/lib/python2.7/lib-tk/ttk.pyRMsN(R�R�R�R/R�RYR(((s /sys/lib/python2.7/lib-tk/ttk.pyR/scBseZdZdd�ZRS(s;Ttk Scrollbar controls the viewport of a scrollable widget.cKstj||d|�dS(s�Construct a Ttk Scrollbar with parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus

        WIDGET-SPECIFIC OPTIONS

            command, orient
        sttk::scrollbarN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�YsN(R�R�R�R/R�(((s /sys/lib/python2.7/lib-tk/ttk.pyRVscBseZdZdd�ZRS(sITtk Separator widget displays a horizontal or vertical separator
    bar.cKstj||d|�dS(s�Construct a Ttk Separator with parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus

        WIDGET-SPECIFIC OPTIONS

            orient
        sttk::separatorN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�ksN(R�R�R�R/R�(((s /sys/lib/python2.7/lib-tk/ttk.pyRgscBseZdZdd�ZRS(slTtk Sizegrip allows the user to resize the containing toplevel
    window by pressing and dragging the grip.cKstj||d|�dS(s�Construct a Ttk Sizegrip with parent master.

        STANDARD OPTIONS

            class, cursor, state, style, takefocus
        s
ttk::sizegripN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR�}sN(R�R�R�R/R�(((s /sys/lib/python2.7/lib-tk/ttk.pyRyscBsdeZdZd!d�Zd!d�Zd!d�Zd�Zd!d�Zd�Z	d�Z
d�Zd!d	�Zd!d
�Z
d�Zd�Zd
�Zd�Zd�Zd�Zd!d�Zd!d�Zd�ZeZd�Zd�Zd�Zd�Zd!d!d�Zd�Zd�Zd�Zd�Z d!d!d�Z!d!d!d�Z"d!d�Z#d!d �Z$RS("s�Ttk Treeview widget displays a hierarchical collection of items.

    Each item has a textual label, an optional image, and an optional list
    of data values. The data values are displayed in successive columns
    after the tree label.cKstj||d|�dS(s�Construct a Ttk Treeview with parent master.

        STANDARD OPTIONS

            class, cursor, style, takefocus, xscrollcommand,
            yscrollcommand

        WIDGET-SPECIFIC OPTIONS

            columns, displaycolumns, height, padding, selectmode, show

        ITEM OPTIONS

            text, image, values, open, tags

        TAG OPTIONS

            foreground, background, font, image
        s
ttk::treeviewN(R�R�(R�R$RG((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs+|j|jj|jd||��p*dS(sTReturns the bounding box (relative to the treeview widget's
        window) of the specified item in the form x y width height.

        If column is specified, returns the bounding box of that cell.
        If the item is not visible (i.e., if it is a descendant of a
        closed item or is scrolled offscreen), returns an empty string.R�R5(R�R R}R�(R�R;tcolumn((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs1|jj|jj|jd|p$d�p-d�S(shReturns a tuple of children belonging to item.

        If item is not specified, returns root children.ROR5((R RwR}R�(R�R;((s /sys/lib/python2.7/lib-tk/ttk.pytget_children�s	cGs |jj|jd||�dS(s�Replaces item's child with newchildren.

        Children present in item that are not present in newchildren
        are detached from tree. No items in newchildren may be an
        ancestor of item.RON(R R}R�(R�R;tnewchildren((s /sys/lib/python2.7/lib-tk/ttk.pytset_children�scKs5|dk	rd||<nt|j||jd|�S(s
Query or modify the options for the specified column.

        If kw is not given, returns a dict of the column option values. If
        option is specified then the value for that option is returned.
        Otherwise, sets the options to the corresponding values.R�N(R/RR R�(R�R�R�RG((s /sys/lib/python2.7/lib-tk/ttk.pyR��s
cGs|jj|jd|�dS(s_Delete all specified items and all their descendants. The root
        item may not be deleted.tdeleteN(R R}R�(R�R9((s /sys/lib/python2.7/lib-tk/ttk.pyR��scGs|jj|jd|�dS(s�Unlinks all of the specified items from the tree.

        The items and all of their descendants are still present, and may
        be reinserted at another point in the tree, but will not be
        displayed. The root item may not be detached.tdetachN(R R}R�(R�R9((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs+t|jj|jj|jd|���S(sSReturns True if the specified item is present in the tree,
        False otherwise.texists(R�R R�R}R�(R�R;((s /sys/lib/python2.7/lib-tk/ttk.pyR��scCs|jj|jd|�S(s}If item is specified, sets the focus item to item. Otherwise,
        returns the current focus item, or '' if there is none.tfocus(R R}R�(R�R;((s /sys/lib/python2.7/lib-tk/ttk.pyR��scKsy|jd�}|rDt|t�rD|jj||j�|d<n|dk	r]d||<nt|j||j	d|�S(s_Query or modify the heading options for the specified column.

        If kw is not given, returns a dict of the heading option values. If
        option is specified then the value for that option is returned.
        Otherwise, sets the options to the corresponding values.

        Valid options/values are:
            text: text
                The text to display in the column heading
            image: image_name
                Specifies an image to display to the right of the column
                heading
            anchor: anchor
                Specifies how the heading text should be aligned. One of
                the standard Tk anchor values
            command: callback
                A callback to be invoked when the heading label is
                pressed.

        To configure the tree column heading, call this with column = "#0" tcommandtheadingN(
RR'R�R$tregistert_substituteR/RR R�(R�R�R�RGtcmd((s /sys/lib/python2.7/lib-tk/ttk.pyR��s
cCs|jj|jd|||�S(s�Returns a description of the specified component under the
        point given by x and y, or the empty string if no such component
        is present at that position.R�(R R}R�(R�t	componentR�R�((s /sys/lib/python2.7/lib-tk/ttk.pyR�scCs|jdd|�S(s.Returns the item ID of the item at position y.trowi(R�(R�R�((s /sys/lib/python2.7/lib-tk/ttk.pytidentify_row
scCs|jd|d�S(saReturns the data column identifier of the cell at position x.

        The tree column has ID #0.R�i(R�(R�R�((s /sys/lib/python2.7/lib-tk/ttk.pytidentify_columnscCs|jd||�S(s�Returns one of:

        heading: Tree heading area.
        separator: Space between two columns headings;
        tree: The tree area.
        cell: A data cell.

        * Availability: Tk 8.6tregion(R�(R�R�R�((s /sys/lib/python2.7/lib-tk/ttk.pytidentify_regions	cCs|jd||�S(sEReturns the element at position x, y.

        * Availability: Tk 8.6R�(R�(R�R�R�((s /sys/lib/python2.7/lib-tk/ttk.pytidentify_element%scCs%|jj|jj|jd|��S(sOReturns the integer index of item within its parent's list
        of children.R�(R R�R}R�(R�R;((s /sys/lib/python2.7/lib-tk/ttk.pyR�,scKsat|�}|r<|jj|jd||d||�}n!|jj|jd|||�}|S(s�Creates a new item and return the item identifier of the newly
        created item.

        parent is the item ID of the parent item, or the empty string
        to create a new top-level item. index is an integer, or the value
        end, specifying where in the list of parent's children to insert
        the new item. If index is less than or equal to zero, the new node
        is inserted at the beginning, if index is greater than or equal to
        the current number of children, it is inserted at the end. If iid
        is specified, it is used as the item identifier, iid must not
        already exist in the tree. Otherwise, a new unique identifier
        is generated.R�s-id(R4R R}R�(R�R�R�tiidRGR2R{((s /sys/lib/python2.7/lib-tk/ttk.pyR�2s
!cKs5|dk	rd||<nt|j||jd|�S(s-Query or modify the options for the specified item.

        If no options are given, a dict with options/values for the item
        is returned. If option is specified then the value for that option
        is returned. Otherwise, sets the options to the corresponding
        values as given by kw.R;N(R/RR R�(R�R;R�RG((s /sys/lib/python2.7/lib-tk/ttk.pyR;Is
cCs#|jj|jd|||�dS(sRMoves item to position index in parent's list of children.

        It is illegal to move an item under one of its descendants. If
        index is less than or equal to zero, item is moved to the
        beginning, if greater than or equal to the number of children,
        it is moved to the end. If item was detached it is reattached.tmoveN(R R}R�(R�R;R�R�((s /sys/lib/python2.7/lib-tk/ttk.pyR�UscCs|jj|jd|�S(seReturns the identifier of item's next sibling, or '' if item
        is the last child of its parent.tnext(R R}R�(R�R;((s /sys/lib/python2.7/lib-tk/ttk.pyR�ascCs|jj|jd|�S(saReturns the ID of the parent of item, or '' if item is at the
        top level of the hierarchy.R�(R R}R�(R�R;((s /sys/lib/python2.7/lib-tk/ttk.pyR�gscCs|jj|jd|�S(sjReturns the identifier of item's previous sibling, or '' if
        item is the first child of its parent.tprev(R R}R�(R�R;((s /sys/lib/python2.7/lib-tk/ttk.pyR�mscCs|jj|jd|�dS(s�Ensure that item is visible.

        Sets all of item's ancestors open option to True, and scrolls
        the widget if necessary so that item is within the visible
        portion of the tree.tseeN(R R}R�(R�R;((s /sys/lib/python2.7/lib-tk/ttk.pyR�sscCs|jj|jd||�S(s2If selop is not specified, returns selected items.t	selection(R R}R�(R�tselopR9((s /sys/lib/python2.7/lib-tk/ttk.pyR�|scCs|jd|�dS(s items becomes the new selection.R�N(R�(R�R9((s /sys/lib/python2.7/lib-tk/ttk.pyt
selection_set�scCs|jd|�dS(sAdd items to the selection.R�N(R�(R�R9((s /sys/lib/python2.7/lib-tk/ttk.pyt
selection_add�scCs|jd|�dS(s Remove items from the selection.tremoveN(R�(R�R9((s /sys/lib/python2.7/lib-tk/ttk.pytselection_remove�scCs|jd|�dS(s1Toggle the selection state of each item in items.ttoggleN(R�(R�R9((s /sys/lib/python2.7/lib-tk/ttk.pytselection_toggle�scCsZ|jj|jd|||�}|dkrR|dkrRt|jj|�t�S|SdS(sWith one argument, returns a dictionary of column/value pairs
        for the specified item. With two arguments, returns the current
        value of the specified column. With three arguments, sets the
        value of given column in given item to the specified value.R�N(R R}R�R/RnRwR�(R�R;R�R*R{((s /sys/lib/python2.7/lib-tk/ttk.pyR��s!cCs,|j|jdd|f||dd�dS(s�Bind a callback for the given event sequence to the tag tagname.
        When an event is delivered to an item, the callbacks for each
        of the item's tags option are called.ttagtbindR�iN(t_bindR�(R�ttagnametsequenceR�((s /sys/lib/python2.7/lib-tk/ttk.pyttag_bind�scKs8|dk	rd||<nt|j||jdd|�S(sBQuery or modify the options for the specified tagname.

        If kw is not given, returns a dict of the option settings for tagname.
        If option is specified, returns the value for that option for the
        specified tagname. Otherwise, sets the options to the corresponding
        values for the given tagname.R�RYN(R/RR R�(R�R�R�RG((s /sys/lib/python2.7/lib-tk/ttk.pyt
tag_configure�s
cCs+|jj|jj|jdd||��S(s�If item is specified, returns 1 or 0 depending on whether the
        specified item has the given tagname. Otherwise, returns a list of
        all items which have the specified tag.

        * Availability: Tk 8.6R�thas(R R�R}R�(R�R�R;((s /sys/lib/python2.7/lib-tk/ttk.pyttag_has�s	N(%R�R�R�R/R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R;R�treattachR�R�R�R�R�R�R�R�R�R�RRR(((s /sys/lib/python2.7/lib-tk/ttk.pyR�sD
						 																	
cBsVeZdZddddd�Zd�Zd�Zd�Zd�Ze	ee�Z
RS(	s�A Ttk Scale widget with a Ttk Label widget indicating its
    current value.

    The Ttk Scale can be accessed through instance.scale, and Ttk Label
    can be accessed through instance.labelii
c	Ksp|jdd�dk|_tj|||�|p@tj|�|_|jj|�||_t	|�|_
t|d|jd|d|�|_|jj
d|j�|jr�dnd}|dkr�dnd}|jjd|d	d
�t	|�jd|�}|j
jd|dkr$dnd
�|jjd|j�|_|j
d|j�|j
d|j�dS(s�Construct an horizontal LabeledScale with parent master, a
        variable to be associated with the Ttk Scale widget and its range.
        If variable is not specified, a Tkinter.IntVar is created.

        WIDGET-SPECIFIC OPTIONS

            compound: 'top' or 'bottom'
                Specifies how to display the label relative to the scale.
                Defaults to 'top'.
        tcompoundttoptvariableR�R�s<<RangeChanged>>tbottomtsidetfillR�tanchortnR_tws<Configure>s<Map>N(tpopt
_label_topRR�R�tIntVart	_variableR�t_last_validRtlabelRtscaleR�t_adjusttpacktplacettrace_variablet_LabeledScale__tracecb(	R�R$RR�R�RGt
scale_sidet
label_sidettmp((s /sys/lib/python2.7/lib-tk/ttk.pyR��s 	$%cCsEy|jjd|j�Wntk
r-nX|`tj|�dS(s9Destroy this widget and possibly its associated variable.RN(Rt
trace_vdeleteRtAttributeErrorRtdestroy(R�((s /sys/lib/python2.7/lib-tk/ttk.pyR �s
cs��fd�}t�jd�}t�jd�}||krQ||}}n�jj�}||kow|kns��j�_dS|�_|�jd<�j|�dS(s1Adjust the label position according to the scale.cs��j��jj�\}}�jrG�jj��jj�}n�jj��jj�}�jjd|d|�dS(NR�R�(tupdate_idletasksRtcoordsRtwinfo_yRtwinfo_reqheighttplace_configure(R�R�(R�(s /sys/lib/python2.7/lib-tk/ttk.pytadjust_label�s
	RDR�Nttext(R�RRRRR*Rt
after_idle(R�RFR&R�R�tnewval((R�s /sys/lib/python2.7/lib-tk/ttk.pyR�s	
cCs
|jj�S(sReturn current scale value.(RR(R�((s /sys/lib/python2.7/lib-tk/ttk.pyt
_get_valuescCs|jj|�dS(sSet new scale value.N(RR�(R�R=((s /sys/lib/python2.7/lib-tk/ttk.pyt
_set_valuesN(R�R�R�R/R�R RR*R+tpropertyR*(((s /sys/lib/python2.7/lib-tk/ttk.pyR�s#				cBs8eZdZdd�Zd�Zdd�Zd�ZRS(smThemed OptionMenu, based after Tkinter's OptionMenu, which allows
    the user to select a value from a menu.cOs�i|d6|jdd�d6|jdd�d6}tj|||�tj|dt�|d<||_|jdd�|_|r�tj	d|j
�j���n|j||�dS(	s9Construct a themed OptionMenu widget with master as the parent,
        the resource textvariable set to variable, the initially selected
        value specified by the default parameter, the menu values given by
        *values and additional keywords.

        WIDGET-SPECIFIC OPTIONS

            style: stylename
                Menubutton style.
            direction: 'above', 'below', 'left', 'right', or 'flush'
                Menubutton direction.
            command: callback
                A callback that will be invoked after selecting an item.
        ttextvariableR�t	directionttearofftmenuR�sunknown option -%sN(
RR/RR�R�tMenuR�Rt	_callbacktTclErrortiterkeysR�tset_menu(R�R$RR�tvaluestkwargsRG((s /sys/lib/python2.7/lib-tk/ttk.pyR�$s		cCs5|dkr%|jtj||��Stj||�S(NR0(tnametowidgetRt__getitem__(R�R;((s /sys/lib/python2.7/lib-tk/ttk.pyR9Asc	Gss|d}|jdd�x9|D]1}|jd|dtj|j||j��q!W|ro|jj|�ndS(sUBuild a new menu of radiobuttons with *values and optionally
        a default value.R0itendRR�N(R�tadd_radiobuttonR�t_setitRR2R�(R�R�R6R0R=((s /sys/lib/python2.7/lib-tk/ttk.pyR5Hs

 cCs|`tj|�dS(s0Destroy this widget and its associated variable.N(RRR (R�((s /sys/lib/python2.7/lib-tk/ttk.pyR UsN(R�R�R�R/R�R9R5R (((s /sys/lib/python2.7/lib-tk/ttk.pyR s
	
(7R�t__version__t
__author__t__all__R�RRRt	TkVersionR"R�RR&R,R/R4R>RARNRPReRnRuRyRR�R�RRtobjectRR�RRRRRRRRRR	RR
RR
RRRRtXViewtYViewRRR(((s /sys/lib/python2.7/lib-tk/ttk.pyt<module>
sf	
	%1	*				
		�B*"�8*'"�_

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].