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੐)|#o0aڱ$I>}k&1`U#V?YsV x>{t1[I~D&(I$I/{H0fw"q"y%4 IXyE~M3 8XψL}qE$I[> nD?~sf ]o΁ cT6"?'_Ἣ $I>~.f|'!N?⟩0G KkXZE]ޡ;/&?k OۘH$IRۀwXӨ<7@PnS04aӶp.:@\IWQJ6sS%I$e5ڑv`3:x';wq_vpgHyXZ 3gЂ7{{EuԹn±}$I$8t;b|591nءQ"P6O5i }iR̈́%Q̄p!I䮢]O{H$IRϻ9s֧ a=`- aB\X0"+5"C1Hb?߮3x3&gşggl_hZ^,`5?ߎvĸ%̀M!OZC2#0x LJ0 Gw$I$I}<{Eb+y;iI,`ܚF:5ܛA8-O-|8K7s|#Z8a&><a&/VtbtLʌI$I$I$I$I$I$IRjDD%tEXtdate:create2022-05-31T04:40:26+00:00!Î%tEXtdate:modify2022-05-31T04:40:26+00:00|{2IENDB`Mini Shell

HOME


Mini Shell 1.0
DIR:/proc/self/root/snap/core/current/usr/lib/python3.5/tkinter/__pycache__/
Upload File :
Current File : //proc/self/root/snap/core/current/usr/lib/python3.5/tkinter/__pycache__/tix.cpython-35.pyc


���f�,�@s~ddlTddlmZmZedkr8ed��ddlZdZdZdZd	Z	d
Z
dZdZd
Z
dZdZdZdZdZdZdZdZdZdZdZdZdZdZd�Zd�Zd�Zd�Zd�Z dZ!ddlZddl"Z"Gd!d"�d"�Z#Gd#d$�d$ej$e#�Z$Gd%d&�d&�Z%ej&j'e%fej&_'Gd'd(�d(ej&�Z(Gd)d*�d*e(�Z)Gd+d,�d,�Z*Gd-d.�d.e(�Z+Gd/d0�d0e(�Z,Gd1d2�d2e(�Z-Gd3d4�d4e(�Z.Gd5d6�d6e(�Z/Gd7d8�d8e(�Z0Gd9d:�d:e(�Z1Gd;d<�d<e(�Z2Gd=d>�d>e(�Z3Gd?d@�d@e(�Z4GdAdB�dBe(�Z5GdCdD�dDe(�Z6GdEdF�dFe(�Z7GdGdH�dHe(e8e9�Z:GdIdJ�dJe(�Z;GdKdL�dLe(�Z<GdMdN�dNe(�Z=GdOdP�dPe(�Z>GdQdR�dRe(�Z?GdSdT�dTe(�Z@GdUdV�dVe(�ZAGdWdX�dXe(�ZBGdYdZ�dZe(�ZCGd[d\�d\e(�ZDGd]d^�d^e(�ZEGd_d`�d`e(�ZFGdadb�dbe(�ZGGdcdd�dde(�ZHGdedf�dfe(�ZIGdgdh�dhe(�ZJGdidj�dje(�ZKGdkdl�dle(�ZLGdmdn�dne(�ZMGdodp�dpe(�ZNGdqdr�dre(e8e9�ZOGdsdt�dte(�ZPGdudv�dve(�ZQGdwdx�dxeRe)�ZSGdydz�dzeTe)�ZUGd{d|�d|eVe)�ZWGd}d~�d~eXe)�ZYGdd��d�eZe)�Z[Gd�d��d�e\e)�Z]Gd�d��d�e^e)�Z_Gd�d��d�e`e)�ZaGd�d��d�ebe)�ZcGd�d��d�ede)�ZeGd�d��d�eGe)�ZfGd�d��d�e:e)�ZgGd�d��d�eFe)�ZhGd�d��d�eOe)�ZiGd�d��d�e-e)�ZjGd�d��d�e/e)�ZkGd�d��d�e1e)�ZlGd�d��d�e2e)�ZmGd�d��d�e5e)�ZnGd�d��d�e-e)�ZoGd�d��d�eNe)�ZpGd�d��d�eAe)�ZqGd�d��d�eCe)�Zrd�d��Zsd�d��ZtGd�d��d�e(�ZuGd�d��d�e(e8e9�ZvGd�d��d�ev�ZwdS)��)�*)�	_cnfmerge�
_default_rootgˡE��@z0This version of Tix.py requires Tk 4.0 or higherN�window�textZstatusZ	immediate�imageZ	imagetextZballoonZautoZ	acrosstop�asciiZcell�columnZ
decreasingZ
increasingZinteger�main�max�real�rowzs-regionzx-regionzy-region�����c@seZdZdZdd�Zdd�Zddd�Zdd	d
�Zdd�Zd
d�Z	dd�Z
ddd�ZdS)�
tixCommanda�The tix commands provide access to miscellaneous  elements
    of  Tix's  internal state and the Tix application context.
    Most of the information manipulated by these  commands pertains
    to  the  application  as a whole, or to a screen or
    display, rather than to a particular window.

    This is a mixin class, assumed to be mixed to Tkinter.Tk
    that supports the self.tk.call method.
    cCs|jjdd|�S)a�Tix maintains a list of directories under which
        the  tix_getimage  and tix_getbitmap commands will
        search for image files. The standard bitmap  directory
        is $TIX_LIBRARY/bitmaps. The addbitmapdir command
        adds directory into this list. By  using  this
        command, the  image  files  of an applications can
        also be located using the tix_getimage or tix_getbitmap
        command.
        �tixZaddbitmapdir)�tk�call)�selfZ	directory�r�!/usr/lib/python3.5/tkinter/tix.py�tix_addbitmapdirYs
ztixCommand.tix_addbitmapdircCs|jjdd|�S)z�Returns  the  current  value  of the configuration
        option given by option. Option may be  any  of  the
        options described in the CONFIGURATION OPTIONS section.
        r�cget)rr)r�optionrrr�tix_cgetesztixCommand.tix_cgetNcKs�|rt||f�}n|r-t|�}|dkrI|jdd�St|t�ro|jddd|�S|jjd|j|��S)a�Query or modify the configuration options of the Tix application
        context. If no option is specified, returns a dictionary all of the
        available options.  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 option(s)
        to have the given value(s); in this case the command returns an
        empty string. Option may be any of the configuration options.
        Nr�	configure�-)ztixr)r�
_getconfigure�
isinstance�strZ_getconfigure1rr�_options)r�cnf�kwrrr�
tix_configurelsztixCommand.tix_configurecCs9|dk	r"|jjdd|�S|jjdd�SdS)a�Returns the file selection dialog that may be shared among
        different calls from this application.  This command will create a
        file selection dialog widget when it is called the first time. This
        dialog will be returned by all subsequent calls to tix_filedialog.
        An optional dlgclass parameter can be passed to specified what type
        of file selection dialog widget is desired. Possible options are
        tix FileSelectDialog or tixExFileSelectDialog.
        NrZ
filedialog)rr)rZdlgclassrrr�tix_filedialog�s	ztixCommand.tix_filedialogcCs|jjdd|�S)a�Locates a bitmap file of the name name.xpm or name in one of the
        bitmap directories (see the tix_addbitmapdir command above).  By
        using tix_getbitmap, you can avoid hard coding the pathnames of the
        bitmap files in your application. When successful, it returns the
        complete pathname of the bitmap file, prefixed with the character
        '@'.  The returned value can be used to configure the -bitmap
        option of the TK and Tix widgets.
        rZ	getbitmap)rr)r�namerrr�
tix_getbitmap�s	ztixCommand.tix_getbitmapcCs|jjdd|�S)a�Locates an image file of the name name.xpm, name.xbm or name.ppm
        in one of the bitmap directories (see the addbitmapdir command
        above). If more than one file with the same name (but different
        extensions) exist, then the image type is chosen according to the
        depth of the X display: xbm images are chosen on monochrome
        displays and color images are chosen on color displays. By using
        tix_ getimage, you can avoid hard coding the pathnames of the
        image files in your application. When successful, this command
        returns the name of the newly created image, which can be used to
        configure the -image option of the Tk and Tix widgets.
        rZgetimage)rr)rr(rrr�tix_getimage�sztixCommand.tix_getimagecCs|jjddd|�S)a@Gets  the options  maintained  by  the  Tix
        scheme mechanism. Available options include:

            active_bg       active_fg      bg
            bold_font       dark1_bg       dark1_fg
            dark2_bg        dark2_fg       disabled_fg
            fg              fixed_font     font
            inactive_bg     inactive_fg    input1_bg
            input2_bg       italic_font    light1_bg
            light1_fg       light2_bg      light2_fg
            menu_font       output1_bg     output2_bg
            select_bg       select_fg      selector
            rr�get)rr)rr(rrr�tix_option_get�sztixCommand.tix_option_getcCsE|dk	r(|jjdd|||�S|jjdd||�SdS)a�Resets the scheme and fontset of the Tix application to
        newScheme and newFontSet, respectively.  This affects only those
        widgets created after this call. Therefore, it is best to call the
        resetoptions command before the creation of any widgets in a Tix
        application.

        The optional parameter newScmPrio can be given to reset the
        priority level of the Tk options set by the Tix schemes.

        Because of the way Tk handles the X option database, after Tix has
        been has imported and inited, it is not possible to reset the color
        schemes and font sets using the tix config command.  Instead, the
        tix_resetoptions command must be used.
        NrZresetoptions)rr)rZ	newSchemeZ
newFontSetZ
newScmPriorrr�tix_resetoptions�sztixCommand.tix_resetoptions)�__name__�
__module__�__qualname__�__doc__rrr&r'r)r*r,r-rrrrrNs	rc@s7eZdZdZddddd�Zdd�ZdS)�Tkz{Toplevel widget of Tix which represents mostly the main window
    of an application. It has an associated Tcl interpreter.NZTixcCs�tjj||||�tjjd�}|jjd�|dk	ro|jjd|�|jjd|�|jjd�dS)NZTIX_LIBRARYz<global auto_path; lappend auto_path [file dir [info nameof]]z(global auto_path; lappend auto_path {%s}z,global tcl_pkgPath; lappend tcl_pkgPath {%s}zpackage require Tix)�tkinterr2�__init__�os�environr+r�eval)rZ
screenNameZbaseNameZ	classNameZtixlibrrrr4�szTk.__init__cCs$|jdd�tjj|�dS)NZWM_DELETE_WINDOW�)Zprotocolr3r2�destroy)rrrrr9�sz
Tk.destroy)r.r/r0r1r4r9rrrrr2�sr2c@s|eZdZdZidd�ZeZdd�Zdd�Zdd	�Zd
d
dd�Z	d
dd�Z
dd�Zd
S)�Formz�The Tix Form geometry manager

    Widgets can be arranged by specifying attachments to other widgets.
    See Tix documentation for complete detailscKs)|jjd|j|j||��dS)N�tixForm)rr�_wr#)rr$r%rrr�config�szForm.configcCstj|||i�dS)N)r:�form)r�key�valuerrr�__setitem__�szForm.__setitem__cCs|jjdd|j�S)Nr;�check)rrr<)rrrrrB�sz
Form.checkcCs|jjdd|j�dS)Nr;�forget)rrr<)rrrrrC�szForm.forgetrcCs�|ro|ro|jjdd|j�}|jj|�}f}x'|D]}||jj|�f}qHW|S|jjdd|j||�S)Nr;�grid)rrr<�	splitlistZgetint)rZxsizeZysize�x�y�zrrrrD�s
z	Form.gridNcCsU|s|jjdd|j�S|ddkr9d|}|jjdd|j|�S)Nr;�inforr)rrr<)rrrrrrIs

z	Form.infocs8�fdd��jj�jjdd�j��D�S)Ncsg|]}�j|��qSr)�
_nametowidget)�.0rF)rrr�
<listcomp>s	zForm.slaves.<locals>.<listcomp>r;�slaves)rrErr<)rr)rrrM
s		zForm.slaves)r.r/r0r1r=r>rArBrCrDrIrMrrrrr:�s
r:c@s�eZdZdZdddiidd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Ziddd�Zdd�Z
dS)�	TixWidgetaQA TixWidget class is used to package all (or most) Tix widgets.

    Widget initialization is extended in two ways:
       1) It is possible to give a list of options which must be part of
       the creation command (so called Tix 'static' options). These cannot be
       given as a 'config' command later.
       2) It is possible to give the name of an existing TK widget. These are
       child widgets created automatically by a Tix mega-widget. The Tk call
       to create these widgets is therefore bypassed in TixWidget.__init__

    Both options are for use by subclasses only.
    Nc	Cs�|rt||f�}nt|�}f}|rC|jd�n	dg}xGt|j��D]3\}}||kr_|d||f}||=q_W||_tj|||�|r�|jj||j	|�|r�tj
||�i|_dS)N�optionsr)r�append�list�items�
widgetName�Widget�_setuprrr<r=�subwidget_list)	r�masterrSZstatic_optionsr$r%Zextra�k�vrrrr4!s$		zTixWidget.__init__cCs*||jkr|j|St|��dS)N)rV�AttributeError)rr(rrr�__getattr__NszTixWidget.__getattr__cCs|jjd|j|�dS)z1Set a variable without calling its action routineZtixSetSilentN)rrr<)rr@rrr�
set_silentSszTixWidget.set_silentcCsZ|j|�}|s0td|d|j��|t|j�dd�}|j|�S)zSReturn the named subwidget (which must have been created by
        the sub-class).z
Subwidget z not child of rN)�_subwidget_name�TclError�_name�lenr<rJ)rr(�nrrr�	subwidgetWs
zTixWidget.subwidgetc
Css|j�}|sgSg}xP|D]H}|t|j�dd�}y|j|j|��Wq#Yq#Xq#W|S)zReturn all subwidgets.rN)�_subwidget_namesr`r<rPrJ)r�namesZretlistr(rrr�subwidgets_allas
	zTixWidget.subwidgets_allcCs:y|jj|jd|�SWntk
r5dSYnXdS)z7Get a subwidget name (returns a String, not a Widget !)rbN)rrr<r^)rr(rrrr]ps
zTixWidget._subwidget_namecCsLy/|jj|jdd�}|jj|�SWntk
rGdSYnXdS)z"Return the name of all subwidgets.Z
subwidgetsz-allN)rrr<rEr^)rrFrrrrcws

zTixWidget._subwidget_namescCs�|dkrdSt|t�s+t|�}t|t�sFt|�}|j�}x+|D]#}|jj|dd||�qYWdS)z8Set configuration options for all subwidgets (and self).r8Nrr)r!r"�reprrcrr)rrr@rdr(rrr�
config_alls
zTixWidget.config_allcKs�|s!tj}|s!td��|rB|rBt||f�}n|rN|}f}xI|j�D];\}}t|�r�|j|�}|d||f}qaW|jjdd|f|�S)NzToo early to create imagerr�create)	r3r�RuntimeErrorrrR�callable�	_registerrr)rZimgtyper$rWr%rOrXrYrrr�image_create�s	zTixWidget.image_createcCs3y|jjdd|�Wntk
r.YnXdS)Nr�delete)rrr^)rZimgnamerrr�image_delete�s
zTixWidget.image_delete)r.r/r0r1r4r[r\rbrer]rcrgrlrnrrrrrNs,

rNc@s4eZdZdZdddd�Zdd�ZdS)�TixSubWidgetz�Subwidget class.

    This is used to mirror child widgets automatically created
    by Tix/Tk as part of a mega-widget in Python (which is not informed
    of this)rcCsK|rV|j|�}y0|t|j�dd�}|jd�}Wng}YnX|s~tj||ddd|i�n�|}x�tt|�d�D]p}dj|d|d��}	y|j|	�}
|
}Wq�t	k
r
t
|||dddd�}Yq�Xq�W|r|d}tj||ddd|i�||_dS)Nr�.r(�destroy_physicallyr�check_intermediate���)r]r`r<�splitrNr4�range�joinrJ�KeyErrorrorq)rrWr(rqrr�pathZplist�parent�ira�wrrrr4�s."


zTixSubWidget.__init__cCs�x't|jj��D]}|j�qW|j|jjkrO|jj|j=|j|jjkrt|jj|j=|jr�|jj	d|j
�dS)Nr9)rQ�children�valuesr9r_rWrVrqrrr<)r�crrrr9�s	zTixSubWidget.destroyN)r.r/r0r1r4r9rrrrro�sroc@speZdZdZidd�Zdd�Zdd�Zdd	�Zd
d�Zidd
�Z	dd�Z
dS)�DisplayStylezRDisplayStyle - handle configuration options shared by
    (multiple) Display ItemscKs�t}|r&d|kr&|d}n2|rFd|krF|d}n|sXtd��|j|_|jjd||j||��|_dS)NZ	refwindowz1Too early to create display style: no root windowZtixDisplayStyle)rrirrr#�	stylename)r�itemtyper$r%rWrrrr4�s

zDisplayStyle.__init__cCs|jS)N)r�)rrrr�__str__�szDisplayStyle.__str__cCsh|r!|r!t||f�}n|r-|}f}x.|j�D] \}}|d||f}q@W|S)Nr)rrR)rr$r%ZoptsrXrYrrrr#�szDisplayStyle._optionscCs|jj|jd�dS)Nrm)rrr�)rrrrrm�szDisplayStyle.deletecCs$|jj|jdd||�dS)Nrz-%s)rrr�)rr?r@rrrrA�szDisplayStyle.__setitem__cKs"|j|jd|j||��S)Nr)r r�r#)rr$r%rrrr=�szDisplayStyle.configcCs|jj|jdd|�S)Nrz-%s)rrr�)rr?rrr�__getitem__�szDisplayStyle.__getitem__N)r.r/r0r1r4r�r#rmrAr=r�rrrrr�s	
rc@sCeZdZdZdidd�Zidd�Zdd�ZdS)	�BalloonzBalloon help widget.

    Subwidget       Class
    ---------       -----
    label           Label
    message         MessageNcKsmdddddg}tj||d|||�t|ddd	�|jd<t|d
dd	�|jd
<dS)NrOZinstallcolormapZinitwaitZ	statusbarZcursorZ
tixBalloon�labelrqr�message)rNr4�_dummyLabelrV)rrWr$r%�staticrrrr4s	zBalloon.__init__cKs/|jj|jd|j|j||��dS)zkBind balloon widget to another.
        One balloon widget may be bound to several widgets at the same time�bindN)rrr<r#)r�widgetr$r%rrr�bind_widgetszBalloon.bind_widgetcCs |jj|jd|j�dS)N�unbind)rrr<)rr�rrr�
unbind_widgetszBalloon.unbind_widget)r.r/r0r1r4r�r�rrrrr�s
r�c@sCeZdZdZdidd�Zidd�Zdd�ZdS)	�	ButtonBoxzgButtonBox - A container for pushbuttons.
    Subwidgets are the buttons added with the add method.
    NcKs&tj||dddg||�dS)NZtixButtonBox�orientationrO)rNr4)rrWr$r%rrrr4%szButtonBox.__init__cKsD|jj|jd||j||��}t||�|j|<|S)z$Add a button with given name to box.�add)rrr<r#�_dummyButtonrV)rr(r$r%Zbtnrrrr�)s*z
ButtonBox.addcCs,||jkr(|jj|jd|�dS)N�invoke)rVrrr<)rr(rrrr�0szButtonBox.invoke)r.r/r0r1r4r�r�rrrrr�!sr�c@sXeZdZdZdidd�Zdd�Zdd�Zd	d
�Zdd�ZdS)
�ComboBoxa�ComboBox - an Entry field with a dropdown menu. The user can select a
    choice by either typing in the entry subwidget or selecting from the
    listbox subwidget.

    Subwidget       Class
    ---------       -----
    entry       Entry
    arrow       Button
    slistbox    ScrolledListBox
    tick        Button
    cross       Button : present if created with the fancy optionNcKs�tj||dddddg||�t|d�|jd<t|d�|jd<t|d�|jd<t|d	�|jd	<y0t|d
�|jd
<t|d�|jd<Wntk
r�YnXdS)NZtixComboBoxZeditableZdropdown�fancyrOr��entry�arrow�slistbox�tick�cross)rNr4r�rV�_dummyEntryr��_dummyScrolledListBox�	TypeError)rrWr$r%rrrr4Bs

zComboBox.__init__cCs|jj|jd|�dS)NZ
addhistory)rrr<)rr"rrr�add_historyTszComboBox.add_historycCs|jj|jd|�dS)NZ
appendhistory)rrr<)rr"rrr�append_historyWszComboBox.append_historycCs |jj|jd||�dS)N�insert)rrr<)r�indexr"rrrr�ZszComboBox.insertcCs|jj|jd|�dS)N�pick)rrr<)rr�rrrr�]sz
ComboBox.pick)	r.r/r0r1r4r�r�r�r�rrrrr�4sr�c@sXeZdZdZdidd�Zdd�Zdd�Zd	d
�Zdd�ZdS)
�Controla�Control - An entry field with value change arrows.  The user can
    adjust the value by pressing the two arrow buttons or by entering
    the value directly into the entry. The new value will be checked
    against the user-defined upper and lower limits.

    Subwidget       Class
    ---------       -----
    incr       Button
    decr       Button
    entry       Entry
    label       LabelNcKs{tj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<dS)NZ
tixControlrO�incr�decrr�r�)rNr4r�rVr�r�)rrWr$r%rrrr4ns
zControl.__init__cCs|jj|jd�dS)Nr�)rrr<)rrrr�	decrementuszControl.decrementcCs|jj|jd�dS)Nr�)rrr<)rrrr�	incrementxszControl.incrementcCs|jj|jd�dS)Nr�)rrr<)rrrrr�{szControl.invokecCs|jj|jd�dS)N�update)rrr<)rrrrr�~szControl.update)	r.r/r0r1r4r�r�r�r�rrrrr�`sr�c@s1eZdZdZidd�Zdd�ZdS)�DirListaRDirList - displays a list view of a directory, its previous
    directories and its sub-directories. The user can choose one of
    the directories displayed in the list or change to another directory.

    Subwidget       Class
    ---------       -----
    hlist       HList
    hsb              Scrollbar
    vsb              ScrollbarcKsetj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<dS)NZ
tixDirListrO�hlist�vsb�hsb)rNr4�_dummyHListrV�_dummyScrollbar)rrWr$r%rrrr4�szDirList.__init__cCs|jj|jd|�dS)N�chdir)rrr<)r�dirrrrr��sz
DirList.chdirN)r.r/r0r1r4r�rrrrr��s	r�c@s1eZdZdZidd�Zdd�ZdS)�DirTreea�DirTree - Directory Listing in a hierarchical view.
    Displays a tree view of a directory, its previous directories and its
    sub-directories. The user can choose one of the directories displayed
    in the list or change to another directory.

    Subwidget       Class
    ---------       -----
    hlist           HList
    hsb             Scrollbar
    vsb             ScrollbarcKsetj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<dS)NZ
tixDirTreerOr�r�r�)rNr4r�rVr�)rrWr$r%rrrr4�szDirTree.__init__cCs|jj|jd|�dS)Nr�)rrr<)rr�rrrr��sz
DirTree.chdirN)r.r/r0r1r4r�rrrrr��s
r�c@s%eZdZdZidd�ZdS)�DirSelectBoxa�DirSelectBox - Motif style file select box.
    It is generally used for
    the user to choose a file. FileSelectBox stores the files mostly
    recently selected into a ComboBox widget so that they can be quickly
    selected again.

    Subwidget       Class
    ---------       -----
    selection       ComboBox
    filter          ComboBox
    dirlist         ScrolledListBox
    filelist        ScrolledListBoxcKsOtj||ddg||�t|d�|jd<t|d�|jd<dS)NZtixDirSelectBoxrO�dirlist�dircbx)rNr4�
_dummyDirListrV�_dummyFileComboBox)rrWr$r%rrrr4�szDirSelectBox.__init__N)r.r/r0r1r4rrrrr��sr�c@s=eZdZdZidd�Zdd�Zdd�ZdS)	�ExFileSelectBoxa�ExFileSelectBox - MS Windows style file select box.
    It provides a convenient method for the user to select files.

    Subwidget       Class
    ---------       -----
    cancel       Button
    ok              Button
    hidden       Checkbutton
    types       ComboBox
    dir              ComboBox
    file       ComboBox
    dirlist       ScrolledListBox
    filelist       ScrolledListBoxcKs�tj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<t|d	�|jd	<t|d
�|jd
<dS)NZtixExFileSelectBoxrO�cancel�ok�hidden�typesr�r��file�filelist)rNr4r�rV�_dummyCheckbutton�_dummyComboBoxr�r�)rrWr$r%rrrr4�szExFileSelectBox.__init__cCs|jj|jd�dS)N�filter)rrr<)rrrrr��szExFileSelectBox.filtercCs|jj|jd�dS)Nr�)rrr<)rrrrr��szExFileSelectBox.invokeN)r.r/r0r1r4r�r�rrrrr��s
r�c@s=eZdZdZidd�Zdd�Zdd�ZdS)	�DirSelectDialoga#The DirSelectDialog widget presents the directories in the file
    system in a dialog window. The user can use this dialog window to
    navigate through the file system to select the desired directory.

    Subwidgets       Class
    ----------       -----
    dirbox       DirSelectDialogcKs9tj||ddg||�t|d�|jd<dS)NZtixDirSelectDialogrOZdirbox)rNr4�_dummyDirSelectBoxrV)rrWr$r%rrrr4�szDirSelectDialog.__init__cCs|jj|jd�dS)N�popup)rrr<)rrrrr��szDirSelectDialog.popupcCs|jj|jd�dS)N�popdown)rrr<)rrrrr��szDirSelectDialog.popdownN)r.r/r0r1r4r�r�rrrrr��sr�c@s=eZdZdZidd�Zdd�Zdd�ZdS)	�ExFileSelectDialogz�ExFileSelectDialog - MS Windows style file select dialog.
    It provides a convenient method for the user to select files.

    Subwidgets       Class
    ----------       -----
    fsbox       ExFileSelectBoxcKs9tj||ddg||�t|d�|jd<dS)NZtixExFileSelectDialogrO�fsbox)rNr4�_dummyExFileSelectBoxrV)rrWr$r%rrrr4szExFileSelectDialog.__init__cCs|jj|jd�dS)Nr�)rrr<)rrrrr�szExFileSelectDialog.popupcCs|jj|jd�dS)Nr�)rrr<)rrrrr�
szExFileSelectDialog.popdownN)r.r/r0r1r4r�r�rrrrr��sr�c@s=eZdZdZidd�Zdd�Zdd�ZdS)	�
FileSelectBoxa�ExFileSelectBox - Motif style file select box.
    It is generally used for
    the user to choose a file. FileSelectBox stores the files mostly
    recently selected into a ComboBox widget so that they can be quickly
    selected again.

    Subwidget       Class
    ---------       -----
    selection       ComboBox
    filter          ComboBox
    dirlist         ScrolledListBox
    filelist        ScrolledListBoxcKs{tj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<dS)NZtixFileSelectBoxrOr�r�r��	selection)rNr4r�rVr�)rrWr$r%rrrr4s
zFileSelectBox.__init__cCs|jj|jd�dS)Nr�)rrr<)rrrr�apply_filter"szFileSelectBox.apply_filtercCs|jj|jd�dS)Nr�)rrr<)rrrrr�%szFileSelectBox.invokeN)r.r/r0r1r4r�r�rrrrr�
sr�c@s=eZdZdZidd�Zdd�Zdd�ZdS)	�FileSelectDialogz�FileSelectDialog - Motif style file select dialog.

    Subwidgets       Class
    ----------       -----
    btns       StdButtonBox
    fsbox       FileSelectBoxcKsOtj||ddg||�t|d�|jd<t|d�|jd<dS)NZtixFileSelectDialogrOZbtnsr�)rNr4�_dummyStdButtonBoxrV�_dummyFileSelectBox)rrWr$r%rrrr42szFileSelectDialog.__init__cCs|jj|jd�dS)Nr�)rrr<)rrrrr�8szFileSelectDialog.popupcCs|jj|jd�dS)Nr�)rrr<)rrrrr�;szFileSelectDialog.popdownN)r.r/r0r1r4r�r�rrrrr�)sr�c@s=eZdZdZidd�Zdd�Zdd�ZdS)	�	FileEntrya_FileEntry - Entry field with button that invokes a FileSelectDialog.
    The user can type in the filename manually. Alternatively, the user can
    press the button widget that sits next to the entry, which will bring
    up a file selection dialog.

    Subwidgets       Class
    ----------       -----
    button       Button
    entry       EntrycKsRtj||dddg||�t|d�|jd<t|d�|jd<dS)NZtixFileEntryZ
dialogtyperOZbuttonr�)rNr4r�rVr�)rrWr$r%rrrr4JszFileEntry.__init__cCs|jj|jd�dS)Nr�)rrr<)rrrrr�PszFileEntry.invokecCsdS)Nr)rrrr�file_dialogSszFileEntry.file_dialogN)r.r/r0r1r4r�r�rrrrr�>s	r�c@s�eZdZdZdidd�Zidd�Zdidd�Zd	d
�Zdd�Zd
dddd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zid d!�Zid"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zid.d/�Zid0d1�Zd2d3�Zd4d5�Zd6d7�Zd8d9�Zd:d;�Zd<d=�Z dd>d?�Z!d@dA�Z"dBdC�Z#dDdE�Z$dFdG�Z%dHdI�Z&dJdK�Z'dLdM�Z(dNdO�Z)dPdQ�Z*dRdS�Z+idTdU�Z,idVdW�Z-dXdY�Z.dZd[�Z/d\d]�Z0id^d_�Z1d`da�Z2dbdc�Z3iddde�Z4dfdg�Z5ddhdi�Z6djdk�Z7dS)l�HListaHList - Hierarchy display  widget can be used to display any data
    that have a hierarchical structure, for example, file system directory
    trees. The list entries are indented and connected by branch lines
    according to their places in the hierarchy.

    Subwidgets - NoneNcKs&tj||dddg||�dS)NZtixHList�columnsrO)rNr4)rrWr$r%rrrr4_szHList.__init__cKs(|jj|jd||j||��S)Nr�)rrr<r#)rr�r$r%rrrr�csz	HList.addcKs4|sd}|jj|jd||j||��S)Nr8Zaddchild)rrr<r#)rryr$r%rrr�	add_childfs	zHList.add_childcCs |jj|jdd|�dS)N�anchor�set)rrr<)rr�rrr�
anchor_setlszHList.anchor_setcCs|jj|jdd�dS)Nr��clear)rrr<)rrrr�anchor_clearoszHList.anchor_clearrcCsK|s%|jj|jdd||�S|jj|jdd|d|�SdS)Nr	�widthz-char)rrr<)r�colr��charsrrr�column_widthrszHList.column_widthcCs|jj|jdd�dS)Nrm�all)rrr<)rrrr�
delete_allyszHList.delete_allcCs |jj|jdd|�dS)Nrmr�)rrr<)rr�rrr�delete_entry|szHList.delete_entrycCs |jj|jdd|�dS)NrmZ
offsprings)rrr<)rr�rrr�delete_offspringsszHList.delete_offspringscCs |jj|jdd|�dS)NrmZsiblings)rrr<)rr�rrr�delete_siblings�szHList.delete_siblingscCs |jj|jdd|�dS)N�dragsiter�)rrr<)rr�rrr�dragsite_set�szHList.dragsite_setcCs|jj|jdd�dS)Nr�r�)rrr<)rrrr�dragsite_clear�szHList.dragsite_clearcCs |jj|jdd|�dS)N�dropsiter�)rrr<)rr�rrr�dropsite_set�szHList.dropsite_setcCs|jj|jdd�dS)Nr�r�)rrr<)rrrr�dropsite_clear�szHList.dropsite_clearcKs/|jj|jdd||j||��dS)N�headerrh)rrr<r#)rr�r$r%rrr�
header_create�szHList.header_createcKsT|dkr%|j|jdd|�S|jj|jdd||j||��dS)Nr�r)r r<rrr#)rr�r$r%rrr�header_configure�szHList.header_configurecCs|jj|jdd||�S)Nr�r)rrr<)rr��optrrr�header_cget�szHList.header_cgetcCs|jj|jdd|�S)Nr��exists)rrr<)rr�rrr�
header_exists�szHList.header_existscCs |jj|jdd|�dS)Nr�rm)rrr<)rr�rrr�
header_delete�szHList.header_deletecCs|jj|jdd|�S)Nr��size)rrr<)rr�rrr�header_size�szHList.header_sizecCs |jj|jdd|�dS)N�hider�)rrr<)rr�rrr�
hide_entry�szHList.hide_entrycKs/|jj|jdd||j||��dS)N�	indicatorrh)rrr<r#)rr�r$r%rrr�indicator_create�s	zHList.indicator_createcKsT|dkr%|j|jdd|�S|jj|jdd||j||��dS)Nr�r)r r<rrr#)rr�r$r%rrr�indicator_configure�s
	zHList.indicator_configurecCs|jj|jdd||�S)Nr�r)rrr<)rr�r�rrr�indicator_cget�szHList.indicator_cgetcCs|jj|jdd|�S)Nr�r�)rrr<)rr�rrr�indicator_exists�szHList.indicator_existscCs |jj|jdd|�dS)Nr�rm)rrr<)rr�rrr�indicator_delete�szHList.indicator_deletecCs|jj|jdd|�S)Nr�r�)rrr<)rr�rrr�indicator_size�szHList.indicator_sizecCs|jj|jdd�S)NrIr�)rrr<)rrrr�info_anchor�szHList.info_anchorcCs+|j|jj|jdd|��p*dS)NrI�bbox)�_getintsrrr<)rr�rrr�	info_bbox�szHList.info_bboxcCs.|jj|jdd|�}|jj|�S)NrIr|)rrr<rE)rr�r~rrr�
info_children�szHList.info_childrencCs|jj|jdd|�S)NrI�data)rrr<)rr�rrr�	info_data�szHList.info_datacCs|jj|jdd�S)NrIr�)rrr<)rrrr�
info_dragsite�szHList.info_dragsitecCs|jj|jdd�S)NrIr�)rrr<)rrrr�
info_dropsite�szHList.info_dropsitecCs|jj|jdd|�S)NrIr�)rrr<)rr�rrr�info_exists�szHList.info_existscCs|jj|jdd|�S)NrIr�)rrr<)rr�rrr�info_hidden�szHList.info_hiddencCs|jj|jdd|�S)NrI�next)rrr<)rr�rrr�	info_next�szHList.info_nextcCs|jj|jdd|�S)NrIry)rrr<)rr�rrr�info_parent�szHList.info_parentcCs|jj|jdd|�S)NrI�prev)rrr<)rr�rrr�	info_prev�szHList.info_prevcCs+|jj|jdd�}|jj|�S)NrIr�)rrr<rE)rr~rrr�info_selection�szHList.info_selectioncCs"|jj|jdd|||�S)N�itemr)rrr<)rr�r�r�rrr�	item_cget�szHList.item_cgetc	KsZ|dkr(|j|jdd||�S|jj|jdd|||j||��dS)Nr
r)r r<rrr#)rr�r�r$r%rrr�item_configure�szHList.item_configurec	Ks2|jj|jdd|||j||��dS)Nr
rh)rrr<r#)rr�r�r$r%rrr�item_create�s	zHList.item_createcCs|jj|jdd||�S)Nr
r�)rrr<)rr�r�rrr�item_exists�szHList.item_existscCs#|jj|jdd||�dS)Nr
rm)rrr<)rr�r�rrr�item_delete�szHList.item_deletecCs|jj|jd||�S)N�	entrycget)rrr<)rr�r�rrrr�szHList.entrycgetcKsN|dkr"|j|jd|�S|jj|jd||j||��dS)N�entryconfigure)r r<rrr#)rr�r$r%rrrr�szHList.entryconfigurecCs|jj|jd|�S)N�nearest)rrr<)rrGrrrrsz
HList.nearestcCs|jj|jd|�dS)N�see)rrr<)rr�rrrrsz	HList.seecKs,|jj|jdd|j||��dS)Nr�r�)rrr<r#)rr$r%rrr�selection_clear	szHList.selection_clearcCs|jj|jdd|�S)Nr��includes)rrr<)rr�rrr�selection_includesszHList.selection_includescCs#|jj|jdd||�dS)Nr�r�)rrr<)r�first�lastrrr�
selection_setszHList.selection_setcCs|jj|jdd|�S)N�showr�)rrr<)rr�rrr�
show_entryszHList.show_entry)8r.r/r0r1r4r�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�rrrrrrrr	rrr
rrrrrrrrrrrrrrr�Wsjr�c@s(eZdZdZdidd�ZdS)�	InputOnlyz?InputOnly - Invisible widget. Unix only.

    Subwidgets - NoneNcKs tj||dd||�dS)NZtixInputOnly)rNr4)rrWr$r%rrrr4szInputOnly.__init__)r.r/r0r1r4rrrrrsrc@s(eZdZdZdidd�ZdS)�
LabelEntryaLabelEntry - Entry field with label. Packages an entry widget
    and a label into one mega widget. It can be used to simplify the creation
    of ``entry-form'' type of interface.

    Subwidgets       Class
    ----------       -----
    label       Label
    entry       EntryNcKsRtj||dddg||�t|d�|jd<t|d�|jd<dS)NZ
tixLabelEntry�	labelsiderOr�r�)rNr4r�rVr�)rrWr$r%rrrr4'szLabelEntry.__init__)r.r/r0r1r4rrrrrsrc@s(eZdZdZdidd�ZdS)�
LabelFrameaeLabelFrame - Labelled Frame container. Packages a frame widget
    and a label into one mega widget. To create widgets inside a
    LabelFrame widget, one creates the new widgets relative to the
    frame subwidget and manage them inside the frame subwidget.

    Subwidgets       Class
    ----------       -----
    label       Label
    frame       FrameNcKsRtj||dddg||�t|d�|jd<t|d�|jd<dS)NZ
tixLabelFramerrOr��frame)rNr4r�rV�_dummyFrame)rrWr$r%rrrr48szLabelFrame.__init__)r.r/r0r1r4rrrrr-s	rc@sXeZdZdZidd�Zidd�Zdd�Zdd	�Zd
d�ZdS)
�ListNoteBookaA ListNoteBook widget is very similar to the TixNoteBook widget:
    it can be used to display many windows in a limited space using a
    notebook metaphor. The notebook is divided into a stack of pages
    (windows). At one time only one of these pages can be shown.
    The user can navigate through these pages by
    choosing the name of the desired page in the hlist subwidget.cKsktj||ddg||�t|ddd�|jd<t|d�|jd<t|d�|jd<dS)NZtixListNoteBookrOZpanerqrr�Zshlist)rNr4�_dummyPanedWindowrVr��_dummyScrolledHList)rrWr$r%rrrr4Gs
zListNoteBook.__init__cKsI|jj|jd||j||��t||�|j|<|j|S)Nr�)rrr<r#rorV)rr(r$r%rrrr�Os(zListNoteBook.addcCs
|j|�S)N)rb)rr(rrr�pageTszListNoteBook.pagecCsU|jj|jj|jd��}g}x$|D]}|j|j|��q1W|S)N�pages)rrtrr<rPrb)rrd�retrFrrrr&Ws
$
zListNoteBook.pagescCs|jj|jd|�dS)N�raise)rrr<)rr(rrr�
raise_page_szListNoteBook.raise_pageN)	r.r/r0r1r4r�r%r&r)rrrrr"?sr"c@s(eZdZdZdidd�ZdS)�MeterzuThe Meter widget can be used to show the progress of a background
    job which may take a long time to execute.
    NcKs#tj||ddg||�dS)NZtixMeterrO)rNr4)rrWr$r%rrrr4gszMeter.__init__)r.r/r0r1r4rrrrr*bsr*c@sseZdZdZdidd�Zidd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dS)�NoteBookz�NoteBook - Multi-page container widget (tabbed notebook metaphor).

    Subwidgets       Class
    ----------       -----
    nbframe       NoteBookFrame
    <pages>       page widgets added dynamically with the add methodNcKs?tj||ddg||�t|ddd�|jd<dS)NZtixNoteBookrOZnbframerqr)rNr4rorV)rrWr$r%rrrr4sszNoteBook.__init__cKsI|jj|jd||j||��t||�|j|<|j|S)Nr�)rrr<r#rorV)rr(r$r%rrrr�xs(zNoteBook.addcCs8|jj|jd|�|j|j�|j|=dS)Nrm)rrr<rVr9)rr(rrrrm}szNoteBook.deletecCs
|j|�S)N)rb)rr(rrrr%�sz
NoteBook.pagecCsU|jj|jj|jd��}g}x$|D]}|j|j|��q1W|S)Nr&)rrtrr<rPrb)rrdr'rFrrrr&�s
$
zNoteBook.pagescCs|jj|jd|�dS)Nr()rrr<)rr(rrrr)�szNoteBook.raise_pagecCs|jj|jd�S)N�raised)rrr<)rrrrr,�szNoteBook.raised)r.r/r0r1r4r�rmr%r&r)r,rrrrr+ksr+c@seZdZdS)�
NoteBookFrameN)r.r/r0rrrrr-�sr-c@sgeZdZdZidd�Zidd�Zidd�Zdd	�Zd
d�Zdd
�Z	dS)�
OptionMenuz�OptionMenu - creates a menu button of options.

    Subwidget       Class
    ---------       -----
    menubutton      Menubutton
    menu            MenucKsOtj||ddg||�t|d�|jd<t|d�|jd<dS)NZ
tixOptionMenurO�
menubutton�menu)rNr4�_dummyMenubuttonrV�
_dummyMenu)rrWr$r%rrrr4�szOptionMenu.__init__cKs/|jj|jdd||j||��dS)Nr��command)rrr<r#)rr(r$r%rrr�add_command�szOptionMenu.add_commandcKs/|jj|jdd||j||��dS)Nr�Z	separator)rrr<r#)rr(r$r%rrr�
add_separator�szOptionMenu.add_separatorcCs|jj|jd|�dS)Nrm)rrr<)rr(rrrrm�szOptionMenu.deletecCs|jj|jd|�dS)N�disable)rrr<)rr(rrrr6�szOptionMenu.disablecCs|jj|jd|�dS)N�enable)rrr<)rr(rrrr7�szOptionMenu.enableN)
r.r/r0r1r4r4r5rmr6r7rrrrr.�sr.c@sseZdZdZidd�Zidd�Zdd�Zdd	�Zd
d�Zidd
�Z	dd�Z
dS)�PanedWindowa�PanedWindow - Multi-pane container widget
    allows the user to interactively manipulate the sizes of several
    panes. The panes can be arranged either vertically or horizontally.The
    user changes the sizes of the panes by dragging the resize handle
    between two panes.

    Subwidgets       Class
    ----------       -----
    <panes>       g/p widgets added dynamically with the add method.cKs&tj||dddg||�dS)NZtixPanedWindowr�rO)rNr4)rrWr$r%rrrr4�szPanedWindow.__init__cKsO|jj|jd||j||��t||dd�|j|<|j|S)Nr�rrr)rrr<r#rorV)rr(r$r%rrrr��s(zPanedWindow.addcCs8|jj|jd|�|j|j�|j|=dS)Nrm)rrr<rVr9)rr(rrrrm�szPanedWindow.deletecCs|jj|jd|�dS)NrC)rrr<)rr(rrrrC�szPanedWindow.forgetcCs|jj|jd||�S)N�panecget)rrr<)rr�r�rrrr9�szPanedWindow.panecgetcKsN|dkr"|j|jd|�S|jj|jd||j||��dS)N�
paneconfigure)r r<rrr#)rr�r$r%rrrr:�szPanedWindow.paneconfigurecs;�jj�jj�jd��}�fdd�|D�S)N�panescsg|]}�j|��qSr)rb)rKrF)rrrrL�s	z%PanedWindow.panes.<locals>.<listcomp>)rrErr<)rrdr)rrr;�s$zPanedWindow.panesN)r.r/r0r1r4r�rmrCr9r:r;rrrrr8�s	r8c@sIeZdZdZidd�Zdd�Zdd�Zdd	�Zd
S)�	PopupMenuaPopupMenu widget can be used as a replacement of the tk_popup command.
    The advantage of the Tix PopupMenu widget is it requires less application
    code to manipulate.


    Subwidgets       Class
    ----------       -----
    menubutton       Menubutton
    menu       MenucKsOtj||ddg||�t|d�|jd<t|d�|jd<dS)NZtixPopupMenurOr/r0)rNr4r1rVr2)rrWr$r%rrrr4�szPopupMenu.__init__cCs |jj|jd|j�dS)Nr�)rrr<)rr�rrrr��szPopupMenu.bind_widgetcCs |jj|jd|j�dS)Nr�)rrr<)rr�rrrr��szPopupMenu.unbind_widgetcCs&|jj|jd|j||�dS)NZpost)rrr<)rr�rFrGrrr�post_widget�szPopupMenu.post_widgetN)r.r/r0r1r4r�r�r=rrrrr<�s
	r<c@sUeZdZdZidd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�ResizeHandlez;Internal widget to draw resize handles on Scrolled widgets.c	KsAddddddddd	g	}tj||d
|||�dS)NrOr3ZcursorfgZcursorbgZ
handlesizeZ	hintcolorZ	hintwidthrFrGZtixResizeHandle)rNr4)rrWr$r%�flagsrrrr4�s
	zResizeHandle.__init__cCs |jj|jd|j�dS)NZattachwidget)rrr<)rr�rrr�
attach_widgetszResizeHandle.attach_widgetcCs |jj|jd|j�dS)NZdetachwidget)rrr<)rr�rrr�
detach_widgetszResizeHandle.detach_widgetcCs |jj|jd|j�dS)Nr�)rrr<)rr�rrrr�szResizeHandle.hidecCs |jj|jd|j�dS)Nr)rrr<)rr�rrrrszResizeHandle.showN)	r.r/r0r1r4r@rAr�rrrrrr>�s
r>c@s%eZdZdZidd�ZdS)�
ScrolledHListz0ScrolledHList - HList with automatic scrollbars.cKsetj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<dS)NZtixScrolledHListrOr�r�r�)rNr4r�rVr�)rrWr$r%rrrr4s

zScrolledHList.__init__N)r.r/r0r1r4rrrrrBsrBc@s%eZdZdZidd�ZdS)�ScrolledListBoxz4ScrolledListBox - Listbox with automatic scrollbars.cKsetj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<dS)NZtixScrolledListBoxrO�listboxr�r�)rNr4�
_dummyListboxrVr�)rrWr$r%rrrr4szScrolledListBox.__init__N)r.r/r0r1r4rrrrrCsrCc@s%eZdZdZidd�ZdS)�ScrolledTextz.ScrolledText - Text with automatic scrollbars.cKsetj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<dS)NZtixScrolledTextrOrr�r�)rNr4�
_dummyTextrVr�)rrWr$r%rrrr4'szScrolledText.__init__N)r.r/r0r1r4rrrrrF#srFc@s%eZdZdZidd�ZdS)�
ScrolledTListz0ScrolledTList - TList with automatic scrollbars.cKsetj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<dS)NZtixScrolledTListrOZtlistr�r�)rNr4�_dummyTListrVr�)rrWr$r%rrrr41s

zScrolledTList.__init__N)r.r/r0r1r4rrrrrH-srHc@s%eZdZdZidd�ZdS)�ScrolledWindowz2ScrolledWindow - Window with automatic scrollbars.cKsetj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<dS)NZtixScrolledWindowrOrr�r�)rNr4r!rVr�)rrWr$r%rrrr4<szScrolledWindow.__init__N)r.r/r0r1r4rrrrrJ8srJc@s@eZdZdZidd�Zidd�Zdd�ZdS)	�Selectz�Select - Container of button subwidgets. It can be used to provide
    radio-box or check-box style of selection options for the user.

    Subwidgets are buttons added dynamically using the add method.c	KsEtj||ddddddg||�t|d�|jd<dS)NZ	tixSelectZ	allowzero�radior�rrOr�)rNr4r�rV)rrWr$r%rrrr4Is

zSelect.__init__cKsI|jj|jd||j||��t||�|j|<|j|S)Nr�)rrr<r#r�rV)rr(r$r%rrrr�Ps(z
Select.addcCs|jj|jd|�dS)Nr�)rrr<)rr(rrrr�Usz
Select.invokeN)r.r/r0r1r4r�r�rrrrrKBsrKc@s(eZdZdZdidd�ZdS)�Shellz'Toplevel window.

    Subwidgets - NoneNcKs&tj||dddg||�dS)NZtixShellrO�title)rNr4)rrWr$r%rrrr4]szShell.__init__)r.r/r0r1r4rrrrrMXsrMc@sLeZdZdZdidd�Zdd�Zdd�Zd	d
�ZdS)�DialogShellz�Toplevel window, with popup popdown and center methods.
    It tells the window manager that it is a dialog window and should be
    treated specially. The exact treatment depends on the treatment of
    the window manager.

    Subwidgets - NoneNcKs5tj||ddddddddg||�dS)	NZtixDialogShellrOrNZmappedZ	minheightZminwidthryZ	transient)rNr4)rrWr$r%rrrr4is
	zDialogShell.__init__cCs|jj|jd�dS)Nr�)rrr<)rrrrr�pszDialogShell.popdowncCs|jj|jd�dS)Nr�)rrr<)rrrrr�sszDialogShell.popupcCs|jj|jd�dS)N�center)rrr<)rrrrrPvszDialogShell.center)r.r/r0r1r4r�r�rPrrrrrO`s
rOc@s4eZdZdZdidd�Zdd�ZdS)�StdButtonBoxz@StdButtonBox - Standard Button Box (OK, Apply, Cancel and Help) NcKs~tj||dddg||�t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<dS)NZtixStdButtonBoxr�rOr��applyr��help)rNr4r�rV)rrWr$r%rrrr4|szStdButtonBox.__init__cCs,||jkr(|jj|jd|�dS)Nr�)rVrrr<)rr(rrrr��szStdButtonBox.invoke)r.r/r0r1r4r�rrrrrQysrQc@sHeZdZdZdidd�Zdd�Zdd�Zd	d
�Zdd�Zdd
d�Z	dd�Z
dd�Zdd�Zdd�Z
idd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zid-d.�Zd/d0�Zdd1d2�ZdS)3�TLista�TList - Hierarchy display widget which can be
    used to display data in a tabular format. The list entries of a TList
    widget are similar to the entries in the Tk listbox widget. The main
    differences are (1) the TList widget can display the list entries in a
    two dimensional format and (2) you can use graphical images as well as
    multiple colors and fonts for the list entries.

    Subwidgets - NoneNcKs#tj||ddg||�dS)NZtixTListrO)rNr4)rrWr$r%rrrr4�szTList.__init__cCs |jj|jdd|�dS)N�activer�)rrr<)rr�rrr�
active_set�szTList.active_setcCs|jj|jdd�dS)NrUr�)rrr<)rrrr�active_clear�szTList.active_clearcCs |jj|jdd|�dS)Nr�r�)rrr<)rr�rrrr��szTList.anchor_setcCs|jj|jdd�dS)Nr�r�)rrr<)rrrrr��szTList.anchor_clearcCs |jj|jd||�dS)Nrm)rrr<)r�from_�torrrrm�szTList.deletecCs |jj|jdd|�dS)Nr�r�)rrr<)rr�rrrr��szTList.dragsite_setcCs|jj|jdd�dS)Nr�r�)rrr<)rrrrr��szTList.dragsite_clearcCs |jj|jdd|�dS)Nr�r�)rrr<)rr�rrrr��szTList.dropsite_setcCs|jj|jdd�dS)Nr�r�)rrr<)rrrrr��szTList.dropsite_clearcKs,|jj|jd||j||��dS)Nr�)rrr<r#)rr�r$r%rrrr��szTList.insertcCs|jj|jdd�S)NrIrU)rrr<)rrrr�info_active�szTList.info_activecCs|jj|jdd�S)NrIr�)rrr<)rrrrr��szTList.info_anchorcCs|jj|jdd|�S)NrIZdown)rrr<)rr�rrr�	info_down�szTList.info_downcCs|jj|jdd|�S)NrI�left)rrr<)rr�rrr�	info_left�szTList.info_leftcCs|jj|jdd|�S)NrI�right)rrr<)rr�rrr�
info_right�szTList.info_rightcCs+|jj|jdd�}|jj|�S)NrIr�)rrr<rE)rr~rrrr	�szTList.info_selectioncCs|jj|jdd�S)NrIr�)rrr<)rrrr�	info_size�szTList.info_sizecCs|jj|jdd|�S)NrIZup)rrr<)rr�rrr�info_up�sz
TList.info_upcCs|jj|jd||�S)Nr)rrr<)rrFrGrrrr�sz
TList.nearestcCs|jj|jd|�dS)Nr)rrr<)rr�rrrr�sz	TList.seecKs,|jj|jdd|j||��dS)Nr�r�)rrr<r#)rr$r%rrrr�szTList.selection_clearcCs|jj|jdd|�S)Nr�r)rrr<)rr�rrrr�szTList.selection_includescCs#|jj|jdd||�dS)Nr�r�)rrr<)rrrrrrr�szTList.selection_set)r.r/r0r1r4rVrWr�r�rmr�r�r�r�r�rZr�r[r]r_r	r`rarrrrrrrrrrT�s2rTc@sgeZdZdZdidd�Zdd�Zdd�Zd	d
�Zdd�Zd
dd�Z	dS)�Treez�Tree - The tixTree widget can be used to display hierarchical
    data in a tree form. The user can adjust
    the view of the tree by opening or closing parts of the tree.NcKsetj||ddg||�t|d�|jd<t|d�|jd<t|d�|jd<dS)NZtixTreerOr�r�r�)rNr4r�rVr�)rrWr$r%rrrr4�s
z
Tree.__init__cCs|jj|jd�dS)aThis command calls the setmode method for all the entries in this
     Tree widget: if an entry has no child entries, its mode is set to
     none. Otherwise, if the entry has any hidden child entries, its mode is
     set to open; otherwise its mode is set to close.�autosetmodeN)rrr<)rrrrrc�szTree.autosetmodecCs|jj|jd|�dS)z8Close the entry given by entryPath if its mode is close.�closeN)rrr<)r�	entrypathrrrrd�sz
Tree.closecCs|jj|jd|�S)z9Returns the current mode of the entry given by entryPath.�getmode)rrr<)rrerrrrf�szTree.getmodecCs|jj|jd|�dS)z6Open the entry given by entryPath if its mode is open.�openN)rrr<)rrerrrrg�sz	Tree.openZnonecCs |jj|jd||�dS)a�This command is used to indicate whether the entry given by
     entryPath has children entries and whether the children are visible. mode
     must be one of open, close or none. If mode is set to open, a (+)
     indicator is drawn next the entry. If mode is set to close, a (-)
     indicator is drawn next the entry. If mode is set to none, no
     indicators will be drawn for this entry. The default mode is none. The
     open mode indicates the entry has hidden children and this entry can be
     opened by the user. The close mode indicates that all the children of the
     entry are now visible and the entry can be closed by the user.�setmodeN)rrr<)rre�moderrrrh�s
zTree.setmode)
r.r/r0r1r4rcrdrfrgrhrrrrrb�srbc@s�eZdZdZdidd�Zdd�Zdd�Zd	d
�Zdd�Zd
dd�Z	dd�Z
d
dd�ZdS)�	CheckListz�The CheckList widget
    displays a list of items to be selected by the user. CheckList acts
    similarly to the Tk checkbutton or radiobutton widgets, except it is
    capable of handling many more items than checkbuttons or radiobuttons.
    NcKshtj||dddg||�t|d�|jd<t|d�|jd<t|d�|jd<dS)NZtixCheckListrOrLr�r�r�)rNr4r�rVr�)rrWr$r%rrrr4s
zCheckList.__init__cCs|jj|jd�dS)aThis command calls the setmode method for all the entries in this
     Tree widget: if an entry has no child entries, its mode is set to
     none. Otherwise, if the entry has any hidden child entries, its mode is
     set to open; otherwise its mode is set to close.rcN)rrr<)rrrrrcszCheckList.autosetmodecCs|jj|jd|�dS)z8Close the entry given by entryPath if its mode is close.rdN)rrr<)rrerrrrdszCheckList.closecCs|jj|jd|�S)z9Returns the current mode of the entry given by entryPath.rf)rrr<)rrerrrrf"szCheckList.getmodecCs|jj|jd|�dS)z6Open the entry given by entryPath if its mode is open.rgN)rrr<)rrerrrrg&szCheckList.openZoncCs7|jj|jj|jd|��}|jj|�S)z�Returns a list of items whose status matches status. If status is
     not specified, the list of items in the "on" status will be returned.
     Mode can be on, off, default�getselection)rrtrr<rE)rrir~rrrrk*s'zCheckList.getselectioncCs|jj|jd|�S)z(Returns the current status of entryPath.�	getstatus)rrr<)rrerrrrl1szCheckList.getstatuscCs |jj|jd||�dS)z~Sets the status of entryPath to be status. A bitmap will be
     displayed next to the entry its status is on, off or default.�	setstatusN)rrr<)rrerirrrrm5szCheckList.setstatus)r.r/r0r1r4rcrdrfrgrkrlrmrrrrrj	srjc@seZdZddd�ZdS)r�rcCstj||||�dS)N)ror4)rrWr(rqrrrr4Asz_dummyButton.__init__N)r.r/r0r4rrrrr�@sr�c@seZdZddd�ZdS)r�rcCstj||||�dS)N)ror4)rrWr(rqrrrr4Esz_dummyCheckbutton.__init__N)r.r/r0r4rrrrr�Dsr�c@seZdZddd�ZdS)r�rcCstj||||�dS)N)ror4)rrWr(rqrrrr4Isz_dummyEntry.__init__N)r.r/r0r4rrrrr�Hsr�c@seZdZddd�ZdS)r!rcCstj||||�dS)N)ror4)rrWr(rqrrrr4Msz_dummyFrame.__init__N)r.r/r0r4rrrrr!Lsr!c@seZdZddd�ZdS)r�rcCstj||||�dS)N)ror4)rrWr(rqrrrr4Qsz_dummyLabel.__init__N)r.r/r0r4rrrrr�Psr�c@seZdZddd�ZdS)rErcCstj||||�dS)N)ror4)rrWr(rqrrrr4Usz_dummyListbox.__init__N)r.r/r0r4rrrrrETsrEc@seZdZddd�ZdS)r2rcCstj||||�dS)N)ror4)rrWr(rqrrrr4Ysz_dummyMenu.__init__N)r.r/r0r4rrrrr2Xsr2c@seZdZddd�ZdS)r1rcCstj||||�dS)N)ror4)rrWr(rqrrrr4]sz_dummyMenubutton.__init__N)r.r/r0r4rrrrr1\sr1c@seZdZddd�ZdS)r�rcCstj||||�dS)N)ror4)rrWr(rqrrrr4asz_dummyScrollbar.__init__N)r.r/r0r4rrrrr�`sr�c@seZdZddd�ZdS)rGrcCstj||||�dS)N)ror4)rrWr(rqrrrr4esz_dummyText.__init__N)r.r/r0r4rrrrrGdsrGc@seZdZddd�ZdS)r�rcCs\tj||||�t|d�|jd<t|d�|jd<t|d�|jd<dS)NrDr�r�)ror4rErVr�)rrWr(rqrrrr4isz_dummyScrolledListBox.__init__N)r.r/r0r4rrrrr�hsr�c@seZdZddd�ZdS)r�rcCstj||||�dS)N)ror4)rrWr(rqrrrr4psz_dummyHList.__init__N)r.r/r0r4rrrrr�osr�c@seZdZddd�ZdS)r$rcCs\tj||||�t|d�|jd<t|d�|jd<t|d�|jd<dS)Nr�r�r�)ror4r�rVr�)rrWr(rqrrrr4tsz_dummyScrolledHList.__init__N)r.r/r0r4rrrrr$ssr$c@seZdZddd�ZdS)rIrcCstj||||�dS)N)ror4)rrWr(rqrrrr4{sz_dummyTList.__init__N)r.r/r0r4rrrrrIzsrIc@seZdZddd�ZdS)r�rcCs�tj|||d|g�t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<y0t|d�|jd<t|d�|jd<Wntk
r�YnXdS)Nr�r�r�r�r�r�r�)ror4r�rVr�r�r�r�)rrWr(rqrrrr4s
z_dummyComboBox.__init__N)r.r/r0r4rrrrr�~sr�c@seZdZddd�ZdS)r�rcCs\tj||||�t|d�|jd<t|d�|jd<t|d�|jd<dS)Nr�r�r�)ror4r�rVr�)rrWr(rqrrrr4�sz_dummyDirList.__init__N)r.r/r0r4rrrrr��sr�c@seZdZddd�ZdS)r�rcCsFtj||||�t|d�|jd<t|d�|jd<dS)Nr�r�)ror4r�rVr�)rrWr(rqrrrr4�sz_dummyDirSelectBox.__init__N)r.r/r0r4rrrrr��sr�c@seZdZddd�ZdS)r�rcCs�tj||||�t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<dS)	Nr�r�r�r�r�r�r�r�)ror4r�rVr�r�r�)rrWr(rqrrrr4�sz_dummyExFileSelectBox.__init__N)r.r/r0r4rrrrr��sr�c@seZdZddd�ZdS)r�rcCsrtj||||�t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<dS)Nr�r�r�r�)ror4r�rVr�)rrWr(rqrrrr4�s
z_dummyFileSelectBox.__init__N)r.r/r0r4rrrrr��sr�c@seZdZddd�ZdS)r�rcCs0tj||||�t|d�|jd<dS)Nr�)ror4r�rV)rrWr(rqrrrr4�sz_dummyFileComboBox.__init__N)r.r/r0r4rrrrr��sr�c@seZdZddd�ZdS)r�rcCsrtj||||�t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<dS)Nr�rRr�rS)ror4r�rV)rrWr(rqrrrr4�s
z_dummyStdButtonBox.__init__N)r.r/r0r4rrrrr��sr�c@seZdZddd�ZdS)�_dummyNoteBookFramercCstj||||�dS)N)ror4)rrWr(rqrrrr4�sz_dummyNoteBookFrame.__init__N)r.r/r0r4rrrrrn�srnc@seZdZddd�ZdS)r#rcCstj||||�dS)N)ror4)rrWr(rqrrrr4�sz_dummyPanedWindow.__init__N)r.r/r0r4rrrrr#�sr#cCs|jjd|j�S)zzReturns the qualified path name for the widget. Normally used to set
    default options for subwidgets. See tixwidgets.pyZ
tixOptionName)rrr<)r�rrr�
OptionName�srocCsGd}x:|j�D],}|d|d|d||d}qW|S)Nr8z{{z} {z - z}} )�keys)�dict�s�typerrr�FileTypeList�s*rtc@seZdZdZdS)�CObjViewaBThis file implements the Canvas Object View widget. This is a base
    class of IconView. It implements automatic placement/adjustment of the
    scrollbars according to the canvas objects inside the canvas subwidget.
    The scrollbars are adjusted so that the canvas is just large enough
    to see all the objects.
    N)r.r/r0r1rrrrru�sruc@seZdZdZdidd�Zdd�Zdd�Zd	d
�Zddd�Zdd
d�Z	dd�Z
dd�Zdd�Zddd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zdd!d"�Zd#d$�Zd%d&�Zd'd(�ZdS))�Grida}The Tix Grid command creates a new window  and makes it into a
    tixGrid widget. Additional options, may be specified on the command
    line or in the option database to configure aspects such as its cursor
    and relief.

    A Grid widget displays its contents in a two dimensional grid of cells.
    Each cell may contain one Tix display item, which may be in text,
    graphics or other formats. See the DisplayStyle class for more information
    about Tix display items. Individual cells, or groups of cells, can be
    formatted with a wide range of attributes, such as its color, relief and
    border.

    Subwidgets - NoneNcKs/g}||_tj||d|||�dS)NZtixGrid)r$rNr4)rrWr$r%r�rrrr4�s	z
Grid.__init__cCs|jj|dd�dS)zRemoves the selection anchor.r�r�N)rr)rrrrr�szGrid.anchor_clearcCs|j|jj|dd��S)z3Get the (x,y) coordinate of the current anchor cellr�r+)r�rr)rrrr�
anchor_getszGrid.anchor_getcCs |jj|dd||�dS)z/Set the selection anchor to the cell at (x, y).r�r�N)rr)rrFrGrrrr�szGrid.anchor_setcCsH|dkr(|jj|dd|�n|jj|dd||�dS)zdDelete rows between from_ and to inclusive.
        If to is not provided,  delete only row at from_Nrmr
)rr)rrXrYrrr�
delete_rowszGrid.delete_rowcCsH|dkr(|jj|dd|�n|jj|dd||�dS)zjDelete columns between from_ and to inclusive.
        If to is not provided,  delete only column at from_Nrmr	)rr)rrXrYrrr�
delete_columnszGrid.delete_columncCs|jj|dd�dS)zUIf any cell is being edited, de-highlight the cell  and  applies
        the changes.�editrRN)rr)rrrr�
edit_applyszGrid.edit_applycCs |jj|dd||�dS)zmHighlights  the  cell  at  (x, y) for editing, if the -editnotify
        command returns True for this cell.rzr�N)rr)rrFrGrrr�edit_set$sz
Grid.edit_setcCs<|r |ddkr d|}|jj|d|||�S)z&Get the option value for cell at (x,y)rrr)rr)rrFrGrrrrr)s
zGrid.entrycgetcKs|jd||f||�S)Nr)Z
_configure)rrFrGr$r%rrrr/szGrid.entryconfigurecCs%|j|jj|dd||��S)z+Return True if display item exists at (x,y)rIr�)Z_getbooleanrr)rrFrGrrrr5szGrid.info_existscCs|jj|dd||�S)NrIr�)rr)rrFrGrrrr�9szGrid.info_bboxcCs#|jj|dd|||�dS)z�Moves the range of columns from position FROM through TO by
        the distance indicated by OFFSET. For example, move_column(2, 4, 1)
        moves the columns 2,3,4 to columns 3,4,5.�mover	N)rr)rrXrY�offsetrrr�move_column=szGrid.move_columncCs#|jj|dd|||�dS)z�Moves the range of rows from position FROM through TO by
        the distance indicated by OFFSET.
        For example, move_row(2, 4, 1) moves the rows 2,3,4 to rows 3,4,5.r}r
N)rr)rrXrYr~rrr�move_rowCsz
Grid.move_rowcCs"|j|jj|d||��S)z8Return coordinate of cell nearest pixel coordinate (x,y)r)r�rr)rrFrGrrrrIszGrid.nearestcKsQ|j|j|�}|dk	r1d|f|}|jj|d|||�dS)Nz	-itemtyper�)r#r$rr)rrFrGr�r%�argsrrrr�SszGrid.setc	Ks7|jj|jj|jdd||ji|���S)a�Queries or sets the size of the column given by
        INDEX.  INDEX may be any non-negative
        integer that gives the position of a given column.
        INDEX can also be the string "default"; in this case, this command
        queries or sets the default size of all columns.
        When no option-value pair is given, this command returns a tuple
        containing the current size setting of the given column.  When
        option-value pairs are given, the corresponding options of the
        size setting of the given column are changed. Options may be one
        of the follwing:
              pad0 pixels
                     Specifies the paddings to the left of a column.
              pad1 pixels
                     Specifies the paddings to the right of a column.
              size val
                     Specifies the width of a column.  Val may be:
                     "auto" -- the width of the column is set to the
                     width of the widest cell in the column;
                     a valid Tk screen distance unit;
                     or a real number following by the word chars
                     (e.g. 3.4chars) that sets the width of the column to the
                     given number of characters.r�r	)rrtrr<r#)rr�r%rrr�size_columnYs!zGrid.size_columnc	Ks4|jj|jj|dd||ji|���S)a�Queries or sets the size of the row given by
        INDEX. INDEX may be any non-negative
        integer that gives the position of a given row .
        INDEX can also be the string "default"; in this case, this command
        queries or sets the default size of all rows.
        When no option-value pair is given, this command returns a list con-
        taining the current size setting of the given row . When option-value
        pairs are given, the corresponding options of the size setting of the
        given row are changed. Options may be one of the follwing:
              pad0 pixels
                     Specifies the paddings to the top of a row.
              pad1 pixels
                     Specifies the paddings to the bottom of a row.
              size val
                     Specifies the height of a row.  Val may be:
                     "auto" -- the height of the row is set to the
                     height of the highest cell in the row;
                     a valid Tk screen distance unit;
                     or a real number following by the word chars
                     (e.g. 3.4chars) that sets the height of the row to the
                     given number of characters.r�r
)rrtrr#)rr�r%rrr�size_rowssz
Grid.size_rowcCs |jj|jd||�dS)z7Clears the cell at (x, y) by removing its display item.�unsetN)rrr<)rrFrGrrrr��sz
Grid.unset)r.r/r0r1r4r�rwr�rxryr{r|rrrr�rr�rr�r�r�r�rrrrrv�s(
	
rvc@s(eZdZdZdidd�ZdS)�ScrolledGridzScrolled Grid widgetsNcKs/g}||_tj||d|||�dS)NZtixScrolledGrid)r$rNr4)rrWr$r%r�rrrr4�s	zScrolledGrid.__init__)r.r/r0r1r4rrrrr��sr�rr��� )xr3rrZ	TkVersion�ImportErrorZ_tkinterZWINDOWZTEXTZSTATUSZ	IMMEDIATEZIMAGEZ	IMAGETEXTZBALLOONZAUTOZ	ACROSSTOP�ASCIIZCELLZCOLUMNZ
DECREASINGZ
INCREASINGZINTEGERZMAIN�MAXZREALZROWZS_REGIONZX_REGIONZY_REGIONZ
TCL_DONT_WAITZTCL_WINDOW_EVENTSZTCL_FILE_EVENTSZTCL_TIMER_EVENTSZTCL_IDLE_EVENTSZTCL_ALL_EVENTSr5rr2r:rT�	__bases__rNrorr�r�r�r�r�r�r�r�r�r�r�r�r�ZXViewZYViewr�rrrr"r*r+r-r.r8r<r>rBrCrFrHrJrKrMrOrQrTrbrjZButtonr�ZCheckbuttonr�ZEntryr�ZFramer!ZLabelr�ZListboxrEZMenur2Z
Menubuttonr1Z	Scrollbarr�ZTextrGr�r�r$rIr�r�r�r�r�r�r�rnr#rortrurvr�rrrr�<module>s�
�-�8,,!"�#	()


S.7

�