o =?h,@s\ddlZddlZddlZddlTddlmZejdedddZdZd Zd Z d Z d Z d Z dZ dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Z dZ!Gd!d"d"Z"Gd#d$d$ej#e"Z#Gd%d&d&Z$ej%j&e$fej%_&Gd'd(d(ej%Z'Gd)d*d*e'Z(Gd+d,d,Z)Gd-d.d.e'Z*Gd/d0d0e'Z+Gd1d2d2e'Z,Gd3d4d4e'Z-Gd5d6d6e'Z.Gd7d8d8e'Z/Gd9d:d:e'Z0Gd;d<dd>e'Z2Gd?d@d@e'Z3GdAdBdBe'Z4GdCdDdDe'Z5GdEdFdFe'Z6GdGdHdHe'e7e8Z9GdIdJdJe'Z:GdKdLdLe'Z;GdMdNdNe'ZGdSdTdTe'Z?GdUdVdVe'Z@GdWdXdXe'ZAGdYdZdZe'ZBGd[d\d\e'ZCGd]d^d^e'ZDGd_d`d`e'ZEGdadbdbe'ZFGdcdddde'ZGGdedfdfe'ZHGdgdhdhe'ZIGdidjdje'ZJGdkdldle'ZKGdmdndne'ZLGdodpdpe'ZMGdqdrdre'e7e8ZNGdsdtdte'ZOGdudvdve'ZPGdwdxdxeQe(ZRGdydzdzeSe(ZTGd{d|d|eUe(ZVGd}d~d~eWe(ZXGdddeYe(ZZGddde[e(Z\Gddde]e(Z^Gddde_e(Z`Gdddeae(ZbGdddece(ZdGdddeFe(ZeGddde9e(ZfGdddeEe(ZgGdddeNe(ZhGddde,e(ZiGddde.e(ZjGddde0e(ZkGddde1e(ZlGddde4e(ZmGddde,e(ZnGdddeMe(ZoGddde@e(ZpGdddeBe(ZqddZrddZsGddde'ZtGddde'e7e8ZuGdddeuZvdS)N)*) _cnfmergeznThe Tix Tk extension is unmaintained, and the tkinter.tix wrapper module is deprecated in favor of tkinter.ttk) stacklevelwindowtextZstatusZ immediateimageZ imagetextZballoonautoZ acrosstopasciiZcellcolumnZ decreasingZ increasingZintegermainmaxrealrowzs-regionzx-regionzy-region c@sVeZdZdZddZddZdddZdd d Zd d Zd dZ ddZ dddZ dS) 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. cC|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 directoryr2/opt/alt/python310/lib64/python3.10/tkinter/tix.pytix_addbitmapdirYs ztixCommand.tix_addbitmapdircCr)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_cgetesztixCommand.tix_cgetNcKsd|r t||f}n|rt|}|dur|ddSt|tr'|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_configurels   ztixCommand.tix_configurecCs&|dur |jdd|S|jddS)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_filedialogs ztixCommand.tix_filedialogcCr)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_getbitmapcCr)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 rr getrr-rrrtix_option_getsztixCommand.tix_option_getcCs.|dur|jdd|||S|jdd||S)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_resetoptionsN) __name__ __module__ __qualname____doc__rr!r+r,r/r0r2r3rrrrrNs    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|dur)|jd||jd||jddS)NZ TIX_LIBRARYz|s |jdd|jS|ddkrd|}|jdd|j|S)NrEinforr#rPrrrrrYs  z Form.infocs(fddjjddjDS)Ncg|]}|qSr) _nametowidget.0rVrBrr zForm.slaves..rEslavesrrUrrGrBrrBrr` s z Form.slaves)rrr4) r5r6r7r8rHrIrMrOrRrTrYr`rrrrrDs   rDc@sreZdZdZdddiifddZddZddZd d Zd d Zd dZ ddZ ddZ idfddZ 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|r t||f}nt|}d}|r|dndg}t|D]\}}||vr3|d||f}||=q ||_||||rK|jj||jg|R|rSt ||i|_ dS)Nroptionsr#) rappendlistitems widgetName_setuprrrGWidgetrHsubwidget_list) rmasterrgZstatic_optionsr)r*Zextrakvrrrr<!s&    zTixWidget.__init__cCs||jvr |j|St|r4)rjAttributeErrorr-rrr __getattr__Ns  zTixWidget.__getattr__cCs|jd|j|dS)z1Set a variable without calling its action routineZ tixSetSilentNrP)rrLrrr set_silentSzTixWidget.set_silentcCsD||}|std|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_namelenrGr[)rr.nrrr subwidgetWs  zTixWidget.subwidgetcCsV|}|sgSg}|D]}|t|jdd}z |||Wq Yq |S)zReturn all subwidgets.rrN)_subwidget_namesrvrGrdr[)rnamesZretlistr.rrrsubwidgets_allaszTixWidget.subwidgets_allcCs*z |j|jd|WStyYdSw)z7Get a subwidget name (returns a String, not a Widget !)rxN)rrrGrtr-rrrrsps  zTixWidget._subwidget_namecCs6z|j|jdd}|j|WStyYdSw)z"Return the name of all subwidgets.Z subwidgetsz-allN)rrrGrUrt)rrVrrrryws  zTixWidget._subwidget_namescCs\|dkrdSt|tst|}t|tst|}|}|D] }|j|dd||qdS)z8Set configuration options for all subwidgets (and self).r@Nr"r#)r%r&reprryrr)rr rLrzr.rrr config_alls  zTixWidget.config_allcKsx|dur|}|r|rt||f}n|r|}d}|D]\}}t|r(||}|d||f}q|jdd|f|S)Nrr#rcreate)rrfcallableZ _registerrr)rZimgtyper)rkr*rcrlrmrrr image_creates zTixWidget.image_createcCs,z |jdd|WdStyYdSw)Nrdelete)rrrt)rZimgnamerrr image_deletes  zTixWidget.image_delete)r5r6r7r8r<rorprxr{rsryr}rrrrrrrbs  -  rbc@s$eZdZdZ dddZddZdS) 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)rrc Cs|r ||}z|t|jdd}|d}Wng}Y|s.t||ddd|inE|}tt|dD])}d|d|d} z || } | }Wq8t yat |||ddd}Yq8w|rh|d}t||ddd|i||_ dS)Nrr.r.r)destroy_physicallycheck_intermediate) rsrvrGsplitrbr<rangejoinr[KeyErrorrr) rrkr.rrpathZplistparentirwwrrrr<s2      zTixSubWidget.__init__cCsnt|jD]}|q|j|jjvr|jj|j=|j|jjvr(|jj|j=|jr5|j d|j dSdS)NrA) rechildrenvaluesrArurkrjrrrrGrcrrrrAs  zTixSubWidget.destroyN)rrrrrCrrrrrs  rc@sVeZdZdZifddddZddZdd Zd d Zd d ZifddZ ddZ dS) DisplayStylezRDisplayStyle - handle configuration options shared by (multiple) Display ItemsN)rkcKsb|durd|vr |d}nd|vr|d}ntd}|j|_|jjd|g|||R|_dS)NZ refwindowzcreate display styleZtixDisplayStyle)r;Z_get_default_rootrrr' stylename)ritemtyper)rkr*rrrr<s     zDisplayStyle.__init__cCs|jSr4)rrBrrr__str__szDisplayStyle.__str__cCsH|r |r t||f}n|r|}d}|D] \}}|d||f}q|S)Nrr#)rrf)rr)r*Zoptsrlrmrrrr'szDisplayStyle._optionscC|j|jddSNrrrrrBrrrrrNzDisplayStyle.deletecCs|j|jdd||dS)Nr"-%srrJrrrrMzDisplayStyle.__setitem__cKs|j|jdg|||RS)Nr")r$rr'r(rrrrHs  zDisplayStyle.configcCs|j|jdd|S)Nrrr)rrKrrr __getitem__rSzDisplayStyle.__getitem__) r5r6r7r8r<rr'rrMrHrrrrrrs    rc@2eZdZdZdifddZifddZddZdS) BalloonzBalloon help widget. Subwidget Class --------- ----- label Label message MessageNcKsHgd}t||d|||t|ddd|jd<t|ddd|jd<dS)N)rcZinstallcolormapZinitwaitZ statusbarZcursorZ tixBalloonlabelrrmessagerbr< _dummyLabelrjrrkr)r*Zstaticrrrr<s zBalloon.__init__cKs(|jj|jd|jg|||RdS)zkBind balloon widget to another. One balloon widget may be bound to several widgets at the same timebindNrF)rwidgetr)r*rrr bind_widgets(zBalloon.bind_widgetcC|j|jd|jdSNZunbindrPrrrrr unbind_widgetzBalloon.unbind_widget)r5r6r7r8r<rrrrrrrs  rc@r) ButtonBoxzgButtonBox - A container for pushbuttons. Subwidgets are the buttons added with the add method. NcKt||dddg||dS)NZ tixButtonBox orientationrcrbr<rrkr)r*rrrr<&  zButtonBox.__init__cKs6|jj|jd|g|||R}t|||j|<|S)z$Add a button with given name to box.addrrrGr' _dummyButtonrj)rr.r)r*Zbtnrrrr*s"z ButtonBox.addcC$||jvr|j|jd|dSdSNinvokerjrrrGr-rrrr1 zButtonBox.invoker5r6r7r8r<rrrrrrr"s   rc@>eZdZdZdifddZddZddZd d Zd d 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 optionNcKst||dgd||t|d|jd<t|d|jd<t|d|jd<t|d|jd<zt|d|jd<t|d|jd<WdStyIYdSw) NZ tixComboBox)ZeditableZdropdownfancyrcrentryarrowslistboxtickcross)rbr<rrj _dummyEntryr_dummyScrolledListBox TypeErrorrrrrr<Cs   zComboBox.__init__cC|j|jd|dS)NZ addhistoryrPrr&rrr add_historyUrSzComboBox.add_historycCr)NZ appendhistoryrPrrrrappend_historyXrSzComboBox.append_historycC|j|jd||dSNinsertrP)rindexr&rrrr[rzComboBox.insertcCr)NpickrPrrrrrr^rSz ComboBox.pick) r5r6r7r8r<rrrrrrrrr5s  rc@r) 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 tixControlrcincrdecrrr)rbr<rrjrrrrrrr<o zControl.__init__cCr)NrrPrBrrr decrementvrNzControl.decrementcCr)NrrPrBrrr incrementyrNzControl.incrementcCrrrPrBrrrr|rNzControl.invokecCr)NupdaterPrBrrrrrNzControl.update) r5r6r7r8r<rrrrrrrrras  rc@$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 ScrollbarcKJt||ddg||t|d|jd<t|d|jd<t|d|jd<dS)NZ tixDirListrchlistvsbhsbrbr< _dummyHListrj_dummyScrollbarrrrrr<zDirList.__init__cCrNchdirrPrdirrrrrrSz DirList.chdirNr5r6r7r8r<rrrrrrs rc@r)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 ScrollbarcKr)NZ tixDirTreercrrrrrrrrr<rzDirTree.__init__cCrrrPrrrrrrSz DirTree.chdirNrrrrrrs rc@eZdZdZifddZdS) 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 ScrolledListBoxcK:t||ddg||t|d|jd<t|d|jd<dS)NZtixDirSelectBoxrcdirlistdircbx)rbr< _dummyDirListrj_dummyFileComboBoxrrrrr<zDirSelectBox.__init__Nr5r6r7r8r<rrrrrs rc@,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) NZtixExFileSelectBoxrccancelokhiddentypesrrfilefilelist)rbr<rrj_dummyCheckbutton_dummyComboBoxrrrrrrr<szExFileSelectBox.__init__cCrNfilterrPrBrrrrrNzExFileSelectBox.filtercCrrrPrBrrrrrNzExFileSelectBox.invokeN)r5r6r7r8r<rrrrrrrs   rc@r) 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 DirSelectDialogcK*t||ddg||t|d|jd<dS)NZtixDirSelectDialogrcZdirbox)rbr<_dummyDirSelectBoxrjrrrrr< zDirSelectDialog.__init__cCrNpopuprPrBrrrrrNzDirSelectDialog.popupcCrNpopdownrPrBrrrrrNzDirSelectDialog.popdownNr5r6r7r8r<rrrrrrrs   rc@r) ExFileSelectDialogzExFileSelectDialog - MS Windows style file select dialog. It provides a convenient method for the user to select files. Subwidgets Class ---------- ----- fsbox ExFileSelectBoxcKr)NZtixExFileSelectDialogrcfsbox)rbr<_dummyExFileSelectBoxrjrrrrr<rzExFileSelectDialog.__init__cCrrrPrBrrrrrNzExFileSelectDialog.popupcCrrrPrBrrrr rNzExFileSelectDialog.popdownNrrrrrrs   rc@r) 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)NZtixFileSelectBoxrcrrr selection)rbr<rrjrrrrrr<rzFileSelectBox.__init__cCrrrPrBrrr apply_filter#rNzFileSelectBox.apply_filtercCrrrPrBrrrr&rNzFileSelectBox.invokeN)r5r6r7r8r<r rrrrrr s   r c@r) FileSelectDialogzFileSelectDialog - Motif style file select dialog. Subwidgets Class ---------- ----- btns StdButtonBox fsbox FileSelectBoxcKr)NZtixFileSelectDialogrcZbtnsr)rbr<_dummyStdButtonBoxrj_dummyFileSelectBoxrrrrr<3s zFileSelectDialog.__init__cCrrrPrBrrrr9rNzFileSelectDialog.popupcCrrrPrBrrrr<rNzFileSelectDialog.popdownNrrrrrr *s   r c@r) 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 EntrycK<t||dddg||t|d|jd<t|d|jd<dS)NZ tixFileEntryZ dialogtypercZbuttonr)rbr<rrjrrrrrr<K  zFileEntry.__init__cCrrrPrBrrrrQrNzFileEntry.invokecCsdSr4rrBrrr file_dialogTszFileEntry.file_dialogN)r5r6r7r8r<rrrrrrr?s   rc@seZdZdZdifddZifddZdifddZd d Zd d ZdlddZ ddZ ddZ ddZ ddZ ddZddZddZddZifd d!Zifd"d#Zd$d%Zd&d'ZeZd(d)Zd*d+Zd,d-Zifd.d/Zifd0d1Zd2d3Zd4d5Zd6d7Zd8d9Zd:d;Z dd?Z"d@dAZ#dBdCZ$dDdEZ%dFdGZ&dHdIZ'dJdKZ(dLdMZ)dNdOZ*dPdQZ+dRdSZ,ifdTdUZ-ifdVdWZ.dXdYZ/dZd[Z0d\d]Z1ifd^d_Z2d`daZ3dbdcZ4ifdddeZ5dfdgZ6dmdhdiZ7djdkZ8dS)nHListaHList - 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 - NoneNcKr)NZtixHListcolumnsrcrrrrrr<`rzHList.__init__cKs"|jj|jd|g|||RSNrrFrrr)r*rrrrds"z HList.addcKs.|durd}|jj|jd|g|||RS)Nr@ZaddchildrF)rrr)r*rrr add_childgs zHList.add_childcC|j|jdd|dSNanchorsetrPrrrrr anchor_setmrzHList.anchor_setcC|j|jdddSNrclearrPrBrrr anchor_clearprSzHList.anchor_clearrcCs2|s |j|jdd||S|j|jdd|d|S)Nr widthz-charrP)rcolr#charsrrr column_widthss zHList.column_widthcCr)NrallrPrBrrr delete_allzrSzHList.delete_allcCr)NrrrPrrrr delete_entry}rzHList.delete_entrycCr)NrZ offspringsrPrrrrdelete_offspringsrzHList.delete_offspringscCr)NrZsiblingsrPrrrrdelete_siblingsrzHList.delete_siblingscCrNdragsiterrPrrrr dragsite_setrzHList.dragsite_setcCrNr-r!rPrBrrrdragsite_clearrSzHList.dragsite_clearcCrNdropsiterrPrrrr dropsite_setrzHList.dropsite_setcCrNr2r!rPrBrrrdropsite_clearrSzHList.dropsite_clearcK(|jj|jdd|g|||RdS)Nheaderr~rFrr$r)r*rrr header_create(zHList.header_createcKB|dur ||jdd|S|jj|jdd|g|||RdS)Nr7r"r$rGrrr'r8rrrheader_configures   zHList.header_configurecC|j|jdd||S)Nr7rrP)rr$optrrr header_cgetrSzHList.header_cgetcCs|j|j|jdd|S)Nr7Zexist)rZ getbooleanrrGrr$rrr header_existsszHList.header_existscCr)Nr7rrPrArrr header_deleterzHList.header_deletecC|j|jdd|S)Nr7sizerPrArrr header_sizerNzHList.header_sizecCr)NhiderrPrrrr hide_entryrzHList.hide_entrycKr6)N indicatorr~rFrrrrindicator_creates    zHList.indicator_createcKr;)NrIr"r<rrrrindicator_configures    zHList.indicator_configurecCr>)NrIrrPrrr?rrrindicator_cgetrSzHList.indicator_cgetcCrD)NrIexistsrPrrrrindicator_existsrNzHList.indicator_existscCr)NrIrrPrrrrindicator_deleterzHList.indicator_deletecCrD)NrIrErPrrrrindicator_sizerNzHList.indicator_sizecC|j|jddSNrYrrPrBrrr info_anchorrQzHList.info_anchorcCs||j|jdd|pdSNrYZbbox)_getintsrrrGrrrr info_bboxs zHList.info_bboxcCs |j|jdd|}|j|S)NrYrrrrGrU)rrrrrr info_childrens zHList.info_childrencCrD)NrYdatarPrrrr info_datarNzHList.info_datacCrR)NrYr-rPrBrrr info_dragsiterQzHList.info_dragsitecCrR)NrYr2rPrBrrr info_dropsiterQzHList.info_dropsitecCrD)NrYrNrPrrrr info_existsrNzHList.info_existscCrD)NrYrrPrrrr info_hiddenrNzHList.info_hiddencCrD)NrYnextrPrrrr info_nextrNzHList.info_nextcCrD)NrYrrPrrrr info_parentrNzHList.info_parentcCrD)NrYprevrPrrrr info_prevrNzHList.info_prevcC|j|jdd}|j|SNrYr rXrrrrinfo_selection zHList.info_selectioncCs|j|jdd|||S)NitemrrP)rrr$r?rrr item_cgetrzHList.item_cgetcKsF|dur||jdd||S|jj|jdd||g|||RdS)Nrir"r<rrr$r)r*rrritem_configures   zHList.item_configurecKs*|jj|jdd||g|||RdS)Nrir~rFrkrrr item_creates    zHList.item_createcCr>)NrirNrPrrr$rrr item_existsrSzHList.item_existscC|j|jdd||dS)NrirrPrnrrr item_deletezHList.item_deletecC|j|jd||S)N entrycgetrPrLrrrrtrNzHList.entrycgetcK>|dur ||jd|S|jj|jd|g|||RdSNentryconfigurer<rrrrrws   zHList.entryconfigurecC|j|jd|SNnearestrP)rrWrrrrzrQz HList.nearestcCrNseerPrrrrr| rSz HList.seecK&|jj|jddg|||RdSNr r!rFr(rrrselection_clear&zHList.selection_clearcCrDNr ZincludesrPrrrrselection_includesrNzHList.selection_includescCrpNr rrPrfirstZlastrrr selection_setrrzHList.selection_setcCrD)NshowrrPrrrr show_entryrNzHList.show_entry)rNNr4)9r5r6r7r8r<rrrr"r&r(r)r*r+r.r0r3r5r9r=r@rBZ header_existrCrFrHrJrKrMrOrPrQrTrWrYr[r\r]r^r_rarbrdrgrjrlrmrorqrtrwrzr|rrrrrrrrrXsn             rc@eZdZdZdifddZdS) InputOnlyz?InputOnly - Invisible widget. Unix only. Subwidgets - NoneNcKst||dd||dS)NZ tixInputOnlyrrrrrr<rzInputOnly.__init__rrrrrrrc@r) 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 EntryNcKr)NZ tixLabelEntry labelsidercrr)rbr<rrjrrrrrr<,rzLabelEntry.__init__rrrrrr"s rc@r) 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 FrameNcKr)NZ tixLabelFramerrcrframe)rbr<rrj _dummyFramerrrrr<=rzLabelFrame.__init__rrrrrr2s rc@s@eZdZdZifddZifddZddZdd Zd d Zd 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)NZtixListNoteBookrcZpanerrrZshlist)rbr<_dummyPanedWindowrjr_dummyScrolledHListrrrrr<Ls  zListNoteBook.__init__cK<|jj|jd|g|||Rt|||j|<|j|SrrrrGr'rrjrr.r)r*rrrrT" zListNoteBook.addcC ||Sr4rxr-rrrpageY zListNoteBook.pagecC:|j|j|jd}g}|D] }|||q|SNpagesrrUrrGrdrxrrzZretrVrrrr\ zListNoteBook.pagescCrNraiserPr-rrr raise_pagedrSzListNoteBook.raise_pageN) r5r6r7r8r<rrrrrrrrrDs   rc@r)MeterzuThe Meter widget can be used to show the progress of a background job which may take a long time to execute. NcKt||ddg||dS)NZtixMeterrcrrrrrr<ls zMeter.__init__rrrrrrgrrc@sReZdZdZdifddZifddZddZd d Zd d Zd dZ ddZ dS)NoteBookzNoteBook - Multi-page container widget (tabbed notebook metaphor). Subwidgets Class ---------- ----- nbframe NoteBookFrame page widgets added dynamically with the add methodNcKs.t||ddg||t|ddd|jd<dS)NZ tixNoteBookrcZnbframerr)rbr<rrjrrrrr<xszNoteBook.__init__cKrrrrrrrr}rz NoteBook.addcC,|j|jd||j||j|=dSrrrrGrjrAr-rrrr zNoteBook.deletecCrr4rr-rrrrrz NoteBook.pagecCrrrrrrrrrzNoteBook.pagescCrrrPr-rrrrrSzNoteBook.raise_pagecCs|j|jdS)NraisedrPrBrrrrszNoteBook.raised) r5r6r7r8r<rrrrrrrrrrrps  rc@s eZdZdS) NoteBookFrameN)r5r6r7rrrrrsrc@sLeZdZdZifddZifddZifddZdd Zd d Zd d Z dS) OptionMenuzOptionMenu - creates a menu button of options. Subwidget Class --------- ----- menubutton Menubutton menu MenucKr)NZ tixOptionMenurc menubuttonmenurbr<_dummyMenubuttonrj _dummyMenurrrrr<rzOptionMenu.__init__cKr6)NrcommandrFrrrr add_commandr:zOptionMenu.add_commandcKr6)NrZ separatorrFrrrr add_separatorr:zOptionMenu.add_separatorcCrrrPr-rrrrrSzOptionMenu.deletecCr)NdisablerPr-rrrrrSzOptionMenu.disablecCr)NenablerPr-rrrrrSzOptionMenu.enableN) r5r6r7r8r<rrrrrrrrrrs    rc@sTeZdZdZifddZifddZddZdd Zd d Zifd 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 ---------- ----- g/p widgets added dynamically with the add method.cKr)NZtixPanedWindowrrcrrrrrr<rzPanedWindow.__init__cKs@|jj|jd|g|||Rt||dd|j|<|j|S)Nrr)rrrrrrrs " zPanedWindow.addcCrrrr-rrrrrzPanedWindow.deletecCr)NrRrPr-rrrrRrSzPanedWindow.forgetcCrs)NpanecgetrPrLrrrrrNzPanedWindow.panecgetcKru)N paneconfigurer<rrrrrs&zPanedWindow.paneconfigurecs*jjjd}fdd|DS)NpanescrZrrr\rBrrr^r_z%PanedWindow.panes..ra)rrzrrBrrszPanedWindow.panesN) r5r6r7r8r<rrrRrrrrrrrrs   rc@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 MenucKr)NZ tixPopupMenurcrrrrrrrr<rzPopupMenu.__init__cCr)NrrPrrrrrrzPopupMenu.bind_widgetcCrrrPrrrrrrzPopupMenu.unbind_widgetcCs|j|jd|j||dS)NZpostrP)rrrVrWrrr post_widgetrzPopupMenu.post_widgetN)r5r6r7r8r<rrrrrrrrs   rc@s<eZdZdZifddZddZddZdd Zd d Zd S) ResizeHandlez;Internal widget to draw resize handles on Scrolled widgets.cKs gd}t||d|||dS)N) rcrZcursorfgZcursorbgZ handlesizeZ hintcolorZ hintwidthrVrWZtixResizeHandler)rrkr)r*flagsrrrr<s zResizeHandle.__init__cCr)NZ attachwidgetrPrrrr attach_widgetrzResizeHandle.attach_widgetcCr)NZ detachwidgetrPrrrr detach_widget rzResizeHandle.detach_widgetcCr)NrGrPrrrrrG rzResizeHandle.hidecCr)NrrPrrrrrrzResizeHandle.showN) r5r6r7r8r<rrrGrrrrrrs   rc@r) ScrolledHListz0ScrolledHList - HList with automatic scrollbars.cKr)NZtixScrolledHListrcrrrrrrrrr< zScrolledHList.__init__Nrrrrrrrc@r)ScrolledListBoxz4ScrolledListBox - Listbox with automatic scrollbars.cKr)NZtixScrolledListBoxrclistboxrr)rbr< _dummyListboxrjrrrrrr<"rzScrolledListBox.__init__Nrrrrrrrrc@r) ScrolledTextz.ScrolledText - Text with automatic scrollbars.cKr)NZtixScrolledTextrcrrr)rbr< _dummyTextrjrrrrrr<,rzScrolledText.__init__Nrrrrrr(rrc@r) ScrolledTListz0ScrolledTList - TList with automatic scrollbars.cKr)NZtixScrolledTListrcZtlistrr)rbr< _dummyTListrjrrrrrr<6rzScrolledTList.__init__Nrrrrrr2rrc@r)ScrolledWindowz2ScrolledWindow - Window with automatic scrollbars.cKr)NZtixScrolledWindowrcrrr)rbr<rrjrrrrrr<ArzScrolledWindow.__init__Nrrrrrr=rrc@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.cKs,t||dgd||t|d|jd<dS)NZ tixSelect)Z allowzeroradiorrrcrrrrrrr<Ns zSelect.__init__cKrrrrrrrrUrz Select.addcCrrrPr-rrrrZrSz Select.invokeNrrrrrrGs    rc@r)Shellz'Toplevel window. Subwidgets - NoneNcKr)NZtixShellrctitlerrrrrr<brzShell.__init__rrrrrr]rrc@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 - NoneNcKst||dgd||dS)NZtixDialogShell)rcrZmappedZ minheightZminwidthrZ transientrrrrrr<ns zDialogShell.__init__cCrrrPrBrrrrurNzDialogShell.popdowncCrrrPrBrrrrxrNzDialogShell.popupcCr)NcenterrPrBrrrr{rNzDialogShell.center)r5r6r7r8r<rrrrrrrres  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)NZtixStdButtonBoxrrcrapplyrhelp)rbr<rrjrrrrr<s  zStdButtonBox.__init__cCrrrr-rrrrrzStdButtonBox.invoke)r5r6r7r8r<rrrrrr~s rc@seZdZdZdifddZddZddZd d Zd d Zd3d dZ ddZ ddZ ddZ ddZ ifddZddZddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,Zifd-d.Zd/d0Zd3d1d2ZdS)4TListaTList - 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 - NoneNcKr)NZtixTListrcrrrrrr<rrzTList.__init__cCr)NactiverrPrrrr active_setrzTList.active_setcCr)Nrr!rPrBrrr active_clearrSzTList.active_clearcCrrrPrrrrrrzTList.anchor_setcCrr rPrBrrrr"rSzTList.anchor_clearcCrrrPrfrom_torrrrrz TList.deletecCrr,rPrrrrr.rzTList.dragsite_setcCrr/rPrBrrrr0rSzTList.dragsite_clearcCrr1rPrrrrr3rzTList.dropsite_setcCrr4rPrBrrrr5rSzTList.dropsite_clearcKs&|jj|jd|g|||RdSrrF)rrr)r*rrrrrz TList.insertcCrR)NrYrrPrBrrr info_activerQzTList.info_activecCrRrSrPrBrrrrTrQzTList.info_anchorcCrD)NrYZdownrPrrrr info_downrNzTList.info_downcCrD)NrYleftrPrrrr info_leftrNzTList.info_leftcCrD)NrYrightrPrrrr info_rightrNzTList.info_rightcCrerfrXrrrrrgrhzTList.info_selectioncCrR)NrYrErPrBrrr info_sizerQzTList.info_sizecCrD)NrYZuprPrrrrinfo_uprNz TList.info_upcCrsryrPrrVrWrrrrzrNz TList.nearestcCrr{rPrrrrr|rSz TList.seecKr}r~rFr(rrrrrzTList.selection_clearcCrDrrPrrrrrrNzTList.selection_includescCrprrPrrrrrrrzTList.selection_setr4)r5r6r7r8r<rrrr"rr.r0r3r5rrrTrrrrgrrrzr|rrrrrrrrs4    rc@sHeZdZdZdifddZddZddZd d Zd d 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.NcKr)NZtixTreercrrrrrrrrr<s z Tree.__init__cC|j|jddSa This 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. autosetmodeNrPrBrrrrzTree.autosetmodecC|j|jd|dSz8Close the entry given by entryPath if its mode is close.closeNrPr entrypathrrrrrqz Tree.closecCrxz9Returns the current mode of the entry given by entryPath.getmoderPrrrrrz Tree.getmodecCrz6Open the entry given by entryPath if its mode is open.openNrPrrrrrrqz Tree.opennonecC|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.setmodeNrPrrmoderrrrs z Tree.setmode)r) r5r6r7r8r<rrrrrrrrrrsrc@sZeZdZdZdifddZddZddZd d Zd d ZdddZ ddZ dddZ dS) 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 tixCheckListrcrrrrrrrrrr<s  zCheckList.__init__cCrrrPrBrrrrrzCheckList.autosetmodecCrrrPrrrrr#rqzCheckList.closecCrxrrPrrrrr'rzCheckList.getmodecCrrrPrrrrr+rqzCheckList.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 getselectionra)rrrrrr/zCheckList.getselectioncCrx)z(Returns the current status of entryPath. getstatusrPrrrrr5rzCheckList.getstatuscCr)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. setstatusNrPrrrrr9zCheckList.setstatus)r) r5r6r7r8r<rrrrrrrrrrrrs rc@eZdZdddZdS)rrrcCt||||dSr4rr<rrkr.rrrrr<ErNz_dummyButton.__init__Nrrr5r6r7r<rrrrrDrc@r)rrrcCrr4rrrrrr<IrNz_dummyCheckbutton.__init__NrrrrrrrHrrc@r)rrrcCrr4rrrrrr<MrNz_dummyEntry.__init__NrrrrrrrLrrc@r)rrrcCrr4rrrrrr<QrNz_dummyFrame.__init__NrrrrrrrPrrc@r)rrrcCrr4rrrrrr<UrNz_dummyLabel.__init__NrrrrrrrTrrc@r)rrrcCrr4rrrrrr<YrNz_dummyListbox.__init__NrrrrrrrXrrc@r)rrrcCrr4rrrrrr<]rNz_dummyMenu.__init__Nrrrrrrr\rrc@r)rrrcCrr4rrrrrr<arNz_dummyMenubutton.__init__Nrrrrrrr`rrc@r)rrrcCrr4rrrrrr<erNz_dummyScrollbar.__init__Nrrrrrrrdrrc@r)rrrcCrr4rrrrrr<irNz_dummyText.__init__Nrrrrrrrhrrc@r)rrrcCDt||||t|d|jd<t|d|jd<t|d|jd<dS)Nrrr)rr<rrjrrrrrr<mz_dummyScrolledListBox.__init__Nrrrrrrrlrrc@r)rrrcCrr4rrrrrr<trNz_dummyHList.__init__Nrrrrrrrsrrc@r)rrrcCrNrrrrr<rrjrrrrrr<xr z_dummyScrolledHList.__init__Nrrrrrrrwrrc@r)rrrcCrr4rrrrrr<rNz_dummyTList.__init__Nrrrrrrr~rrc@r)rrrcCst|||d|gt|d|jd<t|d|jd<t|d|jd<t|d|jd<zt|d|jd<t|d|jd<WdStyGYdSw)Nrrrrrrr)rr<rrjrrrrrrrrr<s  z_dummyComboBox.__init__Nrrrrrrrrrc@r)rrrcCrr r rrrrr<r z_dummyDirList.__init__Nrrrrrrrrrc@r)rrrcCs4t||||t|d|jd<t|d|jd<dS)Nrr)rr<rrjrrrrrr<sz_dummyDirSelectBox.__init__Nrrrrrrrrrc@r)r rrcCst||||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)rr<rrjrrrrrrrr<sz_dummyExFileSelectBox.__init__Nrrrrrrr rr c@r)rrrcCsTt||||t|d|jd<t|d|jd<t|d|jd<t|d|jd<dS)Nrrrr )rr<rrjrrrrrr< z_dummyFileSelectBox.__init__Nrrrrrrrrrc@r)rrrcCs$t||||t|d|jd<dS)Nr)rr<rrjrrrrr<sz_dummyFileComboBox.__init__Nrrrrrrrrrc@r)rrrcCsTt||||t|d|jd<t|d|jd<t|d|jd<t|d|jd<dS)Nrrrr)rr<rrjrrrrr<r z_dummyStdButtonBox.__init__Nrrrrrrrrrc@r)_dummyNoteBookFramercCrr4rrrrrr<rNz_dummyNoteBookFrame.__init__N)rrrrrrr rr c@r)rrrcCrr4rrrrrr<rNz_dummyPanedWindow.__init__NrrrrrrrrrcCs|jd|jS)zzReturns the qualified path name for the widget. Normally used to set default options for subwidgets. See tixwidgets.pyZ tixOptionNamerP)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)r5r6r7r8rrrrrsrc@seZdZdZdifddZddZddZd d Zd)d d Zd)d dZ ddZ ddZ ddZ 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 - NoneNcK"g}||_t||d|||dS)NZtixGridr)rbr<rrrrr<z Grid.__init__cC|j|dddS)zRemoves the selection anchor.rr!NrrBrrrr"zGrid.anchor_clearcCs||j|ddS)z3Get the (x,y) coordinate of the current anchor cellrr1rVrrrBrrr anchor_get rqzGrid.anchor_getcC|j|dd||dS)z/Set the selection anchor to the cell at (x, y).rrNrrrrrrzGrid.anchor_setcC6|dur|j|dd|dS|j|dd||dS)zdDelete rows between from_ and to inclusive. If to is not provided, delete only row at from_Nrrrrrrr delete_rowzGrid.delete_rowcCr)zjDelete columns between from_ and to inclusive. If to is not provided, delete only column at from_Nrr rrrrr delete_columnr!zGrid.delete_columncCr)zUIf any cell is being edited, de-highlight the cell and applies the changes.editrNrrBrrr edit_apply#szGrid.edit_applycCr)zmHighlights the cell at (x, y) for editing, if the -editnotify command returns True for this cell.r#rNrrrrredit_set(rz Grid.edit_setcCs,|r |ddkr d|}|j|d|||S)z&Get the option value for cell at (x,y)rr#rtr)rrVrWr rrrrt-szGrid.entrycgetcKs|d||f||Srv)Z _configure)rrVrWr)r*rrrrw3rNzGrid.entryconfigurec Cs||j|dd||S)z+Return True if display item exists at (x,y)rYrN)Z _getbooleanrrrrrrr^9szGrid.info_existscCs|j|dd||SrUrrrrrrW=rzGrid.info_bboxcC|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 Nrrrroffsetrrr move_columnArzGrid.move_columncCr&)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.r'rNrr(rrrmove_rowGrz Grid.move_rowcCs||j|d||S)z8Return coordinate of cell nearest pixel coordinate (x,y)rzrrrrrrzMrz Grid.nearestcKs@||j|}|durd|f|}|jj|d||g|RdS)Nz -itemtyper)r'r)rr)rrVrWrr*argsrrrrWs zGrid.setcKs,|j|jj|jdd|g|i|RS)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.rEr )rrUrrGr'rrr*rrr size_column]s  zGrid.size_columncKs*|j|jj|dd|g|i|RS)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.rEr)rrUrr'r-rrrsize_rowws   z Grid.size_rowcCr)z7Clears the cell at (x, y) by removing its display item.unsetNrPrrrrr0rz Grid.unsetr4)r5r6r7r8r<r"rrr r"r$r%rtrwr^rWr*r+rzrr.r/r0rrrrrs*      rc@r) ScrolledGridzScrolled Grid widgetsNcKr)NZtixScrolledGridrrrrrr<rzScrolledGrid.__init__rrrrrr1sr1)wr=warningsr;rwarnDeprecationWarningZWINDOWZTEXTZSTATUSZ IMMEDIATEZIMAGEZ IMAGETEXTZBALLOONZAUTOZ ACROSSTOPASCIIZCELLZCOLUMNZ DECREASINGZ INCREASINGZINTEGERZMAINMAXZREALZROWZS_REGIONZX_REGIONZY_REGIONZ TCL_DONT_WAITZTCL_WINDOW_EVENTSZTCL_FILE_EVENTSZTCL_TIMER_EVENTSZTCL_IDLE_EVENTSZTCL_ALL_EVENTSrr9rDri __bases__rbrrrrrrrrrrrrr r rZXViewZYViewrrrrrrrrrrrrrrrrrrrrrrrrZButtonrZ CheckbuttonrZEntryrZFramerZLabelrZListboxrZMenurZ MenubuttonrZ ScrollbarrZTextrrrrrrrrr rrrr rrrrrr1rrrrs - 8/,!"C# ()     S.6    *