C[c@s~ddlTddlmZmZmZedkr>ednddlZdZdZdZ d Z d Z d Z d Z d ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d!Z"ddlZddl#Z#d"dd#YZ$d$ej%e$fd%YZ%d&dd'YZ&ej'j(e&fej'_(d(ej'fd)YZ)d*e)fd+YZ*d,dd-YZ+d.e)fd/YZ,d0e)fd1YZ-d2e)fd3YZ.d4e)fd5YZ/d6e)fd7YZ0d8e)fd9YZ1d:e)fd;YZ2d<e)fd=YZ3d>e)fd?YZ4d@e)fdAYZ5dBe)fdCYZ6dDe)fdEYZ7dFe)fdGYZ8dHe)e9e:fdIYZ;dJe)fdKYZ<dLe)fdMYZ=dNe)fdOYZ>dPe)fdQYZ?dRe)fdSYZ@dTe)fdUYZAdVe)fdWYZBdXe)fdYYZCdZe)fd[YZDd\e)fd]YZEd^e)fd_YZFd`e)fdaYZGdbe)fdcYZHdde)fdeYZIdfe)fdgYZJdhe)fdiYZKdje)fdkYZLdle)fdmYZMdne)fdoYZNdpe)fdqYZOdre)e9e:fdsYZPdte)fduYZQdve)fdwYZRdxeSe*fdyYZTdzeUe*fd{YZVd|eWe*fd}YZXd~eYe*fdYZZde[e*fdYZ\de]e*fdYZ^de_e*fdYZ`deae*fdYZbdece*fdYZddeee*fdYZfdeHe*fdYZgde;e*fdYZhdeGe*fdYZidePe*fdYZjde.e*fdYZkde0e*fdYZlde2e*fdYZmde3e*fdYZnde6e*fdYZode.e*fdYZpdeOe*fdYZqdeBe*fdYZrdeDe*fdYZsdZtdZude)fdYZvde)e9e:fdYZwdewfdYZxdS(i(t*(t_flattent _cnfmerget _default_rootgˡE@s0This version of Tix.py requires Tk 4.0 or higherNtwindowttexttstatust immediatetimaget imagetexttballoontautot acrosstoptasciitcelltcolumnt decreasingt increasingtintegertmaintmaxtrealtrowss-regionsx-regionsy-regioniiiiiit tixCommandcBs_eZdZdZdZd dZd dZdZdZ dZ d dZ RS( sThe tix commands provide access to miscellaneous elements of Tix's internal state and the Tix application context. Most of the information manipulated by these commands pertains to the application as a whole, or to a screen or display, rather than to a particular window. This is a mixin class, assumed to be mixed to Tkinter.Tk that supports the self.tk.call method. cCs|jjdd|S(sTix 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. ttixt addbitmapdir(ttktcall(tselft directory((s /usr/lib/python2.7/lib-tk/Tix.pyttix_addbitmapdirYs cCs|jjdd|S(sReturns the current value of the configuration option given by option. Option may be any of the options described in the CONFIGURATION OPTIONS section. Rtcget(RR(Rtoption((s /usr/lib/python2.7/lib-tk/Tix.pyttix_cgetescKs|rt||f}n|r0t|}n|dkrL|jddSt|trr|jddd|S|jjd|j|S(sQuery 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. Rt configuret-N(stixR"( RtNonet _getconfiguret isinstancet StringTypet_getconfigure1RRt_options(Rtcnftkw((s /usr/lib/python2.7/lib-tk/Tix.pyt tix_configurels  cCs9|dk r"|jjdd|S|jjddSdS(sReturns 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. Rt filedialogN(R$RR(Rtdlgclass((s /usr/lib/python2.7/lib-tk/Tix.pyttix_filedialogs cCs|jjdd|S(sLocates 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. Rt getbitmap(RR(Rtname((s /usr/lib/python2.7/lib-tk/Tix.pyt tix_getbitmaps cCs|jjdd|S(sLocates 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. Rtgetimage(RR(RR1((s /usr/lib/python2.7/lib-tk/Tix.pyt tix_getimages cCs|jjddd|S(s@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 tget(RR(RR1((s /usr/lib/python2.7/lib-tk/Tix.pyttix_option_getscCsE|dk r(|jjdd|||S|jjdd||SdS(sResets 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. Rt resetoptionsN(R$RR(Rt newSchemet newFontSett newScmPrio((s /usr/lib/python2.7/lib-tk/Tix.pyttix_resetoptionss N( t__name__t __module__t__doc__RR!R$R,R/R2R4R6R;(((s /usr/lib/python2.7/lib-tk/Tix.pyRNs      tTkcBs)eZdZddddZdZRS(s{Toplevel widget of Tix which represents mostly the main window of an application. It has an associated Tcl interpreter.tTixcCstjj||||tjjd}|jjd|dk rr|jjd||jjd|n|jjddS(Nt TIX_LIBRARYs<global auto_path; lappend auto_path [file dir [info nameof]]s(global auto_path; lappend auto_path {%s}s,global tcl_pkgPath; lappend tcl_pkgPath {%s}spackage require Tix( tTkinterR?t__init__tostenvironR5RtevalR$(Rt screenNametbaseNamet classNamettixlib((s /usr/lib/python2.7/lib-tk/Tix.pyRCs cCs$|jddtjj|dS(NtWM_DELETE_WINDOWt(tprotocolRBR?tdestroy(R((s /usr/lib/python2.7/lib-tk/Tix.pyRNsN(R<R=R>R$RCRN(((s /usr/lib/python2.7/lib-tk/Tix.pyR?stFormcBs_eZdZidZeZdZdZdZdddZd dZ dZ RS( sThe Tix Form geometry manager Widgets can be arranged by specifying attachments to other widgets. See Tix documentation for complete detailscKs)|jjd|j|j||dS(NttixForm(RRt_wR)(RR*R+((s /usr/lib/python2.7/lib-tk/Tix.pytconfigscCstj|i||6dS(N(ROtform(Rtkeytvalue((s /usr/lib/python2.7/lib-tk/Tix.pyt __setitem__scCs|jjdd|jS(NRPtcheck(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyRWscCs|jjdd|jdS(NRPtforget(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyRXsicCs| ro| ro|jjdd|j}|jj|}d}x'|D]}||jj|f}qHW|S|jjdd|j||S(NRPtgrid((RRRQt splitlisttgetint(Rtxsizetysizetxtytz((s /usr/lib/python2.7/lib-tk/Tix.pyRYs cCsX|s|jjdd|jS|ddkr<d|}n|jjdd|j|S(NRPtinfoiR#(RRRQ(RR ((s /usr/lib/python2.7/lib-tk/Tix.pyRas  cCs1t|j|jj|jjdd|jS(NRPtslaves(tmapt _nametowidgetRRZRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyRb s   N( R<R=R>RRRSRVRWRXRYR$RaRb(((s /usr/lib/python2.7/lib-tk/Tix.pyROs     t TixWidgetcBs}eZdZd d d iidZdZdZdZdZdZ dZ dZ id d Z d Z RS( sQA 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. c Cs|rt||f}n t|}d}|rC|jdn dg}xE|jD]6\}}||krZ|d||f}||=qZqZW||_tj||||r|jj||j|n|rtj ||ni|_ dS(NtoptionsR#(( Rtappendtitemst widgetNametWidgett_setupRRRQRRtsubwidget_list( RtmasterRitstatic_optionsR*R+textratktv((s /usr/lib/python2.7/lib-tk/Tix.pyRC!s$    cCs'||jkr|j|St|dS(N(RltAttributeError(RR1((s /usr/lib/python2.7/lib-tk/Tix.pyt __getattr__Ns cCs|jjd|j|dS(s1Set a variable without calling its action routinet tixSetSilentN(RRRQ(RRU((s /usr/lib/python2.7/lib-tk/Tix.pyt set_silentSscCsT|j|}|s0td|d|jn|t|jd}|j|S(sSReturn the named subwidget (which must have been created by the sub-class).s Subwidget s not child of i(t_subwidget_nametTclErrort_nametlenRQRd(RR1tn((s /usr/lib/python2.7/lib-tk/Tix.pyt subwidgetWs cCsl|j}|sgSg}xI|D]A}|t|jd}y|j|j|Wq#q#Xq#W|S(sReturn all subwidgets.i(t_subwidget_namesRyRQRgRd(RtnamestretlistR1((s /usr/lib/python2.7/lib-tk/Tix.pytsubwidgets_allas  cCs6y|jj|jd|SWntk r1dSXdS(s7Get a subwidget name (returns a String, not a Widget !)R{N(RRRQRwR$(RR1((s /usr/lib/python2.7/lib-tk/Tix.pyRvps cCsHy/|jj|jdd}|jj|SWntk rCdSXdS(s"Return the name of all subwidgets.t subwidgetss-allN(RRRQRZRwR$(RR^((s /usr/lib/python2.7/lib-tk/Tix.pyR|ws  cCs|dkrdSt|ts.t|}nt|tsLt|}n|j}x+|D]#}|jj|dd||q_WdS(s8Set configuration options for all subwidgets (and self).RLNR"R#(R&R'treprR|RR(RR RUR}R1((s /usr/lib/python2.7/lib-tk/Tix.pyt config_alls   cKs|s$tj}|s$tdq$n|rE|rEt||f}n|rT|}nd}xO|jD]A\}}t|dr|j|}n|d||f}qgW|jjdd|f|S(NsToo early to create imaget__call__R#Rtcreate(( RBRt RuntimeErrorRRhthasattrt _registerRR(RtimgtypeR*RmR+RfRpRq((s /usr/lib/python2.7/lib-tk/Tix.pyt image_creates   cCs2y|jjdd|Wntk r-nXdS(NRtdelete(RRRw(Rtimgname((s /usr/lib/python2.7/lib-tk/Tix.pyt image_deletes N(R<R=R>R$RCRsRuR{RRvR|RRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRes ,       t TixSubWidgetcBs&eZdZdddZdZRS(sSubwidget 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)ic CsE|rR|j|}y*|t|jd}|jd}WqRg}qRXn|s{tj||ddi|d6n|}xtt|dD]i}dj||d } y|j | } | }Wqt k rt |||dddd}qXqW|r|d}ntj||ddi|d6||_ dS(Nit.R1tdestroy_physicallyitcheck_intermediatei( RvRyRQtsplitReRCR$trangetjoinRdtKeyErrorRR( RRmR1RRtpathtplisttparenttiRztw((s /usr/lib/python2.7/lib-tk/Tix.pyRCs. #    cCsx!|jjD]}|jqW|j|jjkrL|jj|j=n|j|jjkrt|jj|j=n|jr|jjd|j ndS(NRN( tchildrentvaluesRNRxRmRlRRRRQ(Rtc((s /usr/lib/python2.7/lib-tk/Tix.pyRNs (R<R=R>RCRN(((s /usr/lib/python2.7/lib-tk/Tix.pyRst DisplayStylecBsSeZdZidZdZdZdZdZidZdZ RS(sRDisplayStyle - handle configuration options shared by (multiple) Display ItemscKst}| r&d|kr&|d}n2| rFd|krF|d}n|sXtdn|j|_|jjd||j|||_dS(Nt refwindows1Too early to create display style: no root windowttixDisplayStyle(RRRRR)t stylename(RtitemtypeR*R+Rm((s /usr/lib/python2.7/lib-tk/Tix.pyRCs    cCs|jS(N(R(R((s /usr/lib/python2.7/lib-tk/Tix.pyt__str__scCsk|r!|r!t||f}n|r0|}nd}x.|jD] \}}|d||f}qCW|S(NR#((RRh(RR*R+toptsRpRq((s /usr/lib/python2.7/lib-tk/Tix.pyR)s  cCs|jj|jddS(NR(RRR(R((s /usr/lib/python2.7/lib-tk/Tix.pyRscCs$|jj|jdd||dS(NR"s-%s(RRR(RRTRU((s /usr/lib/python2.7/lib-tk/Tix.pyRVscKs"|j|jd|j||S(NR"(R%RR)(RR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRRscCs|jj|jdd|S(NRs-%s(RRR(RRT((s /usr/lib/python2.7/lib-tk/Tix.pyt __getitem__s( R<R=R>RCRR)RRVRRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRs    tBallooncBs2eZdZdidZidZdZRS(sBalloon help widget. Subwidget Class --------- ----- label Label message MessagecKsmdddddg}tj||d|||t|ddd |jdR$RCRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRs t ButtonBoxcBs2eZdZdidZidZdZRS(sgButtonBox - A container for pushbuttons. Subwidgets are the buttons added with the add method. cKs&tj||dddg||dS(Nt tixButtonBoxt orientationRf(ReRC(RRmR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRC%scKsD|jj|jd||j||}t|||j|<|S(s$Add a button with given name to box.tadd(RRRQR)t _dummyButtonRl(RR1R*R+tbtn((s /usr/lib/python2.7/lib-tk/Tix.pyR)s*cCs/||jkr+|jj|jd|ndS(Ntinvoke(RlRRRQ(RR1((s /usr/lib/python2.7/lib-tk/Tix.pyR0sN(R<R=R>R$RCRR(((s /usr/lib/python2.7/lib-tk/Tix.pyR!s tComboBoxcBsAeZdZdidZdZdZdZdZRS(sComboBox - 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 optioncKstj||dddddg||t|d|jdR$RCRRRR(((s /usr/lib/python2.7/lib-tk/Tix.pyR4s     tControlcBsAeZdZdidZdZdZdZdZRS(sControl - 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 LabelcKs{tj||ddg||t|d|jdR$RCRRRR(((s /usr/lib/python2.7/lib-tk/Tix.pyR`s     tDirListcBs#eZdZidZdZRS(sRDirList - displays a list view of a directory, its previous directories and its sub-directories. The user can choose one of the directories displayed in the list or change to another directory. Subwidget Class --------- ----- hlist HList hsb Scrollbar vsb ScrollbarcKsetj||ddg||t|d|jdRCR(((s /usr/lib/python2.7/lib-tk/Tix.pyRs  tDirTreecBs#eZdZidZdZRS(sDirTree - Directory Listing in a hierarchical view. Displays a tree view of a directory, its previous directories and its sub-directories. The user can choose one of the directories displayed in the list or change to another directory. Subwidget Class --------- ----- hlist HList hsb Scrollbar vsb ScrollbarcKsetj||ddg||t|d|jdRCR(((s /usr/lib/python2.7/lib-tk/Tix.pyRs  t DirSelectBoxcBseZdZidZRS(sDirSelectBox - Motif style file select box. It is generally used for the user to choose a file. FileSelectBox stores the files mostly recently selected into a ComboBox widget so that they can be quickly selected again. Subwidget Class --------- ----- selection ComboBox filter ComboBox dirlist ScrolledListBox filelist ScrolledListBoxcKsOtj||ddg||t|d|jdRC(((s /usr/lib/python2.7/lib-tk/Tix.pyRs tExFileSelectBoxcBs,eZdZidZdZdZRS(sExFileSelectBox - MS Windows style file select box. It provides an 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 ScrolledListBoxcKstj||ddg||t|d|jdRCRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRs  tDirSelectDialogcBs,eZdZidZdZdZRS(s#The DirSelectDialog widget presents the directories in the file system in a dialog window. The user can use this dialog window to navigate through the file system to select the desired directory. Subwidgets Class ---------- ----- dirbox DirSelectDialogcKs9tj||ddg||t|d|jdRCRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRs  tExFileSelectDialogcBs,eZdZidZdZdZRS(sExFileSelectDialog - MS Windows style file select dialog. It provides an convenient method for the user to select files. Subwidgets Class ---------- ----- fsbox ExFileSelectBoxcKs9tj||ddg||t|d|jdRCRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRs  t FileSelectBoxcBs,eZdZidZdZdZRS(sExFileSelectBox - Motif style file select box. It is generally used for the user to choose a file. FileSelectBox stores the files mostly recently selected into a ComboBox widget so that they can be quickly selected again. Subwidget Class --------- ----- selection ComboBox filter ComboBox dirlist ScrolledListBox filelist ScrolledListBoxcKs{tj||ddg||t|d|jdRCRR(((s /usr/lib/python2.7/lib-tk/Tix.pyR s   tFileSelectDialogcBs,eZdZidZdZdZRS(sFileSelectDialog - Motif style file select dialog. Subwidgets Class ---------- ----- btns StdButtonBox fsbox FileSelectBoxcKsOtj||ddg||t|d|jdRCRR(((s /usr/lib/python2.7/lib-tk/Tix.pyR)s  t FileEntrycBs,eZdZidZdZdZRS(s_FileEntry - Entry field with button that invokes a FileSelectDialog. The user can type in the filename manually. Alternatively, the user can press the button widget that sits next to the entry, which will bring up a file selection dialog. Subwidgets Class ---------- ----- button Button entry EntrycKsRtj||dddg||t|d|jdRCRR (((s /usr/lib/python2.7/lib-tk/Tix.pyR>s   tHListcBseZdZd6idZidZd6idZdZdZdd6d6dZ dZ d Z d Z d Z d Zd ZdZdZidZidZdZdZdZdZdZidZidZdZdZdZdZdZdZ d6dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+id*Z,id+Z-d,Z.d-Z/d.Z0id/Z1d0Z2d1Z3id2Z4d3Z5d6d4Z6d5Z7RS(7sHList - 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 - NonecKs&tj||dddg||dS(NttixHListtcolumnsRf(ReRC(RRmR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRC_scKs(|jj|jd||j||S(NR(RRRQR)(RRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRcscKs7|sd}n|jj|jd||j||S(NRLtaddchild(RRRQR)(RRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyt add_childfs  cCs |jj|jdd|dS(Ntanchortset(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt anchor_setlscCs|jj|jdddS(NRtclear(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyt anchor_clearosicCsK|s%|jj|jdd||S|jj|jdd|d|SdS(NRtwidths-char(RRRQ(RtcolRtchars((s /usr/lib/python2.7/lib-tk/Tix.pyt column_widthrscCs|jj|jdddS(NRtall(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyt delete_allyscCs |jj|jdd|dS(NRR(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt delete_entry|scCs |jj|jdd|dS(NRt offsprings(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pytdelete_offspringsscCs |jj|jdd|dS(NRtsiblings(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pytdelete_siblingsscCs |jj|jdd|dS(NtdragsiteR(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt dragsite_setscCs|jj|jdddS(NR R(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pytdragsite_clearscCs |jj|jdd|dS(NtdropsiteR(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt dropsite_setscCs|jj|jdddS(NR#R(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pytdropsite_clearscKs/|jj|jdd||j||dS(NtheaderR(RRRQR)(RRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyt header_createscKsT|dkr%|j|jdd|S|jj|jdd||j||dS(NR&R"(R$R%RQRRR)(RRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pytheader_configures cCs|jj|jdd||S(NR&R(RRRQ(RRtopt((s /usr/lib/python2.7/lib-tk/Tix.pyt header_cgetscCs|jj|jdd|S(NR&texists(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt header_existsscCs |jj|jdd|dS(NR&R(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt header_deletescCs|jj|jdd|S(NR&tsize(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt header_sizescCs |jj|jdd|dS(NthideR(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt hide_entryscKs/|jj|jdd||j||dS(Nt indicatorR(RRRQR)(RRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pytindicator_creates cKsT|dkr%|j|jdd|S|jj|jdd||j||dS(NR2R"(R$R%RQRRR)(RRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pytindicator_configures   cCs|jj|jdd||S(NR2R(RRRQ(RRR)((s /usr/lib/python2.7/lib-tk/Tix.pytindicator_cgetscCs|jj|jdd|S(NR2R+(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pytindicator_existsscCs |jj|jdd|dS(NR2R(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pytindicator_deletescCs|jj|jdd|S(NR2R.(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pytindicator_sizescCs|jj|jddS(NRaR(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyt info_anchorscCs+|j|jj|jdd|p*dS(NRatbbox(t_getintsRRRQR$(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_bboxscCs.|jj|jdd|}|jj|S(NRaR(RRRQRZ(RRR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_childrenscCs|jj|jdd|S(NRatdata(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_datascCs|jj|jddS(NRaR (RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyt info_dragsitescCs|jj|jddS(NRaR#(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyt info_dropsitescCs|jj|jdd|S(NRaR+(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_existsscCs|jj|jdd|S(NRaR(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_hiddenscCs|jj|jdd|S(NRatnext(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_nextscCs|jj|jdd|S(NRaR(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_parentscCs|jj|jdd|S(NRatprev(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_prevscCs+|jj|jdd}|jj|S(NRaR(RRRQRZ(RR((s /usr/lib/python2.7/lib-tk/Tix.pytinfo_selectionscCs"|jj|jdd|||S(NtitemR(RRRQ(RRRR)((s /usr/lib/python2.7/lib-tk/Tix.pyt item_cgetsc KsZ|dkr(|j|jdd||S|jj|jdd|||j||dS(NRJR"(R$R%RQRRR)(RRRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pytitem_configures c Ks2|jj|jdd|||j||dS(NRJR(RRRQR)(RRRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyt item_creates cCs|jj|jdd||S(NRJR+(RRRQ(RRR((s /usr/lib/python2.7/lib-tk/Tix.pyt item_existsscCs#|jj|jdd||dS(NRJR(RRRQ(RRR((s /usr/lib/python2.7/lib-tk/Tix.pyt item_deletescCs|jj|jd||S(Nt entrycget(RRRQ(RRR)((s /usr/lib/python2.7/lib-tk/Tix.pyRPscKsN|dkr"|j|jd|S|jj|jd||j||dS(Ntentryconfigure(R$R%RQRRR)(RRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRQs cCs|jj|jd|S(Ntnearest(RRRQ(RR_((s /usr/lib/python2.7/lib-tk/Tix.pyRRscCs|jj|jd|dS(Ntsee(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyRSscKs,|jj|jdd|j||dS(NRR(RRRQR)(RR*R+((s /usr/lib/python2.7/lib-tk/Tix.pytselection_clear scCs|jj|jdd|S(NRtincludes(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pytselection_includes scCs#|jj|jdd||dS(NRR(RRRQ(Rtfirsttlast((s /usr/lib/python2.7/lib-tk/Tix.pyt selection_setscCs|jj|jdd|S(NtshowR(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt show_entrysN(8R<R=R>R$RCRRRRRRRRRR!R"R$R%R'R(R*R,R-R/R1R3R4R5R6R7R8R9R<R=R?R@RARBRCRERFRHRIRKRLRMRNRORPRQRRRSRTRVRYR[(((s /usr/lib/python2.7/lib-tk/Tix.pyR Wsj                                                t InputOnlycBseZdZdidZRS(s?InputOnly - Invisible widget. Unix only. Subwidgets - NonecKs tj||dd||dS(Nt tixInputOnly(ReRCR$(RRmR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRCsN(R<R=R>R$RC(((s /usr/lib/python2.7/lib-tk/Tix.pyR\st LabelEntrycBseZdZdidZRS(sLabelEntry - Entry field with label. Packages an entry widget and a label into one mega widget. It can beused be used to simplify the creation of ``entry-form'' type of interface. Subwidgets Class ---------- ----- label Label entry EntrycKsRtj||dddg||t|d|jdR$RC(((s /usr/lib/python2.7/lib-tk/Tix.pyR^st LabelFramecBseZdZdidZRS(seLabelFrame - 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 FramecKsRtj||dddg||t|d|jdR$RC(((s /usr/lib/python2.7/lib-tk/Tix.pyRa-s t ListNoteBookcBsAeZdZidZidZdZdZdZRS(sA ListNoteBook widget is very similar to the TixNoteBook widget: it can be used to display many windows in a limited space using a notebook metaphor. The notebook is divided into a stack of pages (windows). At one time only one of these pages can be shown. The user can navigate through these pages by choosing the name of the desired page in the hlist subwidget.cKsktj||ddg||t|ddd|jdRCRRkRlRo(((s /usr/lib/python2.7/lib-tk/Tix.pyRe?s     tMetercBseZdZdidZRS(suThe Meter widget can be used to show the progress of a background job which may take a long time to execute. cKs#tj||ddg||dS(NttixMeterRf(ReRC(RRmR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRCgsN(R<R=R>R$RC(((s /usr/lib/python2.7/lib-tk/Tix.pyRpbstNoteBookcBsVeZdZdidZidZdZdZdZdZ dZ RS( sNoteBook - Multi-page container widget (tabbed notebook metaphor). Subwidgets Class ---------- ----- nbframe NoteBookFrame page widgets added dynamically with the add methodcKs?tj||ddg||t|ddd|jdR$RCRRRkRlRoRu(((s /usr/lib/python2.7/lib-tk/Tix.pyRrks     t NoteBookFramecBseZRS((R<R=(((s /usr/lib/python2.7/lib-tk/Tix.pyRvst OptionMenucBsMeZdZidZidZidZdZdZdZRS(sOptionMenu - creates a menu button of options. Subwidget Class --------- ----- menubutton Menubutton menu MenucKsRtj||dddg||t|d|jdRCR~RRRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRws     t PanedWindowcBsVeZdZidZidZdZdZdZidZdZ RS(sPanedWindow - 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.cKs&tj||dddg||dS(NttixPanedWindowRRf(ReRC(RRmR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRCscKsO|jj|jd||j||t||dd|j|<|j|S(NRRi(RRRQR)RRl(RR1R*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRs( cCs8|jj|jd||j|j|j|=dS(NR(RRRQRlRN(RR1((s /usr/lib/python2.7/lib-tk/Tix.pyRscCs|jj|jd|dS(NRX(RRRQ(RR1((s /usr/lib/python2.7/lib-tk/Tix.pyRXscCs|jj|jd||S(Ntpanecget(RRRQ(RRR)((s /usr/lib/python2.7/lib-tk/Tix.pyRscKsN|dkr"|j|jd|S|jj|jd||j||dS(Nt paneconfigure(R$R%RQRRR)(RRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRs cCsD|jj|jj|jd}g|D]}|j|^q+S(Ntpanes(RRZRRQR{(RR}R^((s /usr/lib/python2.7/lib-tk/Tix.pyRs$( R<R=R>RCRRRXRRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRs       t PopupMenucBs5eZdZidZdZdZdZRS(sPopupMenu widget can be used as a replacement of the tk_popup command. The advantage of the Tix PopupMenu widget is it requires less application code to manipulate. Subwidgets Class ---------- ----- menubutton Menubutton menu MenucKsOtj||ddg||t|d|jdRCRRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRs     t ResizeHandlecBs>eZdZidZdZdZdZdZRS(s;Internal widget to draw resize handles on Scrolled widgets.c KsAddddddddd g }tj||d |||dS( NRfR}tcursorfgtcursorbgt handlesizet hintcolort hintwidthR^R_ttixResizeHandle(ReRC(RRmR*R+tflags((s /usr/lib/python2.7/lib-tk/Tix.pyRCs    cCs |jj|jd|jdS(Nt attachwidget(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt attach_widgetscCs |jj|jd|jdS(Nt detachwidget(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt detach_widgetscCs |jj|jd|jdS(NR0(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyR0 scCs |jj|jd|jdS(NRZ(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyRZ s(R<R=R>RCRRR0RZ(((s /usr/lib/python2.7/lib-tk/Tix.pyRs    t ScrolledHListcBseZdZidZRS(s0ScrolledHList - HList with automatic scrollbars.cKsetj||ddg||t|d|jdRC(((s /usr/lib/python2.7/lib-tk/Tix.pyRstScrolledListBoxcBseZdZidZRS(s4ScrolledListBox - Listbox with automatic scrollbars.cKsetj||ddg||t|d|jdRC(((s /usr/lib/python2.7/lib-tk/Tix.pyRst ScrolledTextcBseZdZidZRS(s.ScrolledText - Text with automatic scrollbars.cKsetj||ddg||t|d|jdRC(((s /usr/lib/python2.7/lib-tk/Tix.pyR$st ScrolledTListcBseZdZidZRS(s0ScrolledTList - TList with automatic scrollbars.cKsetj||ddg||t|d|jdRC(((s /usr/lib/python2.7/lib-tk/Tix.pyR.stScrolledWindowcBseZdZidZRS(s2ScrolledWindow - Window with automatic scrollbars.cKsetj||ddg||t|d|jdRC(((s /usr/lib/python2.7/lib-tk/Tix.pyR9stSelectcBs/eZdZidZidZdZRS(sSelect - Container of button subwidgets. It can be used to provide radio-box or check-box style of selection options for the user. Subwidgets are buttons added dynamically using the add method.c KsEtj||ddddddg||t|d|jdRCRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRCs  tShellcBseZdZdidZRS(s'Toplevel window. Subwidgets - NonecKs&tj||dddg||dS(NttixShellRfttitle(ReRC(RRmR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRC^sN(R<R=R>R$RC(((s /usr/lib/python2.7/lib-tk/Tix.pyRYst DialogShellcBs8eZdZdidZdZdZdZRS(sToplevel 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 - Nonec Ks5tj||ddddddddg||dS( NttixDialogShellRfRtmappedt minheighttminwidthRt transient(ReRC(RRmR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRCjs   cCs|jj|jddS(NR(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyRqscCs|jj|jddS(NR(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyRtscCs|jj|jddS(Ntcenter(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyRwsN(R<R=R>R$RCRRR(((s /usr/lib/python2.7/lib-tk/Tix.pyRas   t StdButtonBoxcBs&eZdZdidZdZRS(s@StdButtonBox - Standard Button Box (OK, Apply, Cancel and Help) cKs~tj||dddg||t|d|jdR$RCR(((s /usr/lib/python2.7/lib-tk/Tix.pyRzstTListcBseZdZdidZdZdZdZdZddZ dZ dZ d Z d Z id Zd Zd ZdZdZdZdZdZdZdZdZidZdZddZRS(sTList - 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 - NonecKs#tj||ddg||dS(NttixTListRf(ReRC(RRmR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRCscCs |jj|jdd|dS(NtactiveR(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt active_setscCs|jj|jdddS(NRR(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyt active_clearscCs |jj|jdd|dS(NRR(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyRscCs|jj|jdddS(NRR(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyRscCs |jj|jd||dS(NR(RRRQ(Rtfrom_tto((s /usr/lib/python2.7/lib-tk/Tix.pyRscCs |jj|jdd|dS(NR R(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyR!scCs|jj|jdddS(NR R(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyR"scCs |jj|jdd|dS(NR#R(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyR$scCs|jj|jdddS(NR#R(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyR%scKs,|jj|jd||j||dS(NR(RRRQR)(RRR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRscCs|jj|jddS(NRaR(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyt info_activescCs|jj|jddS(NRaR(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyR9scCs|jj|jdd|S(NRatdown(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_downscCs|jj|jdd|S(NRatleft(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_leftscCs|jj|jdd|S(NRatright(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyt info_rightscCs+|jj|jdd}|jj|S(NRaR(RRRQRZ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyRIscCs|jj|jddS(NRaR.(RRRQ(R((s /usr/lib/python2.7/lib-tk/Tix.pyt info_sizescCs|jj|jdd|S(NRatup(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pytinfo_upscCs|jj|jd||S(NRR(RRRQ(RR^R_((s /usr/lib/python2.7/lib-tk/Tix.pyRRscCs|jj|jd|dS(NRS(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyRSscKs,|jj|jdd|j||dS(NRR(RRRQR)(RR*R+((s /usr/lib/python2.7/lib-tk/Tix.pyRTscCs|jj|jdd|S(NRRU(RRRQ(RR((s /usr/lib/python2.7/lib-tk/Tix.pyRVscCs#|jj|jdd||dS(NRR(RRRQ(RRWRX((s /usr/lib/python2.7/lib-tk/Tix.pyRYsN(R<R=R>R$RCRRRRRR!R"R$R%RRR9RRRRIRRRRRSRTRVRY(((s /usr/lib/python2.7/lib-tk/Tix.pyRs2                      tTreecBsMeZdZdidZdZdZdZdZddZ RS( sTree - 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.cKsetj||ddg||t|d|jd