ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python3.8/tkinter/__pycache__/tix.cpython-38.opt-1.pyc
U

e5d-,@sLddlZddlZddlTddlmZddlZdZdZdZdZdZd	Z	d
Z
dZdZd
Z
dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZGdd 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-d.d.e%Z)Gd/d0d0e%Z*Gd1d2d2e%Z+Gd3d4d4e%Z,Gd5d6d6e%Z-Gd7d8d8e%Z.Gd9d:d:e%Z/Gd;d<d<e%Z0Gd=d>d>e%Z1Gd?d@d@e%Z2GdAdBdBe%Z3GdCdDdDe%Z4GdEdFdFe%e5e6Z7GdGdHdHe%Z8GdIdJdJe%Z9GdKdLdLe%Z:GdMdNdNe%Z;GdOdPdPe%Z<GdQdRdRe%Z=GdSdTdTe%Z>GdUdVdVe%Z?GdWdXdXe%Z@GdYdZdZe%ZAGd[d\d\e%ZBGd]d^d^e%ZCGd_d`d`e%ZDGdadbdbe%ZEGdcdddde%ZFGdedfdfe%ZGGdgdhdhe%ZHGdidjdje%ZIGdkdldle%ZJGdmdndne%ZKGdodpdpe%e5e6ZLGdqdrdre%ZMGdsdtdte%ZNGdudvdveOe&ZPGdwdxdxeQe&ZRGdydzdzeSe&ZTGd{d|d|eUe&ZVGd}d~d~eWe&ZXGdddeYe&ZZGddde[e&Z\Gddde]e&Z^Gddde_e&Z`Gdddeae&ZbGdddeDe&ZcGddde7e&ZdGdddeCe&ZeGdddeLe&ZfGddde*e&ZgGddde,e&ZhGddde.e&ZiGddde/e&ZjGddde2e&ZkGddde*e&ZlGdddeKe&ZmGddde>e&ZnGddde@e&ZoddZpddZqGddde%ZrGddde%e5e6ZsGdddesZtdS)N)*)	_cnfmergewindowtextZstatusZ	immediateimageZ	imagetextZballoonautoZ	acrosstopasciiZcellcolumnZ
decreasingZ
increasingZintegermainmaxrealrowzs-regionzx-regionzy-region c@sVeZdZdZddZddZdddZdd	d
ZddZd
dZ	ddZ
dddZdS)
tixCommandaThe 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|jdd|S)aTix 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.
        tixZaddbitmapdirtkcall)selfZ	directoryr#/usr/lib64/python3.8/tkinter/tix.pytix_addbitmapdirRs
ztixCommand.tix_addbitmapdircCs|jdd|S)zReturns  the  current  value  of the configuration
        option given by option. Option may be  any  of  the
        options described in the CONFIGURATION OPTIONS section.
        rcgetrroptionrrrtix_cget^sztixCommand.tix_cgetNcKsd|rt||f}n|rt|}|dkr2|ddSt|trN|ddd|S|jd||S)aQuery 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-)rr )r
_getconfigure
isinstancestrZ_getconfigure1rr_optionsrcnfkwrrr
tix_configurees
ztixCommand.tix_configurecCs*|dk	r|jdd|S|jddSdS)aReturns 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
filedialogr)rZdlgclassrrrtix_filedialog{s	ztixCommand.tix_filedialogcCs|jdd|S)aLocates 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	getbitmaprrnamerrr
tix_getbitmaps	ztixCommand.tix_getbitmapcCs|jdd|S)aLocates 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.
        rZgetimagerr+rrrtix_getimagesztixCommand.tix_getimagecCs|jddd|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
            rrgetrr+rrrtix_option_getsztixCommand.tix_option_getcCs2|dk	r|jdd|||S|jdd||SdS)aResets 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.
        NrZresetoptionsr)rZ	newSchemeZ
newFontSetZ
newScmPriorrrtix_resetoptionssztixCommand.tix_resetoptions)N)N)N)__name__
__module____qualname____doc__rrr)r*r-r.r0r1rrrrrGs


rc@s"eZdZdZdddZddZdS)	Tkz{Toplevel widget of Tix which represents mostly the main window
    of an application. It has an associated Tcl interpreter.NTixcCsbtj||||tjd}|jd|dk	rR|jd||jd||jddS)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)tkinterr6__init__osenvironr/reval)rZ
screenNameZbaseNameZ	classNameZtixlibrrrr9szTk.__init__cCs|ddtj|dS)NZWM_DELETE_WINDOW)Zprotocolr8r6destroyrrrrr>sz
Tk.destroy)NNr7r2r3r4r5r9r>rrrrr6s
r6c@sTeZdZdZifddZeZddZddZdd	ZdddZ	dddZ
ddZd
S)FormzThe Tix Form geometry manager

    Widgets can be arranged by specifying attachments to other widgets.
    See Tix documentation for complete detailscKs"|jjd|jf|||dS)NtixFormrr_wr%r&rrrconfigszForm.configcCst|||idSN)rAformrkeyvaluerrr__setitem__szForm.__setitem__cCs|jdd|jS)NrBcheckrrrDr?rrrrLsz
Form.checkcCs|jdd|jdS)NrBforgetrMr?rrrrNszForm.forgetrcCs`|sJ|sJ|jdd|j}|j|}d}|D]}||j|f}q.|S|jdd|j||S)NrBgridr)rrrD	splitlistZgetint)rZxsizeZysizexyzrrrrOsz	Form.gridNcCs>|s|jdd|jS|ddkr*d|}|jdd|j|S)NrBinforr!rMrrrrrTs
z	Form.infocs(fddjjddjDS)Ncsg|]}|qSr)
_nametowidget.0rQr?rr
<listcomp>szForm.slaves.<locals>.<listcomp>rBslavesrrPrrDr?rr?rrYs
zForm.slaves)rr)N)r2r3r4r5rErGrKrLrNrOrTrYrrrrrAs


rAc@sreZdZdZdddiifddZddZddZd	d
ZddZd
dZ	ddZ
ddZidfddZddZ
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|}d}|r.|dndg}t|D]&\}}||kr@|d||f}||=q@||_t||||r|jj||j	f||rt
||i|_dS)Nroptionsr!)rappendlistitems
widgetNameWidget_setuprrrDrEsubwidget_list)	rmasterr`Zstatic_optionsr'r(Zextrakvrrrr9s$zTixWidget.__init__cCs ||jkr|j|St|dSrF)rcAttributeErrorr+rrr__getattr__Gs

zTixWidget.__getattr__cCs|jd|j|dS)z1Set a variable without calling its action routineZtixSetSilentNrM)rrJrrr
set_silentLszTixWidget.set_silentcCsD||}|s$td|d|j|t|jdd}||S)zSReturn the named subwidget (which must have been created by
        the sub-class).z
Subwidget z not child of N)_subwidget_nameTclError_namelenrDrU)rr,nrrr	subwidgetPs

zTixWidget.subwidgetcCsZ|}|sgSg}|D]<}|t|jdd}z|||WqYqXq|S)zReturn all subwidgets.rjN)_subwidget_namesrnrDr]rU)rnamesZretlistr,rrrsubwidgets_allZszTixWidget.subwidgets_allcCs0z|j|jd|WStk
r*YdSXdS)z7Get a subwidget name (returns a String, not a Widget !)rpN)rrrDrlr+rrrrkiszTixWidget._subwidget_namecCs<z |j|jdd}|j|WStk
r6YdSXdS)z"Return the name of all subwidgets.Z
subwidgetsz-allN)rrrDrPrl)rrQrrrrqps
zTixWidget._subwidget_namescCs\|dkrdSt|tst|}t|ts0t|}|}|D]}|j|dd||q<dS)z8Set configuration options for all subwidgets (and self).r=Nr r!)r#r$reprrqrr)rrrJrrr,rrr
config_allxs

zTixWidget.config_allcKst|s|}|r|rt||f}n|r&|}d}|D]*\}}t|rL||}|d||f}q2|jdd|f|S)Nrr!rcreate)rr_callable	_registerrr)rZimgtyper'rdr(r\rerfrrrimage_creates
zTixWidget.image_createcCs.z|jdd|Wntk
r(YnXdS)Nrdelete)rrrl)rZimgnamerrrimage_deleteszTixWidget.image_delete)r2r3r4r5r9rhrirprsrkrqruryr{rrrrr[
s
-
r[c@s"eZdZdZdddZddZdS)	TixSubWidgetzSubwidget 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)rjc
Cs|rD||}z$|t|jdd}|d}Wng}YnX|s`t||ddd|in|}tt|dD]V}d|d|d}	z||	}
|
}Wqtt	k
rt
|||ddd}YqtXqt|r|d}t||ddd|i||_dS)Nrj.r,r)destroy_physicallycheck_intermediate)rkrnrDsplitr[r9rangejoinrUKeyErrorr|r~)rrdr,r~rpathZplistparentirowrrrr9s0



zTixSubWidget.__init__cCsjt|jD]}|q|j|jjkr6|jj|j=|j|jjkrP|jj|j=|jrf|j	d|j
dS)Nr>)r^childrenvaluesr>rmrdrcr~rrrDrcrrrr>s
zTixSubWidget.destroyN)rjrjr@rrrrr|s

 r|c@sVeZdZdZifddddZddZdd	Zd
dZdd
ZifddZ	ddZ
dS)DisplayStylezRDisplayStyle - handle configuration options shared by
    (multiple) Display ItemsN)rdcKs\|s2d|kr|d}nd|kr(|d}n
td}|j|_|jjd|f||||_dS)NZ	refwindowzcreate display styleZtixDisplayStyle)r8Z_get_default_rootrrr%	stylename)ritemtyper'rdr(rrrr9s



zDisplayStyle.__init__cCs|jSrF)rr?rrr__str__szDisplayStyle.__str__cCsH|r|rt||f}n|r|}d}|D]\}}|d||f}q*|S)Nrr!)rr_)rr'r(Zoptsrerfrrrr%szDisplayStyle._optionscCs|j|jddSNrzrrrr?rrrrzszDisplayStyle.deletecCs|j|jdd||dS)Nr -%srrHrrrrKszDisplayStyle.__setitem__cKs|j|jdf|||S)Nr )r"rr%r&rrrrEs
zDisplayStyle.configcCs|j|jdd|S)Nrrr)rrIrrr__getitem__szDisplayStyle.__getitem__)r2r3r4r5r9rr%rzrKrErrrrrrs
rc@s2eZdZdZdifddZifddZddZdS)	BalloonzBalloon help widget.

    Subwidget       Class
    ---------       -----
    label           Label
    message         MessageNcKsNdddddg}t||d|||t|ddd	|jd<t|d
dd	|jd
<dS)Nr\ZinstallcolormapZinitwaitZ	statusbarZcursorZ
tixBalloonlabelrr~messager[r9_dummyLabelrcrrdr'r(Zstaticrrrr9	szBalloon.__init__cKs&|jj|jd|jf|||dS)zkBind balloon widget to another.
        One balloon widget may be bound to several widgets at the same timebindNrC)rwidgetr'r(rrrbind_widgetszBalloon.bind_widgetcCs|j|jd|jdSNZunbindrMrrrrr
unbind_widgetszBalloon.unbind_widget)r2r3r4r5r9rrrrrrrs
rc@s2eZdZdZdifddZifddZddZdS)		ButtonBoxzgButtonBox - A container for pushbuttons.
    Subwidgets are the buttons added with the add method.
    NcKst||dddg||dS)NZtixButtonBoxorientationr\r[r9rrdr'r(rrrr9s

zButtonBox.__init__cKs4|jj|jd|f|||}t|||j|<|S)z$Add a button with given name to box.addrrrDr%_dummyButtonrc)rr,r'r(Zbtnrrrr#s z
ButtonBox.addcCs ||jkr|j|jd|dSNinvokercrrrDr+rrrr*s
zButtonBox.invoker2r3r4r5r9rrrrrrrsrc@s>eZdZdZdifddZddZddZd	d
ZddZdS)
ComboBoxaComboBox - 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	Kst||dddddg||t|d|jd<t|d|jd<t|d|jd<t|d	|jd	<z$t|d
|jd
<t|d|jd<Wntk
rYnXdS)NZtixComboBoxZeditableZdropdownfancyr\rentryarrowslistboxtickcross)r[r9rrc_dummyEntryr_dummyScrolledListBox	TypeErrorrrrrr9<s 


zComboBox.__init__cCs|j|jd|dS)NZ
addhistoryrMrr$rrradd_historyNszComboBox.add_historycCs|j|jd|dS)NZ
appendhistoryrMrrrrappend_historyQszComboBox.append_historycCs|j|jd||dSNinsertrM)rindexr$rrrrTszComboBox.insertcCs|j|jd|dS)NpickrMrrrrrrWsz
ComboBox.pick)	r2r3r4r5r9rrrrrrrrr.s
rc@s>eZdZdZdifddZddZddZd	d
ZddZdS)
ControlaControl - 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       LabelNcKsZt||ddg||t|d|jd<t|d|jd<t|d|jd<t|d|jd<dS)NZ
tixControlr\incrdecrrr)r[r9rrcrrrrrrr9hs
zControl.__init__cCs|j|jddS)NrrMr?rrr	decrementoszControl.decrementcCs|j|jddS)NrrMr?rrr	incrementrszControl.incrementcCs|j|jddSrrMr?rrrruszControl.invokecCs|j|jddS)NupdaterMr?rrrrxszControl.update)	r2r3r4r5r9rrrrrrrrrZs
rc@s$eZdZdZifddZddZdS)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              ScrollbarcKsJt||ddg||t|d|jd<t|d|jd<t|d|jd<dS)NZ
tixDirListr\hlistvsbhsbr[r9_dummyHListrc_dummyScrollbarrrrrr9szDirList.__init__cCs|j|jd|dSNchdirrMrdirrrrrsz
DirList.chdirNr2r3r4r5r9rrrrrr{src@s$eZdZdZifddZddZdS)DirTreeaDirTree - 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             ScrollbarcKsJt||ddg||t|d|jd<t|d|jd<t|d|jd<dS)NZ
tixDirTreer\rrrrrrrrr9szDirTree.__init__cCs|j|jd|dSrrMrrrrrsz
DirTree.chdirNrrrrrrsrc@seZdZdZifddZdS)DirSelectBoxaDirSelectBox - 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:t||ddg||t|d|jd<t|d|jd<dS)NZtixDirSelectBoxr\dirlistdircbx)r[r9
_dummyDirListrc_dummyFileComboBoxrrrrr9szDirSelectBox.__init__Nr2r3r4r5r9rrrrrs
rc@s,eZdZdZifddZddZddZdS)	ExFileSelectBoxaExFileSelectBox - 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       ScrolledListBoxcKst||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)NZtixExFileSelectBoxr\cancelokhiddentypesrrfilefilelist)r[r9rrc_dummyCheckbutton_dummyComboBoxrrrrrrr9szExFileSelectBox.__init__cCs|j|jddSNfilterrMr?rrrrszExFileSelectBox.filtercCs|j|jddSrrMr?rrrrszExFileSelectBox.invokeN)r2r3r4r5r9rrrrrrrsrc@s,eZdZdZifddZddZddZdS)	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       DirSelectDialogcKs*t||ddg||t|d|jd<dS)NZtixDirSelectDialogr\Zdirbox)r[r9_dummyDirSelectBoxrcrrrrr9s
zDirSelectDialog.__init__cCs|j|jddSNpopuprMr?rrrrszDirSelectDialog.popupcCs|j|jddSNpopdownrMr?rrrrszDirSelectDialog.popdownNr2r3r4r5r9rrrrrrrs	rc@s,eZdZdZifddZddZddZdS)	ExFileSelectDialogzExFileSelectDialog - MS Windows style file select dialog.
    It provides a convenient method for the user to select files.

    Subwidgets       Class
    ----------       -----
    fsbox       ExFileSelectBoxcKs*t||ddg||t|d|jd<dS)NZtixExFileSelectDialogr\fsbox)r[r9_dummyExFileSelectBoxrcrrrrr9s
zExFileSelectDialog.__init__cCs|j|jddSrrMr?rrrrszExFileSelectDialog.popupcCs|j|jddSrrMr?rrrrszExFileSelectDialog.popdownNrrrrrrsrc@s,eZdZdZifddZddZddZdS)	
FileSelectBoxaExFileSelectBox - 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        ScrolledListBoxcKsZt||ddg||t|d|jd<t|d|jd<t|d|jd<t|d|jd<dS)NZtixFileSelectBoxr\rrr	selection)r[r9rrcrrrrrr9s
zFileSelectBox.__init__cCs|j|jddSrrMr?rrrapply_filterszFileSelectBox.apply_filtercCs|j|jddSrrMr?rrrrszFileSelectBox.invokeN)r2r3r4r5r9rrrrrrrs
rc@s,eZdZdZifddZddZddZdS)	FileSelectDialogzFileSelectDialog - Motif style file select dialog.

    Subwidgets       Class
    ----------       -----
    btns       StdButtonBox
    fsbox       FileSelectBoxcKs:t||ddg||t|d|jd<t|d|jd<dS)NZtixFileSelectDialogr\Zbtnsr)r[r9_dummyStdButtonBoxrc_dummyFileSelectBoxrrrrr9,s
zFileSelectDialog.__init__cCs|j|jddSrrMr?rrrr2szFileSelectDialog.popupcCs|j|jddSrrMr?rrrr5szFileSelectDialog.popdownNrrrrrr#src@s,eZdZdZifddZddZddZdS)		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       EntrycKs<t||dddg||t|d|jd<t|d|jd<dS)NZtixFileEntryZ
dialogtyper\Zbuttonr)r[r9rrcrrrrrr9Ds
zFileEntry.__init__cCs|j|jddSrrMr?rrrrJszFileEntry.invokecCsdSrFrr?rrrfile_dialogMszFileEntry.file_dialogN)r2r3r4r5r9rrrrrrr8src@seZdZdZdifddZifddZdifddZd	d
ZddZdlddZ	ddZ
ddZddZddZ
ddZddZddZddZifd d!Zifd"d#Zd$d%Zd&d'ZeZd(d)Zd*d+Zd,d-Zifd.d/Zifd0d1Zd2d3Zd4d5Zd6d7Zd8d9Zd:d;Z d<d=Z!dmd>d?Z"d@dAZ#dBdCZ$dDdEZ%dFdGZ&dHdIZ'dJdKZ(dLdMZ)dNdOZ*dPdQZ+dRdSZ,ifdTdUZ-ifdVdWZ.dXdYZ/dZd[Z0d\d]Z1ifd^d_Z2d`daZ3dbdcZ4ifdddeZ5dfdgZ6dndhdiZ7djdkZ8dS)oHListaHList - 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 - NoneNcKst||dddg||dS)NZtixHListcolumnsr\rrrrrr9Ys

zHList.__init__cKs |jj|jd|f|||SNrrCrrr'r(rrrr]sz	HList.addcKs(|sd}|jj|jd|f|||S)Nr=ZaddchildrC)rrr'r(rrr	add_child`s
zHList.add_childcCs|j|jdd|dSNanchorsetrMrrrrr
anchor_setfszHList.anchor_setcCs|j|jdddSNrclearrMr?rrranchor_cleariszHList.anchor_clearrcCs6|s|j|jdd||S|j|jdd|d|SdS)Nr	widthz-charrM)rcolrcharsrrrcolumn_widthlszHList.column_widthcCs|j|jdddS)NrzallrMr?rrr
delete_allsszHList.delete_allcCs|j|jdd|dS)NrzrrMrrrrdelete_entryvszHList.delete_entrycCs|j|jdd|dS)NrzZ
offspringsrMrrrrdelete_offspringsyszHList.delete_offspringscCs|j|jdd|dS)NrzZsiblingsrMrrrrdelete_siblings|szHList.delete_siblingscCs|j|jdd|dSNdragsiterrMrrrrdragsite_setszHList.dragsite_setcCs|j|jdddSNrrrMr?rrrdragsite_clearszHList.dragsite_clearcCs|j|jdd|dSNdropsiterrMrrrrdropsite_setszHList.dropsite_setcCs|j|jdddSNrrrMr?rrrdropsite_clearszHList.dropsite_clearcKs&|jj|jdd|f|||dS)NheaderrvrCrrr'r(rrr
header_createszHList.header_createcKs@|dkr||jdd|S|jj|jdd|f|||dS)Nrr r"rDrrr%rrrrheader_configures

zHList.header_configurecCs|j|jdd||S)NrrrM)rroptrrrheader_cgetszHList.header_cgetcCs|j|j|jdd|S)NrZexist)rZ
getbooleanrrDrrrrr
header_existsszHList.header_existscCs|j|jdd|dS)NrrzrMrrrr
header_deleteszHList.header_deletecCs|j|jdd|S)NrsizerMrrrrheader_sizeszHList.header_sizecCs|j|jdd|dS)NhiderrMrrrr
hide_entryszHList.hide_entrycKs&|jj|jdd|f|||dS)N	indicatorrvrCrrrrindicator_creates
zHList.indicator_createcKs@|dkr||jdd|S|jj|jdd|f|||dS)Nr#r rrrrrindicator_configures
zHList.indicator_configurecCs|j|jdd||S)Nr#rrMrrrrrrindicator_cgetszHList.indicator_cgetcCs|j|jdd|S)Nr#existsrMrrrrindicator_existsszHList.indicator_existscCs|j|jdd|dS)Nr#rzrMrrrrindicator_deleteszHList.indicator_deletecCs|j|jdd|S)Nr#rrMrrrrindicator_sizeszHList.indicator_sizecCs|j|jddSNrTrrMr?rrrinfo_anchorszHList.info_anchorcCs||j|jdd|pdSNrTZbbox)_getintsrrrDrrrr	info_bboxs
zHList.info_bboxcCs |j|jdd|}|j|S)NrTrrrrDrP)rrrrrr
info_childrenszHList.info_childrencCs|j|jdd|S)NrTdatarMrrrr	info_dataszHList.info_datacCs|j|jddS)NrTrrMr?rrr
info_dragsiteszHList.info_dragsitecCs|j|jddS)NrTrrMr?rrr
info_dropsiteszHList.info_dropsitecCs|j|jdd|S)NrTr(rMrrrrinfo_existsszHList.info_existscCs|j|jdd|S)NrTrrMrrrrinfo_hiddenszHList.info_hiddencCs|j|jdd|S)NrTnextrMrrrr	info_nextszHList.info_nextcCs|j|jdd|S)NrTrrMrrrrinfo_parentszHList.info_parentcCs|j|jdd|S)NrTprevrMrrrr	info_prevszHList.info_prevcCs|j|jdd}|j|SNrTrr1rrrrinfo_selectionszHList.info_selectioncCs|j|jdd|||S)NitemrrM)rrrrrrr	item_cgetszHList.item_cgetcKsD|dkr||jdd||S|jj|jdd||f|||dS)Nr@r rrrrr'r(rrritem_configures

zHList.item_configurecKs(|jj|jdd||f|||dS)Nr@rvrCrBrrritem_creates
zHList.item_createcCs|j|jdd||S)Nr@r(rMrrrrrritem_existsszHList.item_existscCs|j|jdd||dS)Nr@rzrMrErrritem_deleteszHList.item_deletecCs|j|jd||S)N	entrycgetrMr&rrrrHszHList.entrycgetcKs<|dkr||jd|S|jj|jd|f|||dSNentryconfigurerrrrrrJs

zHList.entryconfigurecCs|j|jd|SNnearestrM)rrRrrrrLsz
HList.nearestcCs|j|jd|dSNseerMrrrrrNsz	HList.seecKs$|jj|jddf|||dSNrrrCr&rrrselection_clearszHList.selection_clearcCs|j|jdd|SNrZincludesrMrrrrselection_includes
szHList.selection_includescCs|j|jdd||dSNrrrMrfirstZlastrrr
selection_set
szHList.selection_setcCs|j|jdd|S)NshowrrMrrrr
show_entryszHList.show_entry)rNN)N)N)9r2r3r4r5r9rrrrrrrr	r
r
rrrrrrrZheader_existrr r"r$r%r'r)r*r+r-r0r2r4r5r6r7r8r:r;r=r?rArCrDrFrGrHrJrLrNrPrRrVrXrrrrrQsl


rc@seZdZdZdifddZdS)	InputOnlyz?InputOnly - Invisible widget. Unix only.

    Subwidgets - NoneNcKst||dd||dS)NZtixInputOnlyrrrrrr9szInputOnly.__init__rrrrrrYsrYc@seZdZdZdifddZdS)
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       EntryNcKs<t||dddg||t|d|jd<t|d|jd<dS)NZ
tixLabelEntry	labelsider\rr)r[r9rrcrrrrrr9%s
zLabelEntry.__init__rrrrrrZs	rZc@seZdZdZdifddZdS)
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       FrameNcKs<t||dddg||t|d|jd<t|d|jd<dS)NZ
tixLabelFramer[r\rframe)r[r9rrc_dummyFramerrrrr96s
zLabelFrame.__init__rrrrrr\+s
r\c@s@eZdZdZifddZifddZddZdd	Zd
dZdS)
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.cKsNt||ddg||t|ddd|jd<t|d|jd<t|d|jd<dS)NZtixListNoteBookr\ZpanerrrZshlist)r[r9_dummyPanedWindowrcr_dummyScrolledHListrrrrr9EszListNoteBook.__init__cKs:|jj|jd|f|||t|||j|<|j|SrrrrDr%r|rcrr,r'r(rrrrMs zListNoteBook.addcCs
||SrFrpr+rrrpageRszListNoteBook.pagecCs:|j|j|jd}g}|D]}|||q |SNpagesrrPrrDr]rprrrZretrQrrrrgUs
zListNoteBook.pagescCs|j|jd|dSNraiserMr+rrr
raise_page]szListNoteBook.raise_pageN)	r2r3r4r5r9rrergrlrrrrr_=sr_c@seZdZdZdifddZdS)MeterzuThe Meter widget can be used to show the progress of a background
    job which may take a long time to execute.
    NcKst||ddg||dS)NZtixMeterr\rrrrrr9es

zMeter.__init__rrrrrrm`srmc@sReZdZdZdifddZifddZddZd	d
ZddZd
dZ	ddZ
dS)NoteBookzNoteBook - Multi-page container widget (tabbed notebook metaphor).

    Subwidgets       Class
    ----------       -----
    nbframe       NoteBookFrame
    <pages>       page widgets added dynamically with the add methodNcKs.t||ddg||t|ddd|jd<dS)NZtixNoteBookr\Znbframerr)r[r9r|rcrrrrr9qszNoteBook.__init__cKs:|jj|jd|f|||t|||j|<|j|Srrbrcrrrrvs zNoteBook.addcCs,|j|jd||j||j|=dSrrrrDrcr>r+rrrrz{szNoteBook.deletecCs
||SrFrdr+rrrresz
NoteBook.pagecCs:|j|j|jd}g}|D]}|||q |Srfrhrirrrrgs
zNoteBook.pagescCs|j|jd|dSrjrMr+rrrrlszNoteBook.raise_pagecCs|j|jdS)NraisedrMr?rrrrpszNoteBook.raised)r2r3r4r5r9rrzrergrlrprrrrrnisrnc@seZdZdS)
NoteBookFrameN)r2r3r4rrrrrqsrqc@sLeZdZdZifddZifddZifddZdd	Zd
dZdd
Z	dS)
OptionMenuzOptionMenu - creates a menu button of options.

    Subwidget       Class
    ---------       -----
    menubutton      Menubutton
    menu            MenucKs:t||ddg||t|d|jd<t|d|jd<dS)NZ
tixOptionMenur\
menubuttonmenur[r9_dummyMenubuttonrc
_dummyMenurrrrr9szOptionMenu.__init__cKs&|jj|jdd|f|||dS)NrcommandrCrcrrradd_commandszOptionMenu.add_commandcKs&|jj|jdd|f|||dS)NrZ	separatorrCrcrrr
add_separatorszOptionMenu.add_separatorcCs|j|jd|dSrrMr+rrrrzszOptionMenu.deletecCs|j|jd|dS)NdisablerMr+rrrr{szOptionMenu.disablecCs|j|jd|dS)NenablerMr+rrrr|szOptionMenu.enableN)
r2r3r4r5r9ryrzrzr{r|rrrrrrsrrc@sTeZdZdZifddZifddZddZdd	Zd
dZifdd
Z	ddZ
dS)PanedWindowaPanedWindow - 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.cKst||dddg||dS)NZtixPanedWindowrr\rrrrrr9szPanedWindow.__init__cKs>|jj|jd|f|||t||dd|j|<|j|S)Nrr)rrbrcrrrrs
 zPanedWindow.addcCs,|j|jd||j||j|=dSrror+rrrrzszPanedWindow.deletecCs|j|jd|dS)NrNrMr+rrrrNszPanedWindow.forgetcCs|j|jd||S)NpanecgetrMr&rrrr~szPanedWindow.panecgetcKs<|dkr||jd|S|jj|jd|f|||dS)N
paneconfigurerrrrrrszPanedWindow.paneconfigurecs*jjjd}fdd|DS)Npanescsg|]}|qSrrdrVr?rrrXsz%PanedWindow.panes.<locals>.<listcomp>rZ)rrrrr?rrszPanedWindow.panesN)r2r3r4r5r9rrzrNr~rrrrrrr}s
r}c@s4eZdZdZifddZddZddZdd	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       MenucKs:t||ddg||t|d|jd<t|d|jd<dS)NZtixPopupMenur\rsrtrurrrrr9szPopupMenu.__init__cCs|j|jd|jdS)NrrMrrrrrszPopupMenu.bind_widgetcCs|j|jd|jdSrrMrrrrrszPopupMenu.unbind_widgetcCs|j|jd|j||dS)NZpostrM)rrrQrRrrrpost_widgetszPopupMenu.post_widgetN)r2r3r4r5r9rrrrrrrrs
rc@s<eZdZdZifddZddZddZdd	Zd
dZdS)
ResizeHandlez;Internal widget to draw resize handles on Scrolled widgets.c	Ks.ddddddddd	g	}t||d
|||dS)Nr\rxZcursorfgZcursorbgZ
handlesizeZ	hintcolorZ	hintwidthrQrRZtixResizeHandler)rrdr'r(flagsrrrr9s
zResizeHandle.__init__cCs|j|jd|jdS)NZattachwidgetrMrrrr
attach_widgetszResizeHandle.attach_widgetcCs|j|jd|jdS)NZdetachwidgetrMrrrr
detach_widgetszResizeHandle.detach_widgetcCs|j|jd|jdS)Nr!rMrrrrr!szResizeHandle.hidecCs|j|jd|jdS)NrWrMrrrrrW	szResizeHandle.showN)	r2r3r4r5r9rrr!rWrrrrrs
rc@seZdZdZifddZdS)
ScrolledHListz0ScrolledHList - HList with automatic scrollbars.cKsJt||ddg||t|d|jd<t|d|jd<t|d|jd<dS)NZtixScrolledHListr\rrrrrrrrr9szScrolledHList.__init__Nrrrrrrsrc@seZdZdZifddZdS)ScrolledListBoxz4ScrolledListBox - Listbox with automatic scrollbars.cKsJt||ddg||t|d|jd<t|d|jd<t|d|jd<dS)NZtixScrolledListBoxr\listboxrr)r[r9
_dummyListboxrcrrrrrr9szScrolledListBox.__init__Nrrrrrrsrc@seZdZdZifddZdS)ScrolledTextz.ScrolledText - Text with automatic scrollbars.cKsJt||ddg||t|d|jd<t|d|jd<t|d|jd<dS)NZtixScrolledTextr\rrr)r[r9
_dummyTextrcrrrrrr9%szScrolledText.__init__Nrrrrrr!src@seZdZdZifddZdS)
ScrolledTListz0ScrolledTList - TList with automatic scrollbars.cKsJt||ddg||t|d|jd<t|d|jd<t|d|jd<dS)NZtixScrolledTListr\Ztlistrr)r[r9_dummyTListrcrrrrrr9/szScrolledTList.__init__Nrrrrrr+src@seZdZdZifddZdS)ScrolledWindowz2ScrolledWindow - Window with automatic scrollbars.cKsJt||ddg||t|d|jd<t|d|jd<t|d|jd<dS)NZtixScrolledWindowr\rrr)r[r9r^rcrrrrrr9:szScrolledWindow.__init__Nrrrrrr6src@s0eZdZdZifddZifddZddZdS)	SelectzSelect - 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
Ks2t||ddddddg||t|d|jd<dS)NZ	tixSelectZ	allowzeroradiorr[r\rrrrrrr9Gs
zSelect.__init__cKs:|jj|jd|f|||t|||j|<|j|SrrrcrrrrNs z
Select.addcCs|j|jd|dSrrMr+rrrrSsz
Select.invokeNrrrrrr@src@seZdZdZdifddZdS)Shellz'Toplevel window.

    Subwidgets - NoneNcKst||dddg||dS)NZtixShellr\titlerrrrrr9[szShell.__init__rrrrrrVsrc@s6eZdZdZdifddZddZddZd	d
ZdS)DialogShellzToplevel 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Ks&t||ddddddddg||dS)	NZtixDialogShellr\rZmappedZ	minheightZminwidthrZ	transientrrrrrr9gszDialogShell.__init__cCs|j|jddSrrMr?rrrrnszDialogShell.popdowncCs|j|jddSrrMr?rrrrqszDialogShell.popupcCs|j|jddS)NcenterrMr?rrrrtszDialogShell.center)r2r3r4r5r9rrrrrrrr^s
rc@s&eZdZdZdifddZddZdS)StdButtonBoxz@StdButtonBox - Standard Button Box (OK, Apply, Cancel and Help) NcKs\t||dddg||t|d|jd<t|d|jd<t|d|jd<t|d|jd<dS)NZtixStdButtonBoxrr\rapplyrhelp)r[r9rrcrrrrr9zs
zStdButtonBox.__init__cCs ||jkr|j|jd|dSrrr+rrrrs
zStdButtonBox.invoke)r2r3r4r5r9rrrrrrwsrc@seZdZdZdifddZddZddZd	d
ZddZd3d
dZ	ddZ
ddZddZddZ
ifddZddZddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,Zifd-d.Zd/d0Zd4d1d2ZdS)5TListaTList - 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 - NoneNcKst||ddg||dS)NZtixTListr\rrrrrr9szTList.__init__cCs|j|jdd|dS)NactiverrMrrrr
active_setszTList.active_setcCs|j|jdddS)NrrrMr?rrractive_clearszTList.active_clearcCs|j|jdd|dSrrMrrrrrszTList.anchor_setcCs|j|jdddSrrMr?rrrrszTList.anchor_clearcCs|j|jd||dSrrMrfrom_torrrrzszTList.deletecCs|j|jdd|dSrrMrrrrr
szTList.dragsite_setcCs|j|jdddSrrMr?rrrrszTList.dragsite_clearcCs|j|jdd|dSrrMrrrrrszTList.dropsite_setcCs|j|jdddSrrMr?rrrrszTList.dropsite_clearcKs$|jj|jd|f|||dSrrC)rrr'r(rrrrszTList.insertcCs|j|jddS)NrTrrMr?rrrinfo_activeszTList.info_activecCs|j|jddSr,rMr?rrrr-szTList.info_anchorcCs|j|jdd|S)NrTZdownrMrrrr	info_downszTList.info_downcCs|j|jdd|S)NrTleftrMrrrr	info_leftszTList.info_leftcCs|j|jdd|S)NrTrightrMrrrr
info_rightszTList.info_rightcCs|j|jdd}|j|Sr>r1rrrrr?szTList.info_selectioncCs|j|jddS)NrTrrMr?rrr	info_sizeszTList.info_sizecCs|j|jdd|S)NrTZuprMrrrrinfo_upsz
TList.info_upcCs|j|jd||SrKrMrrQrRrrrrLsz
TList.nearestcCs|j|jd|dSrMrMrrrrrNsz	TList.seecKs$|jj|jddf|||dSrOrCr&rrrrPszTList.selection_clearcCs|j|jdd|SrQrMrrrrrRszTList.selection_includescCs|j|jdd||dSrSrMrTrrrrVszTList.selection_set)N)N)r2r3r4r5r9rrrrrzr
rrrrrr-rrrr?rrrLrNrPrRrVrrrrrs2	
rc@sHeZdZdZdifddZddZddZd	d
ZddZdddZ	dS)TreezTree - 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.NcKsJt||ddg||t|d|jd<t|d|jd<t|d|jd<dS)NZtixTreer\rrrrrrrrr9s
z
Tree.__init__cCs|j|jddSaThis 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.autosetmodeNrMr?rrrrszTree.autosetmodecCs|j|jd|dSz8Close the entry given by entryPath if its mode is close.closeNrMr	entrypathrrrrsz
Tree.closecCs|j|jd|Sz9Returns the current mode of the entry given by entryPath.getmoderMrrrrrszTree.getmodecCs|j|jd|dSz6Open the entry given by entryPath if its mode is open.openNrMrrrrrsz	Tree.opennonecCs|j|jd||dS)aThis 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.setmodeNrMrrmoderrrrs
zTree.setmode)r)
r2r3r4r5r9rrrrrrrrrrsrc@sZeZdZdZdifddZddZddZd	d
ZddZdddZ	ddZ
dddZdS)	CheckListzThe 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.
    NcKsLt||dddg||t|d|jd<t|d|jd<t|d|jd<dS)NZtixCheckListr\rrrrrrrrrr9s
zCheckList.__init__cCs|j|jddSrrMr?rrrrszCheckList.autosetmodecCs|j|jd|dSrrMrrrrrszCheckList.closecCs|j|jd|SrrMrrrrr szCheckList.getmodecCs|j|jd|dSrrMrrrrr$szCheckList.openoncCs|j|j|jd|S)zReturns 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getselectionrZ)rrrrrr(szCheckList.getselectioncCs|j|jd|S)z(Returns the current status of entryPath.	getstatusrMrrrrr.szCheckList.getstatuscCs|j|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.	setstatusNrMrrrrr2szCheckList.setstatus)r)r)r2r3r4r5r9rrrrrrrrrrrrs
rc@seZdZdddZdS)rrjcCst||||dSrFr|r9rrdr,r~rrrr9>sz_dummyButton.__init__N)rjr2r3r4r9rrrrr=src@seZdZdddZdS)rrjcCst||||dSrFrrrrrr9Bsz_dummyCheckbutton.__init__N)rjrrrrrrAsrc@seZdZdddZdS)rrjcCst||||dSrFrrrrrr9Fsz_dummyEntry.__init__N)rjrrrrrrEsrc@seZdZdddZdS)r^rjcCst||||dSrFrrrrrr9Jsz_dummyFrame.__init__N)rjrrrrrr^Isr^c@seZdZdddZdS)rrjcCst||||dSrFrrrrrr9Nsz_dummyLabel.__init__N)rjrrrrrrMsrc@seZdZdddZdS)rrjcCst||||dSrFrrrrrr9Rsz_dummyListbox.__init__N)rjrrrrrrQsrc@seZdZdddZdS)rwrjcCst||||dSrFrrrrrr9Vsz_dummyMenu.__init__N)rjrrrrrrwUsrwc@seZdZdddZdS)rvrjcCst||||dSrFrrrrrr9Zsz_dummyMenubutton.__init__N)rjrrrrrrvYsrvc@seZdZdddZdS)rrjcCst||||dSrFrrrrrr9^sz_dummyScrollbar.__init__N)rjrrrrrr]src@seZdZdddZdS)rrjcCst||||dSrFrrrrrr9bsz_dummyText.__init__N)rjrrrrrrasrc@seZdZdddZdS)rrjcCsDt||||t|d|jd<t|d|jd<t|d|jd<dS)Nrrr)r|r9rrcrrrrrr9fsz_dummyScrolledListBox.__init__N)rjrrrrrresrc@seZdZdddZdS)rrjcCst||||dSrFrrrrrr9msz_dummyHList.__init__N)rjrrrrrrlsrc@seZdZdddZdS)rarjcCsDt||||t|d|jd<t|d|jd<t|d|jd<dSNrrrr|r9rrcrrrrrr9qsz_dummyScrolledHList.__init__N)rjrrrrrrapsrac@seZdZdddZdS)rrjcCst||||dSrFrrrrrr9xsz_dummyTList.__init__N)rjrrrrrrwsrc@seZdZdddZdS)rrjcCst|||d|gt|d|jd<t|d|jd<t|d|jd<t|d|jd<z$t|d|jd<t|d|jd<Wntk
rYnXdS)Nrrrrrrr)r|r9rrcrrrrrrrrr9|s
z_dummyComboBox.__init__N)rjrrrrrr{src@seZdZdddZdS)rrjcCsDt||||t|d|jd<t|d|jd<t|d|jd<dSrrrrrrr9sz_dummyDirList.__init__N)rjrrrrrrsrc@seZdZdddZdS)rrjcCs4t||||t|d|jd<t|d|jd<dS)Nrr)r|r9rrcrrrrrr9sz_dummyDirSelectBox.__init__N)rjrrrrrrsrc@seZdZdddZdS)rrjcCst||||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)	Nrrrrrrrr)r|r9rrcrrrrrrrr9sz_dummyExFileSelectBox.__init__N)rjrrrrrrsrc@seZdZdddZdS)rrjcCsTt||||t|d|jd<t|d|jd<t|d|jd<t|d|jd<dS)Nrrrr)r|r9rrcrrrrrr9s
z_dummyFileSelectBox.__init__N)rjrrrrrrsrc@seZdZdddZdS)rrjcCs$t||||t|d|jd<dS)Nr)r|r9rrcrrrrr9sz_dummyFileComboBox.__init__N)rjrrrrrrsrc@seZdZdddZdS)rrjcCsTt||||t|d|jd<t|d|jd<t|d|jd<t|d|jd<dS)Nrrrr)r|r9rrcrrrrr9s
z_dummyStdButtonBox.__init__N)rjrrrrrrsrc@seZdZdddZdS)_dummyNoteBookFramercCst||||dSrFrrrrrr9sz_dummyNoteBookFrame.__init__N)rrrrrrrsrc@seZdZdddZdS)r`rjcCst||||dSrFrrrrrr9sz_dummyPanedWindow.__init__N)rjrrrrrr`sr`cCs|jd|jS)zzReturns the qualified path name for the widget. Normally used to set
    default options for subwidgets. See tixwidgets.pyZ
tixOptionNamerM)rrrr
OptionNamesrcCs:d}|D](}|d|d|d||d}q|S)Nr=z{{z} {z - z}} )keys)dictstyperrrFileTypeLists&rc@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)r2r3r4r5rrrrrsrc@seZdZdZdifddZddZddZd	d
Zd)ddZd*d
dZ	ddZ
ddZddZd+ddZ
ddZddZddZddZdd Zd,d!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}||_t||d|||dS)NZtixGridr'r[r9rrrrr9sz
Grid.__init__cCs|j|dddS)zRemoves the selection anchor.rrNrr?rrrrszGrid.anchor_clearcCs||j|ddS)z3Get the (x,y) coordinate of the current anchor cellrr/r/rrr?rrr
anchor_getszGrid.anchor_getcCs|j|dd||dS)z/Set the selection anchor to the cell at (x, y).rrNrrrrrrszGrid.anchor_setcCs4|dkr|j|dd|n|j|dd||dS)zdDelete rows between from_ and to inclusive.
        If to is not provided,  delete only row at from_Nrzr
rrrrr
delete_rowszGrid.delete_rowcCs4|dkr|j|dd|n|j|dd||dS)zjDelete columns between from_ and to inclusive.
        If to is not provided,  delete only column at from_Nrzr	rrrrr
delete_columnszGrid.delete_columncCs|j|dddS)zUIf any cell is being edited, de-highlight the cell  and  applies
        the changes.editrNrr?rrr
edit_applyszGrid.edit_applycCs|j|dd||dS)zmHighlights  the  cell  at  (x, y) for editing, if the -editnotify
        command returns True for this cell.rrNrrrrredit_set!sz
Grid.edit_setcCs,|r|ddkrd|}|j|d|||S)z&Get the option value for cell at (x,y)rr!rHr)rrQrRrrrrrH&szGrid.entrycgetcKs|d||f||SrI)Z
_configure)rrQrRr'r(rrrrJ,szGrid.entryconfigurec	Cs||j|dd||S)z+Return True if display item exists at (x,y)rTr()Z_getbooleanrrrrrrr72szGrid.info_existscCs|j|dd||Sr.rrrrrr06szGrid.info_bboxcCs|j|dd|||dS)zMoves 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	Nrrrroffsetrrrmove_column:szGrid.move_columncCs|j|dd|||dS)zMoves 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.rr
Nrrrrrmove_row@sz
Grid.move_rowcCs||j|d||S)z8Return coordinate of cell nearest pixel coordinate (x,y)rLrrrrrrLFszGrid.nearestcKs>||j|}|dk	r"d|f|}|jj|d||f|dS)Nz	-itemtyper)r%r'rr)rrQrRrr(argsrrrrPszGrid.setcKs*|j|jj|jdd|f|i|S)aQueries 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.rr	)rrPrrDr%rrr(rrrsize_columnVs
zGrid.size_columncKs(|j|jj|dd|f|i|S)aQueries 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.rr
)rrPrr%rrrrsize_rowps
z
Grid.size_rowcCs|j|jd||dS)z7Clears the cell at (x, y) by removing its display item.unsetNrMrrrrrsz
Grid.unset)N)N)N)N)r2r3r4r5r9rrrrrrrrHrJr7r0rrrLrrrrrrrrrs(	




rc@seZdZdZdifddZdS)ScrolledGridzScrolled Grid widgetsNcKs"g}||_t||d|||dS)NZtixScrolledGridrrrrrr9szScrolledGrid.__init__rrrrrrsr)ur:r8rZ_tkinterZWINDOWZTEXTZSTATUSZ	IMMEDIATEZIMAGEZ	IMAGETEXTZBALLOONZAUTOZ	ACROSSTOPASCIIZCELLZCOLUMNZ
DECREASINGZ
INCREASINGZINTEGERZMAINMAXZREALZROWZS_REGIONZX_REGIONZY_REGIONZ
TCL_DONT_WAITZTCL_WINDOW_EVENTSZTCL_FILE_EVENTSZTCL_TIMER_EVENTSZTCL_IDLE_EVENTSZTCL_ALL_EVENTSrr6rAra	__bases__r[r|rrrrrrrrrrrrrrZXViewZYViewrrYrZr\r_rmrnrqrrr}rrrrrrrrrrrrrrZButtonrZCheckbuttonrZEntryrZFramer^ZLabelrZListboxrZMenurwZ
MenubuttonrvZ	ScrollbarrZTextrrrrarrrrrrrrrr`rrrrrrrrr<module>s-
8/,!"C#	()


S.6

*