/usr/lib64/python2.7/idlelib
NameSizeModeActions
Icons/-0755rm
idle_test/-0755rm
aboutDialog.py70140644editdlrm
aboutDialog.pyc68480644editdlrm
aboutDialog.pyo68480644editdlrm
AutoComplete.py89640644editdlrm
AutoComplete.pyc80120644editdlrm
AutoComplete.pyo80120644editdlrm
AutoCompleteWindow.py173180644editdlrm
AutoCompleteWindow.pyc124800644editdlrm
AutoCompleteWindow.pyo124210644editdlrm
AutoExpand.py33950644editdlrm
AutoExpand.pyc35020644editdlrm
AutoExpand.pyo35020644editdlrm
Bindings.py29760644editdlrm
Bindings.pyc46950644editdlrm
Bindings.pyo46950644editdlrm
CallTips.py77400644editdlrm
CallTips.pyc81330644editdlrm
CallTips.pyo81330644editdlrm
CallTipWindow.py60650644editdlrm
CallTipWindow.pyc61360644editdlrm
CallTipWindow.pyo61360644editdlrm
ChangeLog563930644editdlrm
ClassBrowser.py69990644editdlrm
ClassBrowser.pyc95000644editdlrm
ClassBrowser.pyo95000644editdlrm
CodeContext.py83420644editdlrm
CodeContext.pyc66580644editdlrm
CodeContext.pyo66140644editdlrm
ColorDelegator.py97620644editdlrm
ColorDelegator.pyc88980644editdlrm
ColorDelegator.pyo88980644editdlrm
config-extensions.def29650644editdlrm
config-highlight.def25150644editdlrm
config-keys.def77770644editdlrm
config-main.def25610644editdlrm
configDialog.py659580644editdlrm
configDialog.pyc532910644editdlrm
configDialog.pyo532910644editdlrm
configHandler.py324850644editdlrm
configHandler.pyc293610644editdlrm
configHandler.pyo293610644editdlrm
configHelpSourceEdit.py66860644editdlrm
configHelpSourceEdit.pyc65950644editdlrm
configHelpSourceEdit.pyo65950644editdlrm
configSectionNameDialog.py40400644editdlrm
configSectionNameDialog.pyc44190644editdlrm
configSectionNameDialog.pyo44190644editdlrm
CREDITS.txt18660644editdlrm
Debugger.py182360644editdlrm
Debugger.pyc175460644editdlrm
Debugger.pyo175460644editdlrm
Delegator.py6650644editdlrm
Delegator.pyc12680644editdlrm
Delegator.pyo12680644editdlrm
dynOptionMenuWidget.py19840644editdlrm
dynOptionMenuWidget.pyc27900644editdlrm
dynOptionMenuWidget.pyo27900644editdlrm
EditorWindow.py654980644editdlrm
EditorWindow.pyc568580644editdlrm
EditorWindow.pyo567560644editdlrm
extend.txt36420644editdlrm
FileList.py37180644editdlrm
FileList.pyc40250644editdlrm
FileList.pyo39920644editdlrm
FormatParagraph.py72870644editdlrm
FormatParagraph.pyc71420644editdlrm
FormatParagraph.pyo71420644editdlrm
GrepDialog.py51450644editdlrm
GrepDialog.pyc64250644editdlrm
GrepDialog.pyo64250644editdlrm
help.html424140644editdlrm
help.py110350644editdlrm
help.pyc122700644editdlrm
help.pyo122700644editdlrm
help.txt121440644editdlrm
HISTORY.txt103170644editdlrm
HyperParser.py104970644editdlrm
HyperParser.pyc66730644editdlrm
HyperParser.pyo66730644editdlrm
idle.py4530644editdlrm
idle.pyc4100644editdlrm
idle.pyo4100644editdlrm
idle.pyw5630644editdlrm
IdleHistory.py40520644editdlrm
IdleHistory.pyc40600644editdlrm
IdleHistory.pyo40600644editdlrm
idlever.py4150644editdlrm
idlever.pyc5780644editdlrm
idlever.pyo5780644editdlrm
IOBinding.py219110644editdlrm
IOBinding.pyc185350644editdlrm
IOBinding.pyo185350644editdlrm
keybindingDialog.py124680644editdlrm
keybindingDialog.pyc121730644editdlrm
keybindingDialog.pyo121730644editdlrm
macosxSupport.py84350644editdlrm
macosxSupport.pyc83510644editdlrm
macosxSupport.pyo82130644editdlrm
MultiCall.py177010644editdlrm
MultiCall.pyc163510644editdlrm
MultiCall.pyo162770644editdlrm
MultiStatusBar.py13480644editdlrm
MultiStatusBar.pyc22790644editdlrm
MultiStatusBar.pyo22790644editdlrm
NEWS.txt472470644editdlrm
ObjectBrowser.py43760644editdlrm
ObjectBrowser.pyc70670644editdlrm
ObjectBrowser.pyo70670644editdlrm
OutputWindow.py45760644editdlrm
OutputWindow.pyc52320644editdlrm
OutputWindow.pyo52320644editdlrm
ParenMatch.py67140644editdlrm
ParenMatch.pyc71290644editdlrm
ParenMatch.pyo71290644editdlrm
PathBrowser.py30090644editdlrm
PathBrowser.pyc44860644editdlrm
PathBrowser.pyo44860644editdlrm
Percolator.py32220644editdlrm
Percolator.pyc46080644editdlrm
Percolator.pyo44240644editdlrm
PyParse.py195100644editdlrm
PyParse.pyc100050644editdlrm
PyParse.pyo95670644editdlrm
PyShell.py588620755editdlrm
PyShell.pyc528260644editdlrm
PyShell.pyo527240644editdlrm
README.txt78900644editdlrm
RemoteDebugger.py116320644editdlrm
RemoteDebugger.pyc163250644editdlrm
RemoteDebugger.pyo161710644editdlrm
RemoteObjectBrowser.py9420644editdlrm
RemoteObjectBrowser.pyc21500644editdlrm
RemoteObjectBrowser.pyo21500644editdlrm
ReplaceDialog.py66390644editdlrm
ReplaceDialog.pyc77560644editdlrm
ReplaceDialog.pyo77560644editdlrm
rpc.py201500644editdlrm
rpc.pyc217280644editdlrm
rpc.pyo216220644editdlrm
RstripExtension.py10500644editdlrm
RstripExtension.pyc16130644editdlrm
RstripExtension.pyo16130644editdlrm
run.py129170644editdlrm
run.pyc134190644editdlrm
run.pyo133610644editdlrm
ScriptBinding.py84590644editdlrm
ScriptBinding.pyc82010644editdlrm
ScriptBinding.pyo82010644editdlrm
ScrolledList.py43730644editdlrm
ScrolledList.pyc64820644editdlrm
ScrolledList.pyo64820644editdlrm
SearchDialog.py26300644editdlrm
SearchDialog.pyc39830644editdlrm
SearchDialog.pyo39830644editdlrm
SearchDialogBase.py70940644editdlrm
SearchDialogBase.pyc84620644editdlrm
SearchDialogBase.pyo84620644editdlrm
SearchEngine.py74630644editdlrm
SearchEngine.pyc83020644editdlrm
SearchEngine.pyo83020644editdlrm
StackViewer.py44310644editdlrm
StackViewer.pyc64040644editdlrm
StackViewer.pyo64040644editdlrm
tabbedpages.py184390644editdlrm
tabbedpages.pyc185610644editdlrm
tabbedpages.pyo185610644editdlrm
textView.py35200644editdlrm
textView.pyc40250644editdlrm
textView.pyo40250644editdlrm
TODO.txt84780644editdlrm
ToolTip.py31730644editdlrm
ToolTip.pyc46690644editdlrm
ToolTip.pyo46690644editdlrm
TreeWidget.py150370644editdlrm
TreeWidget.pyc176940644editdlrm
TreeWidget.pyo176940644editdlrm
UndoDelegator.py107870644editdlrm
UndoDelegator.pyc135550644editdlrm
UndoDelegator.pyo135550644editdlrm
WidgetRedirector.py69060644editdlrm
WidgetRedirector.pyc77690644editdlrm
WidgetRedirector.pyo77690644editdlrm
WindowList.py24730644editdlrm
WindowList.pyc36360644editdlrm
WindowList.pyo36360644editdlrm
ZoomHeight.py13000644editdlrm
ZoomHeight.pyc16460644editdlrm
ZoomHeight.pyo16460644editdlrm
__init__.py2880644editdlrm
__init__.pyc4310644editdlrm
__init__.pyo4310644editdlrm
Edit: /usr/lib64/python2.7/idlelib/tabbedpages.pyo (18561B)
ó {fc@sždZddlTdefd„ƒYZdefd„ƒYZdefd„ƒYZd efd „ƒYZd „Ze d kršdd l m Z e eƒndS(sAn implementation of tabbed pages using only standard Tkinter. Originally developed for use in IDLE. Based on tabpage.py. Classes exported: TabbedPageSet -- A Tkinter implementation of a tabbed-page widget. TabSet -- A widget containing tabs (buttons) in one or more rows. iÿÿÿÿ(t*tInvalidNameErrorcBseZRS((t__name__t __module__(((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR stAlreadyExistsErrorcBseZRS((RR(((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR stTabSetcBsoeZdZd dded„Zd„Zd„Zd„Zd„Z d„Z d „Z d e fd „ƒYZ RS( sjA widget containing tabs (buttons) in one or more rows. Only one tab may be selected at a time. iic Ksâtj|||||_||_||_||_||_i|_i|_|rjt |ƒ|_ n g|_ d |_ g|_ t|dddddtd|jdƒƒ|_|jjdtdtd tƒ|jƒd S( sConstructor arguments: select_command -- A callable which will be called when a tab is selected. It is called with the name of the selected tab as an argument. tabs -- A list of strings, the names of the tabs. Should be specified in the desired tab order. The first tab will be the default and first active tab. If tabs is None or empty, the TabSet will be initialized empty. n_rows -- Number of rows of tabs to be shown. If n_rows <= 0 or is None, then the number of rows will be decided by TabSet. See _arrange_tabs() for details. max_tabs_per_row -- Used for deciding how many rows of tabs are needed, when the number of rows is not constant. See _arrange_tabs() for details. theightit borderwidthitrelieft backgroundtsidetfilltexpandN(tFramet__init__tselect_commandtn_rowstmax_tabs_per_rowt expand_tabstpage_sett_tabst_tab2rowtlistt _tab_namestNonet _selected_tabt _tab_rowstFLATtcgett padding_frametpacktTOPtXtFalset _arrange_tabs(tselfRRttabsRRRtkw((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRs$           cCsY|std|ƒ‚n||jkr;td|ƒ‚n|jj|ƒ|jƒdS(s.Add a new tab with the name given in tab_name.sInvalid Tab name: '%s'sTab named '%s' already existsN(RRRtappendR"(R#ttab_name((s+/usr/lib64/python2.7/idlelib/tabbedpages.pytadd_tabDs cCs@||jkr"tdtƒ‚n|jj|ƒ|jƒdS(sRemove the tab named sNo such Tab: '%sN(RtKeyErrort page_nametremoveR"(R#R'((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyt remove_tabNscCsÖ||jkrdS|dk rA||jkrAtdtƒ‚n|jdk rg|j|jjƒnd|_|dk rÒ||_|j|}|jƒ|j|}|jƒ|j dt dt ddƒndS(s1Show the tab named as the selected oneNsNo such Tab: '%sR R R i( RRRR)R*t set_normalt set_selectedRt pack_forgetRRR (R#R'ttabttab_row((s+/usr/lib64/python2.7/idlelib/tabbedpages.pytset_selected_tabVs       cCsÊ|s dSt|ƒ}|jdtdtddƒ|jj|ƒxx|D]p}tj||j||ƒ}|r|jdt dtdt ƒn|jdt ƒ||j |<||j |= 1, this will be the number of rows used. Otherwise the number of rows will be calculated according to the number of tabs and max_tabs_per_row. In this case, the number of rows may change when adding/removing tabs. Nii(RtkeysR9R:R;RRRtlenRRtxrangeR8RR2( R#R'RRtit row_indextn_tabsR7tselected((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR"‡s&    #   R3cBsMeZdZdZd„Zd„Zd„Zd„Zd„Ze d„Z RS(sA simple tab-like widget.icCsÂtj||d|jdtƒ||_||_||_t|_t |d|d|j ddddd t d t d d d ddd ƒ |_ |j j dtdtdtƒ|jƒ|jƒdS(súConstructor arguments: name -- The tab's name, which will appear in its button. select_command -- The command to be called upon selection of the tab. It is called with the tab's name as an argument. RRttexttcommandtpadxitpadyit takefocust indicatoronthighlightthicknessit selectcolortR R R N(R RtbwtRAISEDtnameRttab_setR!R6t Radiobuttont _select_eventtFALSEtbuttonRR4R R5t _init_masksR-(R#RNRR1RO((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR´s      cGs|j|jƒdS(ssEvent handler for tab selection. With TabbedPageSet, this calls TabbedPageSet.change_page, so that selecting a tab changes the page. Note that this does -not- call set_selected -- it will be called by TabSet.set_selected_tab, which should be called when whatever the tabs are related to changes. N(RRN(R#targs((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRQÍs cCs|jdtƒdS(sAssume selected lookRBN(t _place_masksR5(R#((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR.ÛscCs|jdtƒdS(sAssume normal lookRBN(RVR!(R#((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR-ßsc Cs|jj}|jjdƒ}t|dddtd|ƒ|_t|dddtd|ƒ|_t|jd|jdt ƒ|j_ |jj j ddd|j dd|jd |jd ƒt|dddtd|ƒ|_ t|j d|jdt ƒ|j _ dS( NR RiRtxtytwidthiRi(RORt pages_frameRR RtmasktmsklRLRMtmltplacetmskrtmr(R#RR ((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRTãs    cCs|j}|r||j7}n|jjd|ddddddddd dd dd dd |ƒ |jjd|ddd|j ddddd dd |jd dd |ƒ |jj}|r|j sô|jƒ|jƒ|jƒ|jƒkr||j8}n|j jd|ddddddddd dd |jd dd |ƒ |j j jd|j d|j d d |jd ||jd ƒ|jj ƒdS(Ntin_trelxgRWitrelygð?RXtrelwidthRYt relheightRi( RLR[R^R\RORR6t winfo_rootxt winfo_widthR_R`tlower(R#RBRR((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRVøs4           #( RRt__doc__RLRRQR.R-RTR!RV(((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR3¯s     N(RRRiRR!RR(R,R2R8R;R"R R3(((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRs  ,     (t TabbedPageSetcBs™eZdZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZded d e d „Z d „Z d „Z d„Z RS(sjA Tkinter tabbed-pane widget. Constains set of 'pages' (or 'panes') with tabs above for selecting which page is displayed. Only one page will be displayed at a time. Pages may be accessed through the 'pages' attribute, which is a dictionary of pages, using the name given as the key. A page is an instance of a subclass of Tk's Frame widget. The page widgets will be created (and destroyed when required) by the TabbedPageSet. Do not call the page's pack/place/grid/destroy methods. Pages may be added or removed at any time using the add_page() and remove_page() methods. tPagecBs/eZdZeZd„Zd„Zd„ZRS(s{Abstract base class for TabbedPageSet's pages. Subclasses must override the _show() and _hide() methods. cCst|dddtƒ|_dS(NRiR(R RMtframe(R#R((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR9scCs t‚dS(N(tNotImplementedError(R#((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyt_show<scCs t‚dS(N(Rm(R#((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyt_hide?s(RRRiR!t uses_gridRRnRo(((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRk1s   t PageRemovecBs&eZdZeZd„Zd„ZRS(sAPage class using the grid placement manager's "remove" mechanism.cCs#|jjdddddtƒdS(Ntrowitcolumntsticky(RltgridtNSEW(R#((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRnFscCs|jjƒdS(N(Rlt grid_remove(R#((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRoIs(RRRiR5RpRnRo(((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRqBs tPageLiftcBs/eZdZeZd„Zd„Zd„ZRS(s?Page class using the grid placement manager's "lift" mechanism.cCsIttj|ƒj|ƒ|jjdddddtƒ|jjƒdS(NRriRsRt(tsuperRjRxRRlRuRvRh(R#R((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRPscCs|jjƒdS(N(Rltlift(R#((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRnUscCs|jjƒdS(N(RlRh(R#((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRoXs(RRRiR5RpRRnRo(((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRxLs   tPagePackForgetcBs eZdZd„Zd„ZRS(sAPage class using the pack placement manager's "forget" mechanism.cCs|jjdtdtƒdS(NR R (RlRtBOTHR5(R#((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRn]scCs|jjƒdS(N(RlR/(R#((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRo`s(RRRiRnRo(((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR{[s iic KsPtj|||||_i|_g|_d |_d |_|jdddƒ|j dddƒt|ƒ|_ |j j dddddt ƒ|jj rÏ|j jdddƒ|j j dddƒnt||jd|d|d |ƒ|_|rx|D]}|j|ƒqWn|jj dddddt ƒ|j|jƒd S( sŒConstructor arguments: page_names -- A list of strings, each will be the dictionary key to a page's widget, and the name displayed on the page's tab. Should be specified in the desired page order. The first page will be the default and first active page. If page_names is None or empty, the TabbedPageSet will be initialized empty. n_rows, max_tabs_per_row -- Parameters for the TabSet which will manage the tabs. See TabSet's docs for details. page_class -- Pages can be shown/hidden using three mechanisms: * PageLift - All pages will be rendered one on top of the other. When a page is selected, it will be brought to the top, thus hiding all other pages. Using this method, the TabbedPageSet will not be resized when pages are switched. (It may still be resized when pages are added/removed.) * PageRemove - When a page is selected, the currently showing page is hidden, and the new page shown in its place. Using this method, the TabbedPageSet may resize when pages are changed. * PagePackForget - This mechanism uses the pack placement manager. When a page is shown it is packed, and when it is hidden it is unpacked (i.e. pack_forget). This mechanism may also cause the TabbedPageSet to resize when the page is changed. itweightiRrRsRtRRRN(R Rt page_classtpagest _pages_orderRt _current_paget _default_pagetcolumnconfiguret rowconfigureRZRuRvRpRt change_paget_tab_settadd_page( R#tparentt page_namesR~RRRR%RN((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRcs*         cCs¦|std|ƒ‚n||jkr;td|ƒ‚n|j|jƒ|j|<|jj|ƒ|jj|ƒt |jƒdkr¢||_ |j |ƒndS(s0Add a new page with the name given in page_name.sInvalid TabPage name: '%s's!TabPage named '%s' already existsiN( RRRR~RZR€R&R†R(R=R‚R…(R#R*((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR‡Ÿs cCsÊ||jkr"td|ƒ‚n|jj|ƒt|jƒdkrl||jkru|jd|_qun d|_||jkr—|j|jƒn|j j |ƒ|jj |ƒ}|j j ƒdS(s2Destroy the page whose name is given in page_name.sNo such TabPage: '%siN(RR)R€R+R=R‚RRR…R†R,R9RlR:(R#R*tpage((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyt remove_page¯s cCs­|j|krdS|dk rA||jkrAtd|ƒ‚n|jdk rg|j|jjƒnd|_|dk r™||_|j|jƒn|jj|ƒdS(s/Show the page whose name is given in page_name.NsNo such TabPage: '%s'(RRRR)RoRnR†R2(R#R*((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR…Ås   N(RRRitobjectRkRqRxR{RR!RR‡R‹R…(((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyRj s ;  c sÐtƒ}ttttjd|jƒƒƒƒ\}}}}|jd||dfƒ|jdƒt|dddgdd d t ƒ‰ˆj d t d t d t ƒtˆjdjddddƒj ƒtˆjdjddddƒj ƒtˆjdjddƒj ƒt|ƒ‰t|ddd‡‡fd†ƒ}t|ddd‡‡fd†ƒ}t|ddƒ}|j ddddƒ|j ddddƒ|j ddƒˆj ddƒ|jƒdS(Ns[x+]s+%d+%di¯sTest tabbed pagesR‰tFoobartBazRiRR R R RCtFooRFitBarsAdd PageRDcsˆjˆjƒƒS(N(R‡tget((t entryPgNamettabPage(s+/usr/lib64/python2.7/idlelib/tabbedpages.pytåRKs Remove PagecsˆjˆjƒƒS(N(R‹R‘((R’R“(s+/usr/lib64/python2.7/idlelib/tabbedpages.pyR”çRKsname of page to add/remove:REi(tTkRtmaptinttretsplittgeometryttitleRjR!RRtTRUER|tLabelRRltEntrytButtontmainloop( RˆtrootRYRRWRXt buttonAddt buttonRemovet labelPgName((R’R“s+/usr/lib64/python2.7/idlelib/tabbedpages.pyt _tabbed_pagesÖs* 3  &&  t__main__(trunN( RitTkintert ExceptionRRR RRjR¥Rtidlelib.idle_test.htestR§(((s+/usr/lib64/python2.7/idlelib/tabbedpages.pyt s ÿ¶