/opt/alt/python27/lib64/python2.7/idlelib
NameSizeModeActions
Icons/-0755rm
idle_test/-0755rm
aboutDialog.py70140644editdlrm
aboutDialog.pyc70170644editdlrm
aboutDialog.pyo70170644editdlrm
AutoComplete.py89640644editdlrm
AutoComplete.pyc81810644editdlrm
AutoComplete.pyo81810644editdlrm
AutoCompleteWindow.py173180644editdlrm
AutoCompleteWindow.pyc127140644editdlrm
AutoCompleteWindow.pyo126550644editdlrm
AutoExpand.py33950644editdlrm
AutoExpand.pyc35800644editdlrm
AutoExpand.pyo35800644editdlrm
Bindings.py29760644editdlrm
Bindings.pyc47080644editdlrm
Bindings.pyo47080644editdlrm
CallTips.py77400644editdlrm
CallTips.pyc83540644editdlrm
CallTips.pyo83540644editdlrm
CallTipWindow.py60650644editdlrm
CallTipWindow.pyc62920644editdlrm
CallTipWindow.pyo62920644editdlrm
ChangeLog563930644editdlrm
ClassBrowser.py69990644editdlrm
ClassBrowser.pyc98900644editdlrm
ClassBrowser.pyo98900644editdlrm
CodeContext.py83420644editdlrm
CodeContext.pyc67880644editdlrm
CodeContext.pyo67440644editdlrm
ColorDelegator.py97620644editdlrm
ColorDelegator.pyc91190644editdlrm
ColorDelegator.pyo91190644editdlrm
config-extensions.def29650644editdlrm
config-highlight.def25150644editdlrm
config-keys.def77770644editdlrm
config-main.def25610644editdlrm
configDialog.py659580644editdlrm
configDialog.pyc544350644editdlrm
configDialog.pyo544350644editdlrm
configHandler.py324850644editdlrm
configHandler.pyc299850644editdlrm
configHandler.pyo299850644editdlrm
configHelpSourceEdit.py66860644editdlrm
configHelpSourceEdit.pyc67120644editdlrm
configHelpSourceEdit.pyo67120644editdlrm
configSectionNameDialog.py40400644editdlrm
configSectionNameDialog.pyc45100644editdlrm
configSectionNameDialog.pyo45100644editdlrm
CREDITS.txt18660644editdlrm
Debugger.py182360644editdlrm
Debugger.pyc181440644editdlrm
Debugger.pyo181440644editdlrm
Delegator.py6650644editdlrm
Delegator.pyc13460644editdlrm
Delegator.pyo13460644editdlrm
dynOptionMenuWidget.py19840644editdlrm
dynOptionMenuWidget.pyc28680644editdlrm
dynOptionMenuWidget.pyo28680644editdlrm
EditorWindow.py654980644editdlrm
EditorWindow.pyc585220644editdlrm
EditorWindow.pyo584200644editdlrm
extend.txt36420644editdlrm
FileList.py37180644editdlrm
FileList.pyc41680644editdlrm
FileList.pyo41350644editdlrm
FormatParagraph.py72870644editdlrm
FormatParagraph.pyc73110644editdlrm
FormatParagraph.pyo73110644editdlrm
GrepDialog.py51450644editdlrm
GrepDialog.pyc66070644editdlrm
GrepDialog.pyo66070644editdlrm
help.html424140644editdlrm
help.py110350644editdlrm
help.pyc125430644editdlrm
help.pyo125430644editdlrm
help.txt121440644editdlrm
HISTORY.txt103170644editdlrm
HyperParser.py104970644editdlrm
HyperParser.pyc68030644editdlrm
HyperParser.pyo68030644editdlrm
idle.py4530644editdlrm
idle.pyc4230644editdlrm
idle.pyo4230644editdlrm
idle.pyw5630644editdlrm
IdleHistory.py40520644editdlrm
IdleHistory.pyc41510644editdlrm
IdleHistory.pyo41510644editdlrm
idlever.py4150644editdlrm
idlever.pyc5910644editdlrm
idlever.pyo5910644editdlrm
IOBinding.py219110644editdlrm
IOBinding.pyc190680644editdlrm
IOBinding.pyo190680644editdlrm
keybindingDialog.py124680644editdlrm
keybindingDialog.pyc123680644editdlrm
keybindingDialog.pyo123680644editdlrm
macosxSupport.py84350644editdlrm
macosxSupport.pyc85850644editdlrm
macosxSupport.pyo84470644editdlrm
MultiCall.py177010644editdlrm
MultiCall.pyc167930644editdlrm
MultiCall.pyo167190644editdlrm
MultiStatusBar.py13480644editdlrm
MultiStatusBar.pyc23570644editdlrm
MultiStatusBar.pyo23570644editdlrm
NEWS.txt472470644editdlrm
ObjectBrowser.py43760644editdlrm
ObjectBrowser.pyc74310644editdlrm
ObjectBrowser.pyo74310644editdlrm
OutputWindow.py45760644editdlrm
OutputWindow.pyc54270644editdlrm
OutputWindow.pyo54270644editdlrm
ParenMatch.py67140644editdlrm
ParenMatch.pyc73500644editdlrm
ParenMatch.pyo73500644editdlrm
PathBrowser.py30090644editdlrm
PathBrowser.pyc46810644editdlrm
PathBrowser.pyo46810644editdlrm
Percolator.py32220644editdlrm
Percolator.pyc48030644editdlrm
Percolator.pyo46190644editdlrm
PyParse.py195100644editdlrm
PyParse.pyc102260644editdlrm
PyParse.pyo97880644editdlrm
PyShell.py588590755editdlrm
PyShell.pyc542690644editdlrm
PyShell.pyo541670644editdlrm
README.txt78900644editdlrm
RemoteDebugger.py116320644editdlrm
RemoteDebugger.pyc171310644editdlrm
RemoteDebugger.pyo169770644editdlrm
RemoteObjectBrowser.py9420644editdlrm
RemoteObjectBrowser.pyc22800644editdlrm
RemoteObjectBrowser.pyo22800644editdlrm
ReplaceDialog.py66390644editdlrm
ReplaceDialog.pyc80160644editdlrm
ReplaceDialog.pyo80160644editdlrm
rpc.py201500644editdlrm
rpc.pyc224950644editdlrm
rpc.pyo223890644editdlrm
RstripExtension.py10500644editdlrm
RstripExtension.pyc16650644editdlrm
RstripExtension.pyo16650644editdlrm
run.py129170644editdlrm
run.pyc137700644editdlrm
run.pyo137120644editdlrm
ScriptBinding.py84590644editdlrm
ScriptBinding.pyc83700644editdlrm
ScriptBinding.pyo83700644editdlrm
ScrolledList.py43730644editdlrm
ScrolledList.pyc67680644editdlrm
ScrolledList.pyo67680644editdlrm
SearchDialog.py26300644editdlrm
SearchDialog.pyc41390644editdlrm
SearchDialog.pyo41390644editdlrm
SearchDialogBase.py70940644editdlrm
SearchDialogBase.pyc86310644editdlrm
SearchDialogBase.pyo86310644editdlrm
SearchEngine.py74630644editdlrm
SearchEngine.pyc85750644editdlrm
SearchEngine.pyo85750644editdlrm
StackViewer.py44310644editdlrm
StackViewer.pyc66770644editdlrm
StackViewer.pyo66770644editdlrm
tabbedpages.py184390644editdlrm
tabbedpages.pyc190810644editdlrm
tabbedpages.pyo190810644editdlrm
textView.py35200644editdlrm
textView.pyc41160644editdlrm
textView.pyo41160644editdlrm
TODO.txt84780644editdlrm
ToolTip.py31730644editdlrm
ToolTip.pyc48900644editdlrm
ToolTip.pyo48900644editdlrm
TreeWidget.py150370644editdlrm
TreeWidget.pyc183830644editdlrm
TreeWidget.pyo183830644editdlrm
UndoDelegator.py107870644editdlrm
UndoDelegator.pyc142180644editdlrm
UndoDelegator.pyo142180644editdlrm
WidgetRedirector.py69060644editdlrm
WidgetRedirector.pyc79510644editdlrm
WidgetRedirector.pyo79510644editdlrm
WindowList.py24730644editdlrm
WindowList.pyc38310644editdlrm
WindowList.pyo38310644editdlrm
ZoomHeight.py13000644editdlrm
ZoomHeight.pyc17110644editdlrm
ZoomHeight.pyo17110644editdlrm
__init__.py2880644editdlrm
__init__.pyc4440644editdlrm
__init__.pyo4440644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyc (19081B)
ó Þ[ bc@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__(((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyR stAlreadyExistsErrorcBseZRS((RR(((s8/opt/alt/python27/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((s8/opt/alt/python27/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((s8/opt/alt/python27/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'((s8/opt/alt/python27/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((s8/opt/alt/python27/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((s8/opt/alt/python27/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((s8/opt/alt/python27/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((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyRQÍs cCs|jdtƒdS(sAssume selected lookRBN(t _place_masksR5(R#((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyR.ÛscCs|jdtƒdS(sAssume normal lookRBN(RVR!(R#((s8/opt/alt/python27/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 ((s8/opt/alt/python27/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((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyRVøs4           #( RRt__doc__RLRRQR.R-RTR!RV(((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyR3¯s     N(RRRiRR!RR(R,R2R8R;R"R R3(((s8/opt/alt/python27/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((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyR9scCs t‚dS(N(tNotImplementedError(R#((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyt_show<scCs t‚dS(N(Rm(R#((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyt_hide?s(RRRiR!t uses_gridRRnRo(((s8/opt/alt/python27/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#((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyRnFscCs|jjƒdS(N(Rlt grid_remove(R#((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyRoIs(RRRiR5RpRnRo(((s8/opt/alt/python27/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((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyRPscCs|jjƒdS(N(Rltlift(R#((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyRnUscCs|jjƒdS(N(RlRh(R#((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyRoXs(RRRiR5RpRRnRo(((s8/opt/alt/python27/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#((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyRn]scCs|jjƒdS(N(RlR/(R#((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyRo`s(RRRiRnRo(((s8/opt/alt/python27/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((s8/opt/alt/python27/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*((s8/opt/alt/python27/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((s8/opt/alt/python27/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*((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyR…Ås   N(RRRitobjectRkRqRxR{RR!RR‡R‹R…(((s8/opt/alt/python27/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(s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pytåRKs Remove PagecsˆjˆjƒƒS(N(R‹R‘((R’R“(s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyR”çRKsname of page to add/remove:REi(tTkRtmaptinttretsplittgeometryttitleRjR!RRtTRUER|tLabelRRltEntrytButtontmainloop( RˆtrootRYRRWRXt buttonAddt buttonRemovet labelPgName((R’R“s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyt _tabbed_pagesÖs* 3  &&  t__main__(trunN( RitTkintert ExceptionRRR RRjR¥Rtidlelib.idle_test.htestR§(((s8/opt/alt/python27/lib64/python2.7/idlelib/tabbedpages.pyt s ÿ¶