Sindbad~EG File Manager
�
&Μg�,��v�ddlZddlZddlZddl�ddlmZejded��dZdZd Zd
Z dZ
dZd
ZdZ
dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Z dZ!Gd!�d"�Z"Gd#�d$ejFe"�Z#Gd%�d&�Z$ejJjLe$fzejJ_&Gd'�d(ejJ�Z'Gd)�d*e'�Z(Gd+�d,�Z)Gd-�d.e'�Z*Gd/�d0e'�Z+Gd1�d2e'�Z,Gd3�d4e'�Z-Gd5�d6e'�Z.Gd7�d8e'�Z/Gd9�d:e'�Z0Gd;�d<e'�Z1Gd=�d>e'�Z2Gd?�d@e'�Z3GdA�dBe'�Z4GdC�dDe'�Z5GdE�dFe'�Z6GdG�dHe'e7e8�Z9GdI�dJe'�Z:GdK�dLe'�Z;GdM�dNe'�Z<GdO�dPe'�Z=GdQ�dRe'�Z>GdS�dTe'�Z?GdU�dVe'�Z@GdW�dXe'�ZAGdY�dZe'�ZBGd[�d\e'�ZCGd]�d^e'�ZDGd_�d`e'�ZEGda�dbe'�ZFGdc�dde'�ZGGde�dfe'�ZHGdg�dhe'�ZIGdi�dje'�ZJGdk�dle'�ZKGdm�dne'�ZLGdo�dpe'�ZMGdq�dre'e7e8�ZNGds�dte'�ZOGdu�dve'�ZPGdw�dxeQe(�ZRGdy�dzeSe(�ZTGd{�d|eUe(�ZVGd}�d~eWe(�ZXGd�d�eYe(�ZZGd��d�e[e(�Z\Gd��d�e]e(�Z^Gd��d�e_e(�Z`Gd��d�eae(�ZbGd��d�ece(�ZdGd��d�eFe(�ZeGd��d�e9e(�ZfGd��d�eEe(�ZgGd��d�eNe(�ZhGd��d�e,e(�ZiGd��d�e.e(�ZjGd��d�e0e(�ZkGd��d�e1e(�ZlGd��d�e4e(�ZmGd��d�e,e(�ZnGd��d�eMe(�ZoGd��d�e@e(�ZpGd��d�eBe(�Zqd��Zrd��ZsGd��d�e'�ZtGd��d�e'e7e8�ZuGd��d�eu�Zvy)��N)�*)� _cnfmergeznThe Tix Tk extension is unmaintained, and the tkinter.tix wrapper module is deprecated in favor of tkinter.ttk�)�
stacklevel�window�text�status� immediate�image� imagetext�balloon�auto� acrosstop�ascii�cell�column�
decreasing�
increasing�integer�main�max�real�rowzs-regionzx-regionzy-region���� c�F�eZdZdZd�Zd�Zdd�Zdd�Zd�Zd�Z d �Z
dd
�Zy)�
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.
c�<�|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.
�tix�addbitmapdir��tk�call)�self� directorys �(/usr/local/lib/python3.12/tkinter/tix.py�tix_addbitmapdirztixCommand.tix_addbitmapdirYs���w�w�|�|�E�>�9�=�=�c�<�|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!�cgetr#�r&�options r(�tix_cgetztixCommand.tix_cgetes��
�w�w�|�|�E�6�6�2�2r*Nc�
�|rt||f�}n
|rt|�}|�|jdd�St|t�r|j ddd|z�S|j
j
d|j|�z�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.
r!� configure�-)r!r1)r�
_getconfigure�
isinstance�str�_getconfigure1r$r%�_options�r&�cnf�kws r(�
tix_configureztixCommand.tix_configurels~����S�"�I�&�C�
��C�.�C��;��%�%�e�[�9�9��c�3���&�&�u�k�3�s�7�C�C��w�w�|�|�0�4�=�=��3E�E�F�Fr*c�x�|�|jjdd|�S|jjdd�S)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.
r!�
filedialogr#)r&�dlgclasss r(�tix_filedialogztixCommand.tix_filedialog�s6�����7�7�<�<��|�X�>�>��7�7�<�<��|�4�4r*c�<�|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.
r!� getbitmapr#�r&�names r(�
tix_getbitmapztixCommand.tix_getbitmap�s���w�w�|�|�E�;��5�5r*c�<�|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.
r!�getimager#rBs r(�tix_getimageztixCommand.tix_getimage�s���w�w�|�|�E�:�t�4�4r*c�>�|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
r!r.�getr#rBs r(�tix_option_getztixCommand.tix_option_get�s���w�w�|�|�E�8�U�D�9�9r*c��|�|jjdd|||�S|jjdd||�S)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.
r!�resetoptionsr#)r&� newScheme�
newFontSet�
newScmPrios r(�tix_resetoptionsztixCommand.tix_resetoptions�s>���!��7�7�<�<��~�y�*�j�Y�Y��7�7�<�<��~�y�*�M�Mr*�N)�__name__�
__module__�__qualname__�__doc__r)r/r;r?rDrGrJrP�r*r(rrNs1���
>�3�G�,5� 6�5�:�"Nr*rc��eZdZdZdd�Zd�Zy)�Tkz{Toplevel widget of Tix which represents mostly the main window
of an application. It has an associated Tcl interpreter.Nc�n�tjj||||�tjjd�}|jjd�|�<|jjd|z�|jjd|z�|jjd�y)N�TIX_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)�tkinterrX�__init__�os�environrIr$�eval)r&�
screenName�baseName� className�tixlibs r(r\zTk.__init__�s����
�
���D�*�h� �B������
�.�������S�T����G�G�L�L�C�f�L�M��G�G�L�L�G�&�P�Q�
�����*�+r*c�f�|jdd�tjj|�y)N�WM_DELETE_WINDOW�)�protocolr[rX�destroy�r&s r(rhz
Tk.destroy�s#���
�
�(�"�-��
�
���4� r*)NN�Tix�rRrSrTrUr\rhrVr*r(rXrX�s��@�,�!r*rXc�F�eZdZdZifd�ZeZd�Zd�Zd�Zd
d�Z dd�Z
d �Zy)�Formz�The Tix Form geometry manager
Widgets can be arranged by specifying attachments to other widgets.
See Tix documentation for complete detailsc�t�|jjd|jg|j||����y)N�tixForm�r$r%�_wr7r8s r(�configzForm.config�s*��������Y����A�$�-�-��R�*@�Ar*c�4�tj|||i�yrQ)rm�form�r&�key�values r(�__setitem__zForm.__setitem__�s��� � �$��e��%r*c�P�|jjdd|j�S)Nro�check�r$r%rqris r(rzz
Form.check�s���w�w�|�|�I�w����8�8r*c�R�|jjdd|j�y)Nro�forgetr{ris r(r}zForm.forget�s�������Y��$�'�'�2r*c�4�|sn|sl|jjdd|j�}|jj|�}d}|D]!}||jj |�fz}�#|S|jjdd|j||�S)Nro�gridrV)r$r%rq� splitlist�getint)r&�xsize�ysize�x�y�zs r(rz Form.grid�s����������Y�����8�A����!�!�!�$�A��A����������*�,�,����H��w�w�|�|�I�v�t�w�w��u�E�Er*Nc��|s'|jjdd|j�S|ddk7rd|z}|jjdd|j|�S)Nro�inforr2r{r-s r(r�z Form.infosR����7�7�<�<� �6�4�7�7�;�;��!�9����6�\�F��w�w�|�|�I�v�t�w�w��?�?r*c���|jj|jjdd|j��D�cgc]}|j |���c}Scc}w)Nro�slaves)r$r�r%rq�
_nametowidget�r&r�s r(r�zForm.slaves
s`�����!�!��w�w�|�|� �(�D�G�G�5�6�7�6�+,��"�"�1�%�6�7� 7��7s�A)rrrQ)rRrSrTrUrrrtrxrzr}rr�r�rVr*r(rmrm�s9��2�
�B��D�&�9�3�F�@�7r*rmc�^�eZdZdZdddiifd�Zd�Zd�Zd�Zd�Zd�Z d �Z
d
�Zidfd�Zd�Z
y)
� 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��|rt||f�}nt|�}d}|r|jd�ndg}t|j��D]\}}||vs�|d|z|fz}||=�||_|j||�|r(|jj||jg|���|rtj||�i|_y)NrV�optionsr2)r�append�list�items�
widgetName�_setupr$r%rq�Widgetrr�subwidget_list) r&�masterr��static_optionsr9r:�extra�k�vs r(r\zTixWidget.__init__!s�����S�"�I�&�C��C�.�C�����!�!�)�,�'�[�N��� � ��$�C�A�a��N�"���q��!��,����F�%�
%������F�C� ���D�G�G�L�L��T�W�W�5�u�5���M�M�$��$�
!��r*c�R�||jvr|j|St|��rQ)r��AttributeErrorrBs r(�__getattr__zTixWidget.__getattr__Ns,���4�&�&�&��&�&�t�,�,��T�"�"r*c�R�|jjd|j|�y)z1Set a variable without calling its action routine�tixSetSilentNr{)r&rws r(�
set_silentzTixWidget.set_silentSs�������^�T�W�W�e�4r*c��|j|�}|std|zdz|jz��|t|j�dzd}|j|�S)zSReturn the named subwidget (which must have been created by
the sub-class).z
Subwidget z not child of �N)�_subwidget_name�TclError�_name�lenrqr�)r&rC�ns r(� subwidgetzTixWidget.subwidgetWs_��
� � ��&����<�$�.�1A�A�D�J�J�N�O�O�
�c�$�'�'�l�1�n�o����!�!�!�$�$r*c���|j�}|sgSg}|D]>}|t|j�dzd} |j|j |���@|S#Y�GxYw)zReturn all subwidgets.r�N)�_subwidget_namesr�rqr�r�)r&�names�retlistrCs r(�subwidgets_allzTixWidget.subwidgets_allasl���%�%�'����I����D���D�G�G��Q���(�D�
����t�1�1�$�7�8�����
��s� A�A c�p� |jj|jd|�S#t$rYywxYw)z7Get a subwidget name (returns a String, not a Widget !)r�N)r$r%rqr�rBs r(r�zTixWidget._subwidget_nameps4�� ��7�7�<�<�����d�;�;��� �� �s�&)� 5�5c�� |jj|jdd�}|jj|�S#t$rYywxYw)z"Return the name of all subwidgets.�
subwidgetsz-allN)r$r%rqr�r�r�s r(r�zTixWidget._subwidget_nameswsH�� ������T�W�W�l�F�;�A��7�7�$�$�Q�'�'��� �� �s�AA� A�Ac���|dk(ryt|t�st|�}t|t�st|�}|j�}|D]#}|jj|dd|z|��%y)z8Set configuration options for all subwidgets (and self).rfNr1r2)r4r5�reprr�r$r%)r&r.rwr�rCs r(�
config_allzTixWidget.config_allsd���R�<���F�C�(��&�\�F��%��%���K�E��%�%�'���D��G�G�L�L��{�C�&�L�%�@�r*c��|�|}|r|rt||f�}n|r|}d}|j�D]+\}}t|�r|j|�}|d|z|fz}�-|jjdd|f|z�S)NrVr2r�create)rr��callable� _registerr$r%)r&�imgtyper9r�r:r�r�r�s r(�image_createzTixWidget.image_create�s����>��F�
�#�Y��R�y�1�s�
�r�����I�I�K�D�A�q���{��N�N�1�%����Q���
�*�G� ��y�y�~�~�w��'�;�g�E�F�Fr*c�^� |jjdd|�y#t$rYywxYw)Nr�delete)r$r%r�)r&�imgnames r(�image_deletezTixWidget.image_delete�s-�� ��G�G�L�L��(�G�4��� �� �s� � ,�,)rRrSrTrUr\r�r�r�r�r�r�r�r�r�rVr*r(r�r�sQ��� $��#���&!�Z#�
5�%�
���
A�)+�4�
G�r*r�c� �eZdZdZ dd�Zd�Zy)�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)c��|r>|j|�} |t|j�dzd}|jd�}|s#tj||ddd|i�||_y|}t
t�dz
�D]-}dj|d|dz�} |j| �}
|
}�/|r|d}tj||ddd|i�||_y#g}Y��xYw#t$rt|||dd��}Y��wxYw)Nr��.rCr)�destroy_physically�check_intermediate���)r�r�rq�splitr�r\�range�joinr��KeyErrorr�r�)r&r�rCr�r��path�plist�parent�ir��ws r(r\zTixSubWidget.__init__�s"����)�)�$�/�D�
��C�� � �N�1�,�-�.���
�
�3���"����t�V�T�4�&�4��I�$#5����F��3�u�:��>�*���H�H�U�4�A�a�C�[�)��@��,�,�Q�/�A��F� +���R�y�����t�V�T�4�&�4��I�"4����/
���� �@�)�&�%��(�=>�=>�@�F�@�s�,C�C"�C�"D�?Dc���t|jj��D]}|j��|j|j
jvr!|j
j|j=|j|j
jvr!|j
j|j=|jr'|jjd|j�yy)Nrh)r��children�valuesrhr�r�r�r�r$r%rq�r&�cs r(rhzTixSubWidget.destroy�s���
�d�m�m�*�*�,�-�A�q�y�y�{�-��:�:����-�-�-����$�$�T�Z�Z�0��:�:����3�3�3����*�*�4�:�:�6��"�"��G�G�L�L��D�G�G�,�#r*N)r�r�rkrVr*r(r�r��s���9:�5�@-r*r�c�H�eZdZdZifdd�d�Zd�Zd�Zd�Zd�Zifd �Z d
�Z
y)�DisplayStylezRDisplayStyle - handle configuration options shared by
(multiple) Display ItemsN)r�c���|�)d|vr|d}nd|vr|d}ntjd�}|j|_|jjd|g|j ||����|_y)N� refwindowzcreate display style�tixDisplayStyle)r[�_get_default_rootr$r%r7� stylename)r&�itemtyper9r�r:s r(r\zDisplayStyle.__init__�st���>��b� ��K�����#��[�)�� �2�2�3I�J���)�)���%������&7��5�!�]�]�3�r�2�5��r*c��|jSrQ)r�ris r(�__str__zDisplayStyle.__str__�s���~�~�r*c�z�|r|rt||f�}n|r|}d}|j�D]\}}|d|z|fz}�|S)NrVr2)rr�)r&r9r:�optsr�r�s r(r7zDisplayStyle._options�sM��
�#��S�"�I�&�C�
��C����I�I�K�D�A�q��3�q�5�!�*�$�D� ��r*c�P�|jj|jd�y�Nr��r$r%r�ris r(r�zDisplayStyle.delete�s�������T�^�^�X�.r*c�Z�|jj|jdd|z|�y)Nr1�-%sr�rus r(rxzDisplayStyle.__setitem__�s �������T�^�^�[�%��)�U�Cr*c�^�|j|jdg|j||����S)Nr1)r3r�r7r8s r(rrzDisplayStyle.config�s6��!�t�!�!��N�N�K�A�*.�-�-��B�*?�A� Ar*c�V�|jj|jdd|z�S)Nr,r�r�)r&rvs r(�__getitem__zDisplayStyle.__getitem__�s!���w�w�|�|�D�N�N�F�E�#�I�>�>r*)rRrSrTrUr\r�r7r�rxrrr�rVr*r(r�r��s=�� �&(�
5�4�
5���/�D��A�?r*r�c�,�eZdZdZdifd�Zifd�Zd�Zy)�BalloonzBalloon help widget.
Subwidget Class
--------- -----
label Label
message MessageNc��gd�}tj||d|||�t|dd��|jd<t|dd��|jd<y)N)r��installcolormap�initwait� statusbar�cursor�
tixBalloon�labelr�r��message�r�r\�_dummyLabelr��r&r�r9r:�statics r(r\zBalloon.__init__s[�������4���v�s�B�G�'2�4��FG�(I����G�$�)4�T�9�HI�*K����I�&r*c��|jj|jd|jg|j||����y)zkBind balloon widget to another.
One balloon widget may be bound to several widgets at the same time�bindNrp)r&�widgetr9r:s r(�bind_widgetzBalloon.bind_widgets2�� ������T�W�W�f�f�i�i�I�$�-�-��R�2H�Ir*c�f�|jj|jd|j�y�N�unbindr{�r&r�s r(�
unbind_widgetzBalloon.unbind_widget��������T�W�W�h�� � �2r*)rRrSrTrUr\r�rrVr*r(r�r�s$���#��K�')�J�
3r*r�c�,�eZdZdZdifd�Zifd�Zd�Zy)� ButtonBoxzgButtonBox - A container for pushbuttons.
Subwidgets are the buttons added with the add method.
Nc�<�tj||dddg||�y)N�tixButtonBox�orientationr��r�r\�r&r�r9r:s r(r\zButtonBox.__init__&s#�����4���)�9�5�s�B� @r*c��|jj|jd|g|j||����}t ||�|j
|<|S)z$Add a button with given name to box.�add�r$r%rqr7�_dummyButtonr�)r&rCr9r:�btns r(r
z
ButtonBox.add*sL���d�g�g�l�l�4�7�7�E�4�I�$�-�-��R�2H�I��$0��t�$<����D�!��
r*c�p�||jvr(|jj|jd|�yy�N�invoke�r�r$r%rqrBs r(rzButtonBox.invoke1�-���4�&�&�&��G�G�L�L����(�D�1�'r*�rRrSrTrUr\r
rrVr*r(rr"s#���#��@���2r*rc�4�eZdZdZdifd�Zd�Zd�Zd�Zd�Zy)�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 optionNc��tj||dgd�||�t|d�|jd<t |d�|jd<t|d�|jd<t
|d�|jd< t|d�|jd<t|d�|jd<y#t$rYywxYw) N�tixComboBox)�editable�dropdown�fancyr�r��entry�arrow�slistbox�tick�cross)r�r\r�r��_dummyEntryr�_dummyScrolledListBox� TypeErrorrs r(r\zComboBox.__init__Cs������4���G��� $�(3�4��'A����G�$�'2�4��'A����G�$�'3�D�'�'B����G�$�*?��@J�+L����J�'� �*6�t�V�*D�D����'�+7��g�+F�D����(��� �� �s�2B5�5 C�Cc�R�|jj|jd|�y)N�
addhistoryr{�r&r5s r(�add_historyzComboBox.add_historyUs�������T�W�W�l�C�0r*c�R�|jj|jd|�y)N�
appendhistoryr{r%s r(�append_historyzComboBox.append_historyXs�������T�W�W�o�s�3r*c�T�|jj|jd||�y�N�insertr{)r&�indexr5s r(r,zComboBox.insert[s�������T�W�W�h��s�3r*c�R�|jj|jd|�y)N�pickr{�r&r-s r(r/z
ComboBox.pick^s�������T�W�W�f�e�,r*) rRrSrTrUr\r&r)r,r/rVr*r(rr5s(��
E� $���$1�4�4�-r*rc�4�eZdZdZdifd�Zd�Zd�Zd�Zd�Zy)�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 LabelNc��tj||ddg||�t|d�|jd<t|d�|jd<t |d�|jd<t|d�|jd<y)N�
tixControlr��incr�decrr�r)r�r\rr�r�r rs r(r\zControl.__init__osx�����4��� �{�C��L�&2�4��&@����F�#�&2�4��&@����F�#�'2�4��'A����G�$�'2�4��'A����G�$r*c�P�|jj|jd�y)Nr6r{ris r(� decrementzControl.decrementv��������T�W�W�f�%r*c�P�|jj|jd�y)Nr5r{ris r(� incrementzControl.incrementyr9r*c�P�|jj|jd�yrr{ris r(rzControl.invoke|��������T�W�W�h�'r*c�P�|jj|jd�y)N�updater{ris r(r?zControl.updater=r*) rRrSrTrUr\r8r;rr?rVr*r(r2r2as(��
� $��B�&�&�(�(r*r2c� �eZdZdZifd�Zd�Zy)�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 Scrollbarc���tj||ddg||�t|d�|jd<t |d�|jd<t |d�|jd<y)N�
tixDirListr��hlist�vsb�hsb�r�r\�_dummyHListr��_dummyScrollbarrs r(r\zDirList.__init__��a�����4��� �{�C��L�'2�4��'A����G�$�%4�T�5�%A����E�"�%4�T�5�%A����E�"r*c�R�|jj|jd|�y�N�chdirr{�r&�dirs r(rMz
DirList.chdir���������T�W�W�g�s�+r*N�rRrSrTrUr\rMrVr*r(rArA�s��"�$&�B�,r*rAc� �eZdZdZifd�Zd�Zy)�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 Scrollbarc���tj||ddg||�t|d�|jd<t |d�|jd<t |d�|jd<y)N�
tixDirTreer�rDrErFrGrs r(r\zDirTree.__init__�rJr*c�R�|jj|jd|�yrLr{rNs r(rMz
DirTree.chdir�rPr*NrQrVr*r(rSrS�s�� !�$&�B�,r*rSc��eZdZdZifd�Zy)�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 ScrolledListBoxc��tj||ddg||�t|d�|jd<t |d�|jd<y)N�tixDirSelectBoxr��dirlist�dircbx)r�r\�
_dummyDirListr��_dummyFileComboBoxrs r(r\zDirSelectBox.__init__�sK�����4��):�Y�K��b�Q�)6�t�Y�)G����I�&�(:�4��(J����H�%r*N�rRrSrTrUr\rVr*r(rXrX�s��'�$&�Kr*rXc�&�eZdZdZifd�Zd�Zd�Zy)�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 ScrolledListBoxc���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
<y)N�tixExFileSelectBoxr��cancel�ok�hidden�typesrOr[�file�filelist)r�r\rr��_dummyCheckbutton�_dummyComboBoxr]r!rs r(r\zExFileSelectBox.__init__�s������4��)=� �{�C�QS�T�(4�T�8�(D����H�%�$0��t�$<����D�!�(9�$��(I����H�%�'5�d�G�'D����G�$�%3�D�%�%@����E�"�)6�t�Y�)G����I�&�&4�T�6�&B����F�#�*?��j�*Q����J�'r*c�P�|jj|jd�y�N�filterr{ris r(rnzExFileSelectBox.filter�r=r*c�P�|jj|jd�yrr{ris r(rzExFileSelectBox.invoke�r=r*N)rRrSrTrUr\rnrrVr*r(rara�s��&�$&� R�(�(r*rac�&�eZdZdZifd�Zd�Zd�Zy)�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 DirSelectDialogc�l�tj||ddg||�t|d�|jd<y)N�tixDirSelectDialogr��dirbox)r�r\�_dummyDirSelectBoxr�rs r(r\zDirSelectDialog.__init__�s7�����4��)=�%�;��R� 1�(:�4��(J����H�%r*c�P�|jj|jd�y�N�popupr{ris r(rxzDirSelectDialog.popup���������T�W�W�g�&r*c�P�|jj|jd�y�N�popdownr{ris r(r|zDirSelectDialog.popdown���������T�W�W�i�(r*N�rRrSrTrUr\rxr|rVr*r(rqrq�s��$�$&�K�'�)r*rqc�&�eZdZdZifd�Zd�Zd�Zy)�ExFileSelectDialogz�ExFileSelectDialog - MS Windows style file select dialog.
It provides a convenient method for the user to select files.
Subwidgets Class
---------- -----
fsbox ExFileSelectBoxc�l�tj||ddg||�t|d�|jd<y)N�tixExFileSelectDialogr��fsbox)r�r\�_dummyExFileSelectBoxr�rs r(r\zExFileSelectDialog.__init__s7�����4��)@�%�;��R� 1�'<�T�7�'K����G�$r*c�P�|jj|jd�yrwr{ris r(rxzExFileSelectDialog.popupryr*c�P�|jj|jd�yr{r{ris r(r|zExFileSelectDialog.popdownr}r*Nr~rVr*r(r�r��s��#�$&�L�
'�)r*r�c�&�eZdZdZifd�Zd�Zd�Zy)�
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 ScrolledListBoxc��tj||ddg||�t|d�|jd<t|d�|jd<t |d�|jd<t |d�|jd<y)N�tixFileSelectBoxr�r[rirn� selection)r�r\r!r�rkrs r(r\zFileSelectBox.__init__sy�����4��);�i�[�#�r�R�)>�t�Y�)O����I�&�*?��j�*Q����J�'�(6�t�X�(F����H�%�+9�$��+L����K�(r*c�P�|jj|jd�yrmr{ris r(�apply_filterzFileSelectBox.apply_filter#r=r*c�P�|jj|jd�yrr{ris r(rzFileSelectBox.invoke&r=r*N)rRrSrTrUr\r�rrVr*r(r�r�s��'�$&�M�(�(r*r�c�&�eZdZdZifd�Zd�Zd�Zy)�FileSelectDialogz�FileSelectDialog - Motif style file select dialog.
Subwidgets Class
---------- -----
btns StdButtonBox
fsbox FileSelectBoxc��tj||ddg||�t|d�|jd<t |d�|jd<y)N�tixFileSelectDialogr��btnsr�)r�r\�_dummyStdButtonBoxr��_dummyFileSelectBoxrs r(r\zFileSelectDialog.__init__3sN�����4��)>�%�;��R� 1�&8��v�&F����F�#�':�4��'I����G�$r*c�P�|jj|jd�yrwr{ris r(rxzFileSelectDialog.popup9ryr*c�P�|jj|jd�yr{r{ris r(r|zFileSelectDialog.popdown<r}r*Nr~rVr*r(r�r�*s��!�$&�J�'�)r*r�c�&�eZdZdZifd�Zd�Zd�Zy)� 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 Entryc��tj||dddg||�t|d�|jd<t |d�|jd<y)N�tixFileEntry�
dialogtyper��buttonr)r�r\rr�r rs r(r\zFileEntry.__init__KsP�����4���(�)�4�c�2� ?�(4�T�8�(D����H�%�'2�4��'A����G�$r*c�P�|jj|jd�yrr{ris r(rzFileEntry.invokeQr=r*c��yrQrVris r(�file_dialogzFileEntry.file_dialogTs��r*N)rRrSrTrUr\rr�rVr*r(r�r�?s���$&�B�(�
r*r�c��eZdZdZdifd�Zifd�Zdifd�Zd�Zd�Zd7d�Z d �Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zifd�Zifd�Zd�Zd�ZeZd�Zd�Zd�Zifd�Zifd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d8d �Z"d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'd&�Z(d'�Z)d(�Z*d)�Z+d*�Z,ifd+�Z-ifd,�Z.d-�Z/d.�Z0d/�Z1ifd0�Z2d1�Z3d2�Z4ifd3�Z5d4�Z6d8d5�Z7d6�Z8y)9�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 - NoneNc�<�tj||dddg||�y)N�tixHList�columnsr�rrs r(r\zHList.__init__`s"�����4���%�y�1�3�� <r*c�t�|jj|jd|g|j||����S�Nr
rp�r&rr9r:s r(r
z HList.addds/���t�w�w�|�|�D�G�G�U�E�K�D�M�M�#�r�4J�K�Kr*c�|�|�d}|jj|jd|g|j||����S)Nrf�addchildrp)r&r�r9r:s r(� add_childzHList.add_childgsD���>��F��t�w�w�|�|��W�W�j�&�K�37�=�=��b�3I�K� Kr*c�T�|jj|jdd|�y�N�anchor�setr{�r&rs r(�
anchor_setzHList.anchor_setm��������T�W�W�h��u�5r*c�R�|jj|jdd�y�Nr��clearr{ris r(�anchor_clearzHList.anchor_clearp��������T�W�W�h��0r*c��|s)|jj|jdd||�S|jj|jdd|d|�S)Nr�widthz-charr{)r&�colr��charss r(�column_widthzHList.column_widthssJ����7�7�<�<�����7�C��G�G��7�7�<�<�����7�C� '��0�
0r*c�R�|jj|jdd�y)Nr��allr{ris r(�
delete_allzHList.delete_allzs�������T�W�W�h��.r*c�T�|jj|jdd|�y)Nr�rr{r�s r(�delete_entryzHList.delete_entry}s�������T�W�W�h���7r*c�T�|jj|jdd|�y)Nr��
offspringsr{r�s r(�delete_offspringszHList.delete_offsprings�s�������T�W�W�h��e�<r*c�T�|jj|jdd|�y)Nr��siblingsr{r�s r(�delete_siblingszHList.delete_siblings�s�������T�W�W�h�
�E�:r*c�T�|jj|jdd|�y�N�dragsiter�r{r0s r(�dragsite_setzHList.dragsite_set���������T�W�W�j�%��7r*c�R�|jj|jdd�y�Nr�r�r{ris r(�dragsite_clearzHList.dragsite_clear���������T�W�W�j�'�2r*c�T�|jj|jdd|�y�N�dropsiter�r{r0s r(�dropsite_setzHList.dropsite_set�r�r*c�R�|jj|jdd�y�Nr�r�r{ris r(�dropsite_clearzHList.dropsite_clear�r�r*c�x�|jj|jdd|g|j||����y)N�headerr�rp�r&r�r9r:s r(�
header_createzHList.header_create�s.��������T�W�W�h��#�O��
�
�c�2�8N�Or*c��|�|j|jdd|�S|jj|jdd|g|j ||����y)Nr�r1�r3rqr$r%r7r�s r(�header_configurezHList.header_configure�sS���;��%�%�d�g�g�x��c�J�J�������T�W�W�h��S� .��m�m�C��,� .r*c�T�|jj|jdd||�S)Nr�r,r{)r&r��opts r(�header_cgetzHList.header_cget�s!���w�w�|�|�D�G�G�X�v�s�C�@�@r*c��|jj|jj|jdd|��S)Nr��exist)r$�
getbooleanr%rq�r&r�s r(�
header_existszHList.header_exists�s0���w�w�!�!�$�'�'�,�,�t�w�w��'�3�"O�P�Pr*c�T�|jj|jdd|�y)Nr�r�r{r�s r(�
header_deletezHList.header_delete�s�������T�W�W�h��#�6r*c�R�|jj|jdd|�S)Nr��sizer{r�s r(�header_sizezHList.header_size�s���w�w�|�|�D�G�G�X�v�s�;�;r*c�T�|jj|jdd|�y)N�hiderr{r�s r(�
hide_entryzHList.hide_entry�s�������T�W�W�f�g�u�5r*c�x�|jj|jdd|g|j||����y)N� indicatorr�rpr�s r(�indicator_createzHList.indicator_create�s6���������g�g�{�H�e� N�6:�m�m�C��6L� Nr*c��|�|j|jdd|�S|jj|jdd|g|j ||����y)Nr�r1r�r�s r(�indicator_configurezHList.indicator_configure�s[���;��%�%�����k�5�:�
:��������g�g�{�K�� Q�9=���s�B�9O� Qr*c�T�|jj|jdd||�S)Nr�r,r{�r&rr�s r(�indicator_cgetzHList.indicator_cget�s!���w�w�|�|�D�G�G�[�&�%��E�Er*c�R�|jj|jdd|�S)Nr��existsr{r�s r(�indicator_existszHList.indicator_exists�s���w�w�|�|�T�W�W�k�8�U�C�Cr*c�T�|jj|jdd|�y)Nr�r�r{r�s r(�indicator_deletezHList.indicator_delete�s�������T�W�W�k�8�U�;r*c�R�|jj|jdd|�S)Nr�r�r{r�s r(�indicator_sizezHList.indicator_size�s���w�w�|�|�D�G�G�[�&�%�@�@r*c�P�|jj|jdd�S�Nr�r�r{ris r(�info_anchorzHList.info_anchor�����w�w�|�|�D�G�G�V�X�6�6r*c�x�|j|jj|jdd|��xsdS�Nr��bbox)�_getintsr$r%rqr�s r(� info_bboxzHList.info_bbox�s7���}�}������T�W�W�f�f�e�<�>�F�AE� Fr*c��|jj|jdd|�}|jj|�S)Nr�r��r$r%rqr�)r&rr�s r(�
info_childrenzHList.info_children�s3���G�G�L�L����&�*�e�<���w�w� � ��#�#r*c�R�|jj|jdd|�S)Nr��datar{r�s r(� info_datazHList.info_data�����w�w�|�|�D�G�G�V�V�U�;�;r*c�P�|jj|jdd�S)Nr�r�r{ris r(�
info_dragsitezHList.info_dragsite�����w�w�|�|�D�G�G�V�Z�8�8r*c�P�|jj|jdd�S)Nr�r�r{ris r(�
info_dropsitezHList.info_dropsite�rr*c�R�|jj|jdd|�S)Nr�r�r{r�s r(�info_existszHList.info_exists�����w�w�|�|�D�G�G�V�X�u�=�=r*c�R�|jj|jdd|�S)Nr�rfr{r�s r(�info_hiddenzHList.info_hidden�rr*c�R�|jj|jdd|�S)Nr��nextr{r�s r(� info_nextzHList.info_next�r
r*c�R�|jj|jdd|�S)Nr�r�r{r�s r(�info_parentzHList.info_parent�rr*c�R�|jj|jdd|�S)Nr��prevr{r�s r(� info_prevzHList.info_prev�r
r*c��|jj|jdd�}|jj|�S�Nr�r�rr�s r(�info_selectionzHList.info_selection��1���G�G�L�L����&�+�6���w�w� � ��#�#r*c�V�|jj|jdd|||�S)N�itemr,r{)r&rr�r�s r(� item_cgetzHList.item_cget�s#���w�w�|�|�D�G�G�V�V�U�C��E�Er*c��|�|j|jdd||�S|jj|jdd||g|j ||����y)Nr%r1r��r&rr�r9r:s r(�item_configurezHList.item_configure�sW���;��%�%�d�g�g�v�{�E�3�O�O�������T�W�W�f�k�5�#� '��}�}�S�"�%� 'r*c�z�|jj|jdd||g|j||����y)Nr%r�rpr(s r(�item_createzHList.item_create�s8���������g�g�v�x��� N�6:�m�m�C��6L� Nr*c�T�|jj|jdd||�S)Nr%r�r{�r&rr�s r(�item_existszHList.item_exists�s!���w�w�|�|�D�G�G�V�X�u�c�B�Br*c�V�|jj|jdd||�y)Nr%r�r{r-s r(�item_deletezHList.item_delete�s�������T�W�W�f�h��s�;r*c�R�|jj|jd||�S)N� entrycgetr{r�s r(r2zHList.entrycget�s���w�w�|�|�D�G�G�[�%��=�=r*c��|�|j|jd|�S|jj|jd|g|j ||����y�N�entryconfigurer�r�s r(r5zHList.entryconfiguresQ���;��%�%�d�g�g�/?��G�G�������T�W�W�.�� '��}�}�S�"�%� 'r*c�P�|jj|jd|�S�N�nearestr{)r&r�s r(r8z
HList.nearests���w�w�|�|�D�G�G�Y��2�2r*c�R�|jj|jd|�y�N�seer{r�s r(r;z HList.see��������T�W�W�e�U�+r*c�v�|jj|jddg|j||����y�Nr�r�rpr8s r(�selection_clearzHList.selection_clear�,��������T�W�W�k�7�L�T�]�]�3��5K�Lr*c�R�|jj|jdd|�S�Nr��includesr{r�s r(�selection_includeszHList.selection_includes����w�w�|�|�D�G�G�[�*�e�D�Dr*c�V�|jj|jdd||�y�Nr�r�r{�r&�first�lasts r(�
selection_setzHList.selection_set��������T�W�W�k�5�%��>r*c�R�|jj|jdd|�S)N�showrr{r�s r(�
show_entryzHList.show_entry����w�w�|�|�D�G�G�V�W�e�<�<r*)rNNrQ)9rRrSrTrUr\r
r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��header_existr�r�r�r�r�r�r�r�r�rrr rrrrrrrrr"r&r)r+r.r0r2r5r8r;r?rDrKrOrVr*r(r�r�Xs]���#�r�<� �L� $��K�6�1�0�/�8�=�;�8�3�8�3�&(�P�)+�.�A�Q�
!�L�7�<�6�+-�N�.0�Q�F�D�<�A�7�F�$�<�9�9�>�>�<�>�<�$�F�.0�'�+-�N�C�<�>�)+�'�3�,�#%�M�E�?�=r*r�c��eZdZdZdifd�Zy)� InputOnlyz?InputOnly - Invisible widget. Unix only.
Subwidgets - NoneNc�8�tj||dd||�y)N�tixInputOnlyrrs r(r\zInputOnly.__init__s�����4����s�B�Gr*r_rVr*r(rSrSs���#�r�Hr*rSc��eZdZdZdifd�Zy)�
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 EntryNc��tj||dddg||�t|d�|jd<t |d�|jd<y)N�
tixLabelEntry� labelsider�r�r)r�r\r�r�r rs r(r\zLabelEntry.__init__,�P�����4���'� �2�C�� =�'2�4��'A����G�$�'2�4��'A����G�$r*r_rVr*r(rWrW"s���#�r�Br*rWc��eZdZdZdifd�Zy)�
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 FrameNc��tj||dddg||�t|d�|jd<t |d�|jd<y)N�
tixLabelFramerZr�r��frame)r�r\r�r��_dummyFramers r(r\zLabelFrame.__init__=r[r*r_rVr*r(r]r]2s���#�r�Br*r]c�6�eZdZdZifd�Zifd�Zd�Zd�Zd�Zy)�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.c���tj||ddg||�t|dd��|jd<t |d�|jd<t|d�|jd<y)N�tixListNoteBookr��panerr�rD�shlist)r�r\�_dummyPanedWindowr�rH�_dummyScrolledHListrs r(r\zListNoteBook.__init__Lsh�����4��):�Y�K��b�Q�&7��f�KL�'N����F�#�'2�4��'A����G�$�(;�D�(�(K����H�%r*c���|jj|jd|g|j||����t ||�|j
|<|j
|Sr��r$r%rqr7r�r��r&rCr9r:s r(r
zListNoteBook.addT�T��������T�W�W�e�T�C�D�M�M�#�r�,B�C�$0��t�$<����D�!��"�"�4�(�(r*c�$�|j|�SrQ�r�rBs r(�pagezListNoteBook.pageY����~�~�d�#�#r*c���|jj|jj|jd��}g}|D]"}|j |j|���$|S�N�pages�r$r�r%rqr�r��r&r��retr�s r(rtzListNoteBook.pages\�R�����!�!�$�'�'�,�,�t�w�w��"@�A�����A��J�J�t�~�~�a�(�)���
r*c�R�|jj|jd|�y�N�raiser{rBs r(�
raise_pagezListNoteBook.raise_paged��������T�W�W�g�t�,r*N) rRrSrTrUr\r
rprtr|rVr*r(rcrcDs,��E�$&�L��)�
$��-r*rcc��eZdZdZdifd�Zy)�MeterzuThe Meter widget can be used to show the progress of a background
job which may take a long time to execute.
Nc�:�tj||ddg||�y)N�tixMeterr�rrs r(r\zMeter.__init__ls�����4���%�;��R� 1r*r_rVr*r(rrgs���#��1r*rc�D�eZdZdZdifd�Zifd�Zd�Zd�Zd�Zd�Z d �Z
y)
�NoteBookz�NoteBook - Multi-page container widget (tabbed notebook metaphor).
Subwidgets Class
---------- -----
nbframe NoteBookFrame
<pages> page widgets added dynamically with the add methodNc�p�tj||ddg||�t|dd��|jd<y)N�tixNoteBookr��nbframerr�)r�r\r�r�rs r(r\zNoteBook.__init__xs9�����4��}�y�k�3��K�)5�d�I�IJ�*L����I�&r*c���|jj|jd|g|j||����t ||�|j
|<|j
|Sr�rkrls r(r
zNoteBook.add}rmr*c��|jj|jd|�|j|j �|j|=yr��r$r%rqr�rhrBs r(r�zNoteBook.delete��?�������T�W�W�h��-����D�!�)�)�+�����%r*c�$�|j|�SrQrorBs r(rpz
NoteBook.page�rqr*c���|jj|jj|jd��}g}|D]"}|j |j|���$|Srsrurvs r(rtzNoteBook.pages�rxr*c�R�|jj|jd|�yrzr{rBs r(r|zNoteBook.raise_page�r}r*c�N�|jj|jd�S)N�raisedr{ris r(r�zNoteBook.raised�s���w�w�|�|�D�G�G�X�.�.r*)rRrSrTrUr\r
r�rprtr|r�rVr*r(r�r�ps8��H�#�r�L�
�)�
&�
$��-�/r*r�c��eZdZy)�
NoteBookFrameN)rRrSrTrVr*r(r�r��s��r*r�c�@�eZdZdZifd�Zifd�Zifd�Zd�Zd�Zd�Z y) �
OptionMenuz�OptionMenu - creates a menu button of options.
Subwidget Class
--------- -----
menubutton Menubutton
menu Menuc��tj||ddg||�t|d�|jd<t |d�|jd<y)N�
tixOptionMenur��
menubutton�menu�r�r\�_dummyMenubuttonr��
_dummyMenurs r(r\zOptionMenu.__init__�sJ�����4���9�+�s�B�O�,<�T�<�,P����L�)�&0��v�&>����F�#r*c�x�|jj|jdd|g|j||����y)Nr
�commandrprls r(�add_commandzOptionMenu.add_command�s.��������T�W�W�e�Y��N�t�}�}�S�"�7M�Nr*c�x�|jj|jdd|g|j||����y)Nr
� separatorrprls r(�
add_separatorzOptionMenu.add_separator�s.��������T�W�W�e�[�$�P����s�B�9O�Pr*c�R�|jj|jd|�yr�r{rBs r(r�zOptionMenu.delete���������T�W�W�h��-r*c�R�|jj|jd|�y)N�disabler{rBs r(r�zOptionMenu.disable�s�������T�W�W�i��.r*c�R�|jj|jd|�y)N�enabler{rBs r(r�zOptionMenu.enable�r�r*N)
rRrSrTrUr\r�r�r�r�r�rVr*r(r�r��s6���$&�?�
%'�O�')�Q�.�/�.r*r�c�F�eZdZdZifd�Zifd�Zd�Zd�Zd�Zifd�Z d�Z
y )
�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.c�<�tj||dddg||�y)N�tixPanedWindowrr�rrs r(r\zPanedWindow.__init__�s"�����4��)9�M�9�;U�WZ�\^�_r*c���|jj|jd|g|j||����t ||d��|j
|<|j
|S)Nr
r)r�rkrls r(r
zPanedWindow.add�sZ��������T�W�W�e�T�C�D�M�M�#�r�,B�C�$0��t�DE�%G����D�!��"�"�4�(�(r*c��|jj|jd|�|j|j �|j|=yr�r�rBs r(r�zPanedWindow.delete�r�r*c�R�|jj|jd|�y)Nr}r{rBs r(r}zPanedWindow.forget�r�r*c�R�|jj|jd||�S)N�panecgetr{r�s r(r�zPanedWindow.panecget�s���w�w�|�|�D�G�G�Z���<�<r*c��|�|j|jd|�S|jj|jd|g|j ||����y)N�
paneconfigurer�r�s r(r�zPanedWindow.paneconfigure�sJ���;��%�%�d�g�g���F�F�������T�W�W�o�u�N�t�}�}�S�"�7M�Nr*c���|jj|jj|jd��}|D�cgc]}|j |���c}Scc}w)N�panes)r$r�r%rqr�)r&r�r�s r(r�zPanedWindow.panes�sJ�����!�!�$�'�'�,�,�t�w�w��"@�A��+0�1�5�a����q�!�5�1�1��1s�AN)rRrSrTrUr\r
r�r}r�r�r�rVr*r(r�r��s<��H�$&�`��)�&�
.�=�(*�O�
2r*r�c�,�eZdZdZifd�Zd�Zd�Zd�Zy)� 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 Menuc��tj||ddg||�t|d�|jd<t |d�|jd<y)N�tixPopupMenur�r�r�r�rs r(r\zPopupMenu.__init__�sJ�����4���)��c�2�N�,<�T�<�,P����L�)�&0��v�&>����F�#r*c�f�|jj|jd|j�y)Nr�r{r�s r(r�zPopupMenu.bind_widget���������T�W�W�f�f�i�i�0r*c�f�|jj|jd|j�yr�r{r�s r(rzPopupMenu.unbind_widget�rr*c�j�|jj|jd|j||�y)N�postr{)r&r�r�r�s r(�post_widgetzPopupMenu.post_widget�s"�������T�W�W�f�f�i�i��A�6r*N)rRrSrTrUr\r�rr�rVr*r(r�r��s ���$&�?�
1�3�7r*r�c�2�eZdZdZifd�Zd�Zd�Zd�Zd�Zy)�ResizeHandlez;Internal widget to draw resize handles on Scrolled widgets.c�@�gd�}tj||d|||�y)N) r�r��cursorfg�cursorbg�
handlesize� hintcolor� hintwidthr�r��tixResizeHandler)r&r�r9r:�flagss r(r\zResizeHandle.__init__�s'���� ���4��):� �#�r� +r*c�f�|jj|jd|j�y)N�attachwidgetr{r�s r(�
attach_widgetzResizeHandle.attach_widget��������T�W�W�n�f�i�i�8r*c�f�|jj|jd|j�y)N�detachwidgetr{r�s r(�
detach_widgetzResizeHandle.detach_widget
r�r*c�f�|jj|jd|j�y)Nr�r{r�s r(r�zResizeHandle.hide
r�r*c�f�|jj|jd|j�y)NrNr{r�s r(rNzResizeHandle.showr�r*N) rRrSrTrUr\r�r�r�rNrVr*r(r�r��s!��E�#%�+�9�9�1�1r*r�c��eZdZdZifd�Zy)�
ScrolledHListz0ScrolledHList - HList with automatic scrollbars.c���tj||ddg||�t|d�|jd<t |d�|jd<t |d�|jd<y)N�tixScrolledHListr�rDrErFrGrs r(r\zScrolledHList.__init__�e�����4��);�i�[��� $�'2�4��'A����G�$�%4�T�5�%A����E�"�%4�T�5�%A����E�"r*Nr_rVr*r(r�r����:�$&�Br*r�c��eZdZdZifd�Zy)�ScrolledListBoxz4ScrolledListBox - Listbox with automatic scrollbars.c���tj||ddg||�t|d�|jd<t |d�|jd<t |d�|jd<y)N�tixScrolledListBoxr��listboxrErF)r�r\�
_dummyListboxr�rIrs r(r\zScrolledListBox.__init__"sc�����4��)=� �{�C�QS�T�)6�t�Y�)G����I�&�%4�T�5�%A����E�"�%4�T�5�%A����E�"r*Nr_rVr*r(r�r�s��>�$&�Br*r�c��eZdZdZifd�Zy)�ScrolledTextz.ScrolledText - Text with automatic scrollbars.c���tj||ddg||�t|d�|jd<t |d�|jd<t |d�|jd<y)N�tixScrolledTextr�rrErF)r�r\�
_dummyTextr�rIrs r(r\zScrolledText.__init__,sb�����4��):�Y�K��b�Q�&0��v�&>����F�#�%4�T�5�%A����E�"�%4�T�5�%A����E�"r*Nr_rVr*r(r�r�(s��8�$&�Br*r�c��eZdZdZifd�Zy)�
ScrolledTListz0ScrolledTList - TList with automatic scrollbars.c���tj||ddg||�t|d�|jd<t |d�|jd<t |d�|jd<y)N�tixScrolledTListr��tlistrErF)r�r\�_dummyTListr�rIrs r(r\zScrolledTList.__init__6r�r*Nr_rVr*r(r�r�2r�r*r�c��eZdZdZifd�Zy)�ScrolledWindowz2ScrolledWindow - Window with automatic scrollbars.c���tj||ddg||�t|d�|jd<t |d�|jd<t |d�|jd<y)N�tixScrolledWindowr�rrErF)r�r\rar�rIrs r(r\zScrolledWindow.__init__Asc�����4��)<�y�k�3�PR�S�(3�D�(�(C����H�%�%4�T�5�%A����E�"�%4�T�5�%A����E�"r*Nr_rVr*r(r�r�=s��<�$&�Br*r�c�*�eZdZdZifd�Zifd�Zd�Zy)�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�n�tj||dgd�||�t|d�|jd<y)N� tixSelect)� allowzero�radiorrZr�r�r�rs r(r\zSelect.__init__Ns9�����4���'��� $�(3�4��'A����G�$r*c���|jj|jd|g|j||����t ||�|j
|<|j
|Sr�rrls r(r
z
Select.addUrmr*c�R�|jj|jd|�yrr{rBs r(rz
Select.invokeZr�r*NrrVr*r(r�r�Gs"��F�$&�B��)�
.r*r�c��eZdZdZdifd�Zy)�Shellz'Toplevel window.
Subwidgets - NoneNc�<�tj||dddg||�y)N�tixShellr��titlerrs r(r\zShell.__init__bs �����4���i��5I�3�PR�Sr*r_rVr*r(r�r�]s���#�r�Tr*r�c�.�eZdZdZdifd�Zd�Zd�Zd�Zy)�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 - NoneNc�<�tj||dgd�||�y)N�tixDialogShell)r�r��mapped� minheight�minwidthr�� transientrrs r(r\zDialogShell.__init__ns!�����4��+�3�47�� =r*c�P�|jj|jd�yr{r{ris r(r|zDialogShell.popdownur}r*c�P�|jj|jd�yrwr{ris r(rxzDialogShell.popupxryr*c�P�|jj|jd�y)N�centerr{ris r(rzDialogShell.center{r=r*)rRrSrTrUr\r|rxrrVr*r(r�r�es"���#�r�=�)�'�(r*r�c�"�eZdZdZdifd�Zd�Zy)�StdButtonBoxz@StdButtonBox - Standard Button Box (OK, Apply, Cancel and Help) Nc��tj||dddg||�t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<y)N�tixStdButtonBoxrr�re�applyrd�help)r�r\rr�rs r(r\zStdButtonBox.__init__�s������4��):�)�9�5�s�B� @�$0��t�$<����D�!�'3�D�'�'B����G�$�(4�T�8�(D����H�%�&2�4��&@����F�#r*c�p�||jvr(|jj|jd|�yyrrrBs r(rzStdButtonBox.invoke�rr*)rRrSrTrUr\rrVr*r(rr~s��J�"��A�2r*rc��eZdZdZdifd�Zd�Zd�Zd�Zd�Zdd�Z d �Z
d
�Zd�Zd�Z
ifd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zifd�Zd�Zdd�Zy)�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 - NoneNc�:�tj||ddg||�y)N�tixTListr�rrs r(r\zTList.__init__�s�����4���i�[�#�r�Jr*c�T�|jj|jdd|�y)N�activer�r{r0s r(�
active_setzTList.active_set�r�r*c�R�|jj|jdd�y)Nrr�r{ris r(�active_clearzTList.active_clear�r�r*c�T�|jj|jdd|�yr�r{r0s r(r�zTList.anchor_set�r�r*c�R�|jj|jdd�yr�r{ris r(r�zTList.anchor_clear�r�r*c�T�|jj|jd||�yr�r{�r&�from_�tos r(r�zTList.delete�s�������T�W�W�h��r�2r*c�T�|jj|jdd|�yr�r{r0s r(r�zTList.dragsite_set�r�r*c�R�|jj|jdd�yr�r{ris r(r�zTList.dragsite_clear�r�r*c�T�|jj|jdd|�yr�r{r0s r(r�zTList.dropsite_set�r�r*c�R�|jj|jdd�yr�r{ris r(r�zTList.dropsite_clear�r�r*c�v�|jj|jd|g|j||����yr+rp)r&r-r9r:s r(r,zTList.insert�s,��������T�W�W�h��G��
�
�c�2�0F�Gr*c�P�|jj|jdd�S)Nr�rr{ris r(�info_activezTList.info_active�rr*c�P�|jj|jdd�Sr�r{ris r(rzTList.info_anchor�rr*c�R�|jj|jdd|�S)Nr��downr{r0s r(� info_downzTList.info_down�r
r*c�R�|jj|jdd|�S)Nr��leftr{r0s r(� info_leftzTList.info_left�r
r*c�R�|jj|jdd|�S)Nr��rightr{r0s r(�
info_rightzTList.info_right�rPr*c��|jj|jdd�}|jj|�Sr!rr�s r(r"zTList.info_selection�r#r*c�P�|jj|jdd�S)Nr�r�r{ris r(� info_sizezTList.info_size�s���w�w�|�|�D�G�G�V�V�4�4r*c�R�|jj|jdd|�S)Nr��upr{r0s r(�info_upz
TList.info_up�s���w�w�|�|�D�G�G�V�T�5�9�9r*c�R�|jj|jd||�Sr7r{�r&r�r�s r(r8z
TList.nearest�s���w�w�|�|�D�G�G�Y��1�5�5r*c�R�|jj|jd|�yr:r{r0s r(r;z TList.see�r<r*c�v�|jj|jddg|j||����yr>rpr8s r(r?zTList.selection_clear�r@r*c�R�|jj|jdd|�SrBr{r0s r(rDzTList.selection_includes�rEr*c�V�|jj|jdd||�yrGr{rHs r(rKzTList.selection_set�rLr*rQ)rRrSrTrUr\rrr�r�r�r�r�r�r�r,r!rr%r(r+r"r.r1r8r;r?rDrKrVr*r(r
r
�s����#�r�K�6�1�6�1�3�8�3�8�3�!#�H�7�7�<�<�=�$�5�:�6�,�#%�M�E�?r*r
c�<�eZdZdZdifd�Zd�Zd�Zd�Zd�Zd d�Z y)
�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.Nc���tj||ddg||�t|d�|jd<t |d�|jd<t |d�|jd<y)N�tixTreer�rDrErFrGrs r(r\z
Tree.__init__�sd�����4���%�;��R� 1�'2�4��'A����G�$�%4�T�5�%A����E�"�%4�T�5�%A����E�"r*c�P�|jj|jd�y�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.�autosetmodeNr{ris r(r>zTree.autosetmode����
�����T�W�W�m�,r*c�R�|jj|jd|�y�z8Close the entry given by entryPath if its mode is close.�closeNr{�r&� entrypaths r(rBz
Tree.close���������T�W�W�g�y�1r*c�P�|jj|jd|�S�z9Returns the current mode of the entry given by entryPath.�getmoder{rCs r(rHzTree.getmode�����w�w�|�|�D�G�G�Y� �:�:r*c�R�|jj|jd|�y�z6Open the entry given by entryPath if its mode is open.�openNr{rCs r(rLz Tree.open���������T�W�W�f�i�0r*c�T�|jj|jd||�y)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.�setmodeNr{�r&rD�modes r(rOzTree.setmodes��
�����T�W�W�i��D�9r*)�none)
rRrSrTrUr\r>rBrHrLrOrVr*r(r9r9�s.��E�
#��B�-�2�;�1�
:r*r9c�J�eZdZdZdifd�Zd�Zd�Zd�Zd�Zdd�Z d �Z
dd
�Zy)� 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.
Nc���tj||dddg||�t|d�|jd<t |d�|jd<t |d�|jd<y)N�tixCheckListr�r�rDrErFrGrs r(r\zCheckList.__init__sg�����4���%�w�/��b� :�'2�4��'A����G�$�%4�T�5�%A����E�"�%4�T�5�%A����E�"r*c�P�|jj|jd�yr=r{ris r(r>zCheckList.autosetmoder?r*c�R�|jj|jd|�yrAr{rCs r(rBzCheckList.close#rEr*c�P�|jj|jd|�SrGr{rCs r(rHzCheckList.getmode'rIr*c�R�|jj|jd|�yrKr{rCs r(rLzCheckList.open+rMr*c��|jj|jj|jd|��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)r$r�r%rq)r&rQs r(r\zCheckList.getselection/s.���w�w� � ������d�g�g�~�t�!L�M�Mr*c�P�|jj|jd|�S)z(Returns the current status of entryPath.� getstatusr{rCs r(r^zCheckList.getstatus5s���w�w�|�|�D�G�G�[�)�<�<r*c�T�|jj|jd||�y)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.� setstatusNr{rPs r(r`zCheckList.setstatus9s��
�����T�W�W�k�9�d�;r*)�on)rRrSrTrUr\r>rBrHrLr\r^r`rVr*r(rTrTs8���#��B�-�2�;�1�N�=�<r*rTc��eZdZdd�Zy)rc�4�tj||||�yrQ�r�r\�r&r�rCr�s r(r\z_dummyButton.__init__E������d�F�D�2D�Er*N�r��rRrSrTr\rVr*r(rrD���Fr*rc��eZdZdd�Zy)rjc�4�tj||||�yrQrdres r(r\z_dummyCheckbutton.__init__Irfr*NrgrhrVr*r(rjrjHrir*rjc��eZdZdd�Zy)r c�4�tj||||�yrQrdres r(r\z_dummyEntry.__init__Mrfr*NrgrhrVr*r(r r Lrir*r c��eZdZdd�Zy)rac�4�tj||||�yrQrdres r(r\z_dummyFrame.__init__Qrfr*NrgrhrVr*r(raraPrir*rac��eZdZdd�Zy)r�c�4�tj||||�yrQrdres r(r\z_dummyLabel.__init__Urfr*NrgrhrVr*r(r�r�Trir*r�c��eZdZdd�Zy)r�c�4�tj||||�yrQrdres r(r\z_dummyListbox.__init__Yrfr*NrgrhrVr*r(r�r�Xrir*r�c��eZdZdd�Zy)r�c�4�tj||||�yrQrdres r(r\z_dummyMenu.__init__]rfr*NrgrhrVr*r(r�r�\rir*r�c��eZdZdd�Zy)r�c�4�tj||||�yrQrdres r(r\z_dummyMenubutton.__init__arfr*NrgrhrVr*r(r�r�`rir*r�c��eZdZdd�Zy)rIc�4�tj||||�yrQrdres r(r\z_dummyScrollbar.__init__erfr*NrgrhrVr*r(rIrIdrir*rIc��eZdZdd�Zy)r�c�4�tj||||�yrQrdres r(r\z_dummyText.__init__irfr*NrgrhrVr*r(r�r�hrir*r�c��eZdZdd�Zy)r!c���tj||||�t|d�|jd<t |d�|jd<t |d�|jd<y)Nr�rErF)r�r\r�r�rIres r(r\z_dummyScrolledListBox.__init__ms\�����d�F�D�2D�E�)6�t�Y�)G����I�&�%4�T�5�%A����E�"�%4�T�5�%A����E�"r*NrgrhrVr*r(r!r!l���Br*r!c��eZdZdd�Zy)rHc�4�tj||||�yrQrdres r(r\z_dummyHList.__init__trfr*NrgrhrVr*r(rHrHsrir*rHc��eZdZdd�Zy)ric���tj||||�t|d�|jd<t |d�|jd<t |d�|jd<y�NrDrErF�r�r\rHr�rIres r(r\z_dummyScrolledHList.__init__x�\�����d�F�D�2D�E�'2�4��'A����G�$�%4�T�5�%A����E�"�%4�T�5�%A����E�"r*NrgrhrVr*r(ririwr~r*ric��eZdZdd�Zy)r�c�4�tj||||�yrQrdres r(r\z_dummyTList.__init__rfr*NrgrhrVr*r(r�r�~rir*r�c��eZdZdd�Zy)rkc��tj|||d|g�t|d�|jd<t |d�|jd<t|d�|jd<t
|d�|jd< t|d�|jd<t|d�|jd<y#t$rYywxYw)Nrr�rrrrr)r�r\r�r�r rr!r"res r(r\z_dummyComboBox.__init__�s������d�F�D�7�;M�2N�O�'2�4��'A����G�$�'2�4��'A����G�$�'3�D�'�'B����G�$�*?��@J�+L����J�'� �*6�t�V�*D�D����'�+7��g�+F�D����(��� �� �s�2B3�3 B?�>B?NrgrhrVr*r(rkrk�s��r*rkc��eZdZdd�Zy)r]c���tj||||�t|d�|jd<t |d�|jd<t |d�|jd<yr�r�res r(r\z_dummyDirList.__init__�r�r*NrgrhrVr*r(r]r]�r~r*r]c��eZdZdd�Zy)ruc��tj||||�t|d�|jd<t |d�|jd<y)Nr[r\)r�r\r]r�r^res r(r\z_dummyDirSelectBox.__init__�sE�����d�F�D�2D�E�)6�t�Y�)G����I�&�(:�4��(J����H�%r*NrgrhrVr*r(ruru�s��Kr*ruc��eZdZdd�Zy)r�c���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<y) NrdrerfrgrOr[rhri)r�r\rr�rjrkr!res r(r\z_dummyExFileSelectBox.__init__�s������d�F�D�2D�E�(4�T�8�(D����H�%�$0��t�$<����D�!�(9�$��(I����H�%�'5�d�G�'D����G�$�%3�D�%�%@����E�"�)>�t�Y�)O����I�&�&4�T�6�&B����F�#�*?��j�*Q����J�'r*NrgrhrVr*r(r�r��s�� Rr*r�c��eZdZdd�Zy)r�c��tj||||�t|d�|jd<t|d�|jd<t |d�|jd<t |d�|jd<y)Nr[rirnr�)r�r\r!r�rkres r(r\z_dummyFileSelectBox.__init__�ss�����d�F�D�2D�E�)>�t�Y�)O����I�&�*?��j�*Q����J�'�(6�t�X�(F����H�%�+9�$��+L����K�(r*NrgrhrVr*r(r�r��s��Mr*r�c��eZdZdd�Zy)r^c�f�tj||||�t|d�|jd<y)Nr\)r�r\rkr�res r(r\z_dummyFileComboBox.__init__�s.�����d�F�D�2D�E�(6�t�X�(F����H�%r*NrgrhrVr*r(r^r^�s��Gr*r^c��eZdZdd�Zy)r�c��tj||||�t|d�|jd<t|d�|jd<t|d�|jd<t|d�|jd<y)Nrer rdr
)r�r\rr�res r(r\z_dummyStdButtonBox.__init__�ss�����d�F�D�2D�E�$0��t�$<����D�!�'3�D�'�'B����G�$�(4�T�8�(D����H�%�&2�4��&@����F�#r*NrgrhrVr*r(r�r��s��Ar*r�c��eZdZdd�Zy)�_dummyNoteBookFramec�4�tj||||�yrQrdres r(r\z_dummyNoteBookFrame.__init__�rfr*N)rrhrVr*r(r�r��rir*r�c��eZdZdd�Zy)rhc�4�tj||||�yrQrdres r(r\z_dummyPanedWindow.__init__�rfr*NrgrhrVr*r(rhrh�rir*rhc�N�|jjd|j�S)zzReturns the qualified path name for the widget. Normally used to set
default options for subwidgets. See tixwidgets.py�
tixOptionNamer{)r�s r(�
OptionNamer��s���9�9�>�>�/�6�9�9�5�5r*c�h�d}|j�D]}|dz|zdz|zdz||zdz}�|S)Nrfz{{z} {z - z}} )�keys)�dict�s�types r(�FileTypeListr��sF��
�A�� � ���
��H�t�O�e�#�d�*�U�2�T�$�Z�?�%�G����Hr*c��eZdZdZy)�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)rRrSrTrUrVr*r(r�r��s��� r*r�c��eZdZdZdifd�Zd�Zd�Zd�Zdd�Zdd�Z d �Z
d
�Zd�Zdd�Z
d
�Zd�Zd�Zd�Zd�Zdd�Zd�Zd�Zd�Zy)�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 - NoneNc�J�g}||_tj||d|||�y)N�tixGrid�r9r�r\r�s r(r\z
Grid.__init__�s&����������4���F�C��Dr*c�>�|jj|dd�y)zRemoves the selection anchor.r�r�Nr#ris r(r�zGrid.anchor_clears�������T�8�W�-r*c�Z�|j|jj|dd��S)z3Get the (x,y) coordinate of the current anchor cellr�rI�rr$r%ris r(�
anchor_getzGrid.anchor_gets"���}�}�T�W�W�\�\�$��%�@�A�Ar*c�B�|jj|dd||�y)z/Set the selection anchor to the cell at (x, y).r�r�Nr#r3s r(r�zGrid.anchor_sets�������T�8�U�A�q�1r*c��|�|jj|dd|�y|jj|dd||�y)zdDelete rows between from_ and to inclusive.
If to is not provided, delete only row at from_Nr�rr#rs r(�
delete_rowzGrid.delete_rows7���:��G�G�L�L��x���6��G�G�L�L��x���r�:r*c��|�|jj|dd|�y|jj|dd||�y)zjDelete columns between from_ and to inclusive.
If to is not provided, delete only column at from_Nr�rr#rs r(�
delete_columnzGrid.delete_columns7���:��G�G�L�L��x��5�9��G�G�L�L��x��5�"�=r*c�>�|jj|dd�y)zUIf any cell is being edited, de-highlight the cell and applies
the changes.�editr Nr#ris r(�
edit_applyzGrid.edit_apply#s��
�����T�6�7�+r*c�B�|jj|dd||�y)zmHighlights the cell at (x, y) for editing, if the -editnotify
command returns True for this cell.r�r�Nr#r3s r(�edit_setz
Grid.edit_set(s��
�����T�6�5�!�Q�/r*c�^�|r
|ddk7rd|z}|jj|d|||�S)z&Get the option value for cell at (x,y)rr2r2r#)r&r�r�r.s r(r2zGrid.entrycget-s4���f�Q�i�3�&��6�\�F��w�w�|�|�D�+�q�!�V�<�<r*c�.�|jd||f||�Sr4)�
_configure)r&r�r�r9r:s r(r5zGrid.entryconfigure3s����� 0�!�Q�7��b�A�Ar*c �^�|j|jj|dd||��S)z+Return True if display item exists at (x,y)r�r�)�_getbooleanr$r%r3s r(rzGrid.info_exists9s(����������T�6�8�Q�� J�K�Kr*c�@�|jj|dd||�Srr#r3s r(rzGrid.info_bbox=s���w�w�|�|�D�&�&�!�Q�7�7r*c�D�|jj|dd|||�y)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.�moverNr#�r&rr�offsets r(�move_columnzGrid.move_columnAs��
�����T�6�8�U�B��?r*c�D�|jj|dd|||�y)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�rNr#r�s r(�move_rowz
Grid.move_rowGs��
�����T�6�5�%��V�<r*c�\�|j|jj|d||��S)z8Return coordinate of cell nearest pixel coordinate (x,y)r8r�r3s r(r8zGrid.nearestMs$���}�}�T�W�W�\�\�$� �1�a�@�A�Ar*c��|j|j|�}|�d|f|z}|jj|d||g|���y)Nz -itemtyper�)r7r9r$r%)r&r�r�r�r:�argss r(r�zGrid.setWsH���m�m�D�H�H�b�)������)�D�0�D�������T�5�!�Q�.��.r*c ��|jj|jj|jdd|g|j i|�����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 following:
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)r$r�r%rqr7�r&r-r:s r(�size_columnzGrid.size_column]sK��.�w�w� � �������d�g�g�v�x��"5�"�m�m�B��3�"5�6� 6r*c ��|jj|jj|dd|g|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 following:
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)r$r�r%r7r�s r(�size_rowz
Grid.size_rowwsL��,�w�w� � ��������&�%��"H�15���r�2�1F�"H�I� Ir*c�T�|jj|jd||�y)z7Clears the cell at (x, y) by removing its display item.�unsetNr{r3s r(r�z
Grid.unset�s�������T�W�W�g�q�!�,r*rQ)rRrSrTrUr\r�r�r�r�r�r�r�r2r5rrr�r�r8r�r�r�r�rVr*r(r�r��st���"#��E�.�B�2�;�>�,�
0�
=�B�L�8�@�=�B�/�6�4I�2-r*r�c��eZdZdZdifd�Zy)�ScrolledGridzScrolled Grid widgetsNc�J�g}||_tj||d|||�y)N�tixScrolledGridr�r�s r(r\zScrolledGrid.__init__�s'����������4��):�F�C��Lr*r_rVr*r(r�r��s���#��Mr*r�)wr]�warningsr[r�warn�DeprecationWarning�WINDOW�TEXT�STATUS� IMMEDIATE�IMAGE� IMAGETEXT�BALLOON�AUTO� ACROSSTOP�ASCII�CELL�COLUMN�
DECREASING�
INCREASING�INTEGER�MAIN�MAX�REAL�ROW�S_REGION�X_REGION�Y_REGION�
TCL_DONT_WAIT�TCL_WINDOW_EVENTS�TCL_FILE_EVENTS�TCL_TIMER_EVENTS�TCL_IDLE_EVENTS�TCL_ALL_EVENTSrrXrmr�� __bases__r�r�r�r�rrr2rArSrXrarqr�r�r�r��XView�YViewr�rSrWr]rcrr�r�r�r�r�r�r�r�r�r�r�r�r�r�rr
r9rT�Buttonr�Checkbuttonrj�Entryr �Framera�Labelr��Listboxr��Menur��
Menubuttonr�� ScrollbarrI�Textr�r!rHrir�rkr]rur�r�r^r�r�rhr�r�r�r�r�rVr*r(�<module>rs���4
�����
��
�
�-��� �
��
�� ��� ���� �
��
��� � ��
�� ��
�
�
�
�
��
����
�����������
�����������~N�~N�@!����Z�!�.)7�)7�Z#�>�>�3�3�t�g�=�����G����G�X3-�9�3-�p(?�(?�^3�i�3�62� �2�&*-�y�*-�X(�i�(�B,�i�,�*,�i�,�,K�9�K�&(�i�(�D)�i�)�0)��)�((�I�(�8)�y�)�*
� �
�2@=�I�u�e�@=�DH� �H�B��B� B��B�$!-�9�!-�F1�I�1�&/�y�&/�P �I� �.��.�8'2�)�'2�R7� �7�41�9�1�0 B�I� B�B�i�B�B�9�B� B�I� B�B�Y�B�.�Y�.�,T�I�T�(�)�(�2
2�9�
2�Q?�I�u�e�Q?�f*:�9�*:�\.<� �.<�lF�6�<�F�F��\�F�F�%��F�F�%��F�F�%��F�F�G�\�F�F��|�F�F�z�<�F�F�i��F�F��|�F�B�O�\�B�F�%��F�B�-��B�F�%��F��X�|��"B�G�\�B�K��|�K�
R�O�\�
R�M�-��M�G��<�G�
A��|�A�F�-��F�F��\�F�6�
� �y� �f-�9�e�U�f-�RM�4�Mr*
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists