/opt/alt/python35/lib64/python3.5/idlelib/__pycache__
NameSizeModeActions
aboutDialog.cpython-35.opt-1.pyc60770644editdlrm
aboutDialog.cpython-35.opt-2.pyc59060644editdlrm
aboutDialog.cpython-35.pyc60770644editdlrm
AutoComplete.cpython-35.opt-1.pyc76870644editdlrm
AutoComplete.cpython-35.opt-2.pyc59860644editdlrm
AutoComplete.cpython-35.pyc76870644editdlrm
AutoCompleteWindow.cpython-35.opt-1.pyc114620644editdlrm
AutoCompleteWindow.cpython-35.opt-2.pyc107080644editdlrm
AutoCompleteWindow.cpython-35.pyc115180644editdlrm
AutoExpand.cpython-35.opt-1.pyc31680644editdlrm
AutoExpand.cpython-35.opt-2.pyc23780644editdlrm
AutoExpand.cpython-35.pyc31680644editdlrm
Bindings.cpython-35.opt-1.pyc32250644editdlrm
Bindings.cpython-35.opt-2.pyc27440644editdlrm
Bindings.cpython-35.pyc32250644editdlrm
CallTips.cpython-35.opt-1.pyc59210644editdlrm
CallTips.cpython-35.opt-2.pyc42790644editdlrm
CallTips.cpython-35.pyc59210644editdlrm
CallTipWindow.cpython-35.opt-1.pyc53610644editdlrm
CallTipWindow.cpython-35.opt-2.pyc50610644editdlrm
CallTipWindow.cpython-35.pyc53610644editdlrm
ClassBrowser.cpython-35.opt-1.pyc85540644editdlrm
ClassBrowser.cpython-35.opt-2.pyc80620644editdlrm
ClassBrowser.cpython-35.pyc85540644editdlrm
CodeContext.cpython-35.opt-1.pyc61260644editdlrm
CodeContext.cpython-35.opt-2.pyc49900644editdlrm
CodeContext.cpython-35.pyc61670644editdlrm
ColorDelegator.cpython-35.opt-1.pyc85670644editdlrm
ColorDelegator.cpython-35.opt-2.pyc84040644editdlrm
ColorDelegator.cpython-35.pyc85670644editdlrm
configDialog.cpython-35.opt-1.pyc493290644editdlrm
configDialog.cpython-35.opt-2.pyc465760644editdlrm
configDialog.cpython-35.pyc493290644editdlrm
configHandler.cpython-35.opt-1.pyc268820644editdlrm
configHandler.cpython-35.opt-2.pyc186790644editdlrm
configHandler.cpython-35.pyc268820644editdlrm
configHelpSourceEdit.cpython-35.opt-1.pyc59050644editdlrm
configHelpSourceEdit.cpython-35.opt-2.pyc53980644editdlrm
configHelpSourceEdit.cpython-35.pyc59050644editdlrm
configSectionNameDialog.cpython-35.opt-1.pyc39320644editdlrm
configSectionNameDialog.cpython-35.opt-2.pyc32940644editdlrm
configSectionNameDialog.cpython-35.pyc39320644editdlrm
Debugger.cpython-35.opt-1.pyc155760644editdlrm
Debugger.cpython-35.opt-2.pyc154170644editdlrm
Debugger.cpython-35.pyc155760644editdlrm
Delegator.cpython-35.opt-1.pyc13440644editdlrm
Delegator.cpython-35.opt-2.pyc12360644editdlrm
Delegator.cpython-35.pyc13440644editdlrm
dynOptionMenuWidget.cpython-35.opt-1.pyc24280644editdlrm
dynOptionMenuWidget.cpython-35.opt-2.pyc20360644editdlrm
dynOptionMenuWidget.cpython-35.pyc24280644editdlrm
EditorWindow.cpython-35.opt-1.pyc520240644editdlrm
EditorWindow.cpython-35.opt-2.pyc507410644editdlrm
EditorWindow.cpython-35.pyc521200644editdlrm
FileList.cpython-35.opt-1.pyc35800644editdlrm
FileList.cpython-35.opt-2.pyc35720644editdlrm
FileList.cpython-35.pyc36100644editdlrm
FormatParagraph.cpython-35.opt-1.pyc63550644editdlrm
FormatParagraph.cpython-35.opt-2.pyc44650644editdlrm
FormatParagraph.cpython-35.pyc63550644editdlrm
GrepDialog.cpython-35.opt-1.pyc56410644editdlrm
GrepDialog.cpython-35.opt-2.pyc56330644editdlrm
GrepDialog.cpython-35.pyc56410644editdlrm
help.cpython-35.opt-1.pyc109800644editdlrm
help.cpython-35.opt-2.pyc82290644editdlrm
help.cpython-35.pyc109800644editdlrm
HyperParser.cpython-35.opt-1.pyc74000644editdlrm
HyperParser.cpython-35.opt-2.pyc60830644editdlrm
HyperParser.cpython-35.pyc74000644editdlrm
idle.cpython-35.opt-1.pyc3720644editdlrm
idle.cpython-35.opt-2.pyc3640644editdlrm
idle.cpython-35.pyc3720644editdlrm
IdleHistory.cpython-35.opt-1.pyc36790644editdlrm
IdleHistory.cpython-35.opt-2.pyc24420644editdlrm
IdleHistory.cpython-35.pyc36790644editdlrm
idlever.cpython-35.opt-1.pyc5510644editdlrm
idlever.cpython-35.opt-2.pyc3200644editdlrm
idlever.cpython-35.pyc5510644editdlrm
IOBinding.cpython-35.opt-1.pyc151720644editdlrm
IOBinding.cpython-35.opt-2.pyc147440644editdlrm
IOBinding.cpython-35.pyc151720644editdlrm
keybindingDialog.cpython-35.opt-1.pyc109630644editdlrm
keybindingDialog.cpython-35.opt-2.pyc100030644editdlrm
keybindingDialog.cpython-35.pyc109630644editdlrm
macosxSupport.cpython-35.opt-1.pyc71700644editdlrm
macosxSupport.cpython-35.opt-2.pyc52550644editdlrm
macosxSupport.cpython-35.pyc72850644editdlrm
MultiCall.cpython-35.opt-1.pyc164750644editdlrm
MultiCall.cpython-35.opt-2.pyc141000644editdlrm
MultiCall.cpython-35.pyc165400644editdlrm
MultiStatusBar.cpython-35.opt-1.pyc19350644editdlrm
MultiStatusBar.cpython-35.opt-2.pyc19270644editdlrm
MultiStatusBar.cpython-35.pyc19350644editdlrm
ObjectBrowser.cpython-35.opt-1.pyc55120644editdlrm
ObjectBrowser.cpython-35.opt-2.pyc55040644editdlrm
ObjectBrowser.cpython-35.pyc55120644editdlrm
OutputWindow.cpython-35.opt-1.pyc45230644editdlrm
OutputWindow.cpython-35.opt-2.pyc43400644editdlrm
OutputWindow.cpython-35.pyc45230644editdlrm
ParenMatch.cpython-35.opt-1.pyc64500644editdlrm
ParenMatch.cpython-35.opt-2.pyc50150644editdlrm
ParenMatch.cpython-35.pyc64500644editdlrm
PathBrowser.cpython-35.opt-1.pyc41060644editdlrm
PathBrowser.cpython-35.opt-2.pyc39570644editdlrm
PathBrowser.cpython-35.pyc41060644editdlrm
Percolator.cpython-35.opt-1.pyc39110644editdlrm
Percolator.cpython-35.opt-2.pyc39030644editdlrm
Percolator.cpython-35.pyc40840644editdlrm
PyParse.cpython-35.opt-1.pyc109670644editdlrm
PyParse.cpython-35.opt-2.pyc100850644editdlrm
PyParse.cpython-35.pyc114090644editdlrm
PyShell.cpython-35.opt-1.pyc481240644editdlrm
PyShell.cpython-35.opt-2.pyc455350644editdlrm
PyShell.cpython-35.pyc482630644editdlrm
RemoteDebugger.cpython-35.opt-1.pyc145100644editdlrm
RemoteDebugger.cpython-35.opt-2.pyc121090644editdlrm
RemoteDebugger.cpython-35.pyc146520644editdlrm
RemoteObjectBrowser.cpython-35.opt-1.pyc20090644editdlrm
RemoteObjectBrowser.cpython-35.opt-2.pyc20010644editdlrm
RemoteObjectBrowser.cpython-35.pyc20090644editdlrm
ReplaceDialog.cpython-35.opt-1.pyc76450644editdlrm
ReplaceDialog.cpython-35.opt-2.pyc69610644editdlrm
ReplaceDialog.cpython-35.pyc76450644editdlrm
rpc.cpython-35.opt-1.pyc208330644editdlrm
rpc.cpython-35.opt-2.pyc174340644editdlrm
rpc.cpython-35.pyc209360644editdlrm
RstripExtension.cpython-35.opt-1.pyc13530644editdlrm
RstripExtension.cpython-35.opt-2.pyc12650644editdlrm
RstripExtension.cpython-35.pyc13530644editdlrm
run.cpython-35.opt-1.pyc127420644editdlrm
run.cpython-35.opt-2.pyc108140644editdlrm
run.cpython-35.pyc127920644editdlrm
ScriptBinding.cpython-35.opt-1.pyc70660644editdlrm
ScriptBinding.cpython-35.opt-2.pyc56750644editdlrm
ScriptBinding.cpython-35.pyc70660644editdlrm
ScrolledList.cpython-35.opt-1.pyc57590644editdlrm
ScrolledList.cpython-35.opt-2.pyc57510644editdlrm
ScrolledList.cpython-35.pyc57590644editdlrm
SearchDialog.cpython-35.opt-1.pyc37820644editdlrm
SearchDialog.cpython-35.opt-2.pyc35220644editdlrm
SearchDialog.cpython-35.pyc37820644editdlrm
SearchDialogBase.cpython-35.opt-1.pyc76950644editdlrm
SearchDialogBase.cpython-35.opt-2.pyc49870644editdlrm
SearchDialogBase.cpython-35.pyc76950644editdlrm
SearchEngine.cpython-35.opt-1.pyc74130644editdlrm
SearchEngine.cpython-35.opt-2.pyc57510644editdlrm
SearchEngine.cpython-35.pyc74130644editdlrm
StackViewer.cpython-35.opt-1.pyc55920644editdlrm
StackViewer.cpython-35.opt-2.pyc55840644editdlrm
StackViewer.cpython-35.pyc55920644editdlrm
tabbedpages.cpython-35.opt-1.pyc170760644editdlrm
tabbedpages.cpython-35.opt-2.pyc120700644editdlrm
tabbedpages.cpython-35.pyc170760644editdlrm
textView.cpython-35.opt-1.pyc34630644editdlrm
textView.cpython-35.opt-2.pyc30160644editdlrm
textView.cpython-35.pyc34630644editdlrm
ToolTip.cpython-35.opt-1.pyc40430644editdlrm
ToolTip.cpython-35.opt-2.pyc40350644editdlrm
ToolTip.cpython-35.pyc40430644editdlrm
TreeWidget.cpython-35.opt-1.pyc156180644editdlrm
TreeWidget.cpython-35.opt-2.pyc148330644editdlrm
TreeWidget.cpython-35.pyc156180644editdlrm
UndoDelegator.cpython-35.opt-1.pyc118910644editdlrm
UndoDelegator.cpython-35.opt-2.pyc118830644editdlrm
UndoDelegator.cpython-35.pyc118910644editdlrm
WidgetRedirector.cpython-35.opt-1.pyc71200644editdlrm
WidgetRedirector.cpython-35.opt-2.pyc36710644editdlrm
WidgetRedirector.cpython-35.pyc71200644editdlrm
WindowList.cpython-35.opt-1.pyc32310644editdlrm
WindowList.cpython-35.opt-2.pyc32230644editdlrm
WindowList.cpython-35.pyc32310644editdlrm
ZoomHeight.cpython-35.opt-1.pyc14020644editdlrm
ZoomHeight.cpython-35.opt-2.pyc13940644editdlrm
ZoomHeight.cpython-35.pyc14020644editdlrm
__init__.cpython-35.opt-1.pyc4520644editdlrm
__init__.cpython-35.opt-2.pyc1410644editdlrm
__init__.cpython-35.pyc4520644editdlrm
__main__.cpython-35.opt-1.pyc2790644editdlrm
__main__.cpython-35.opt-2.pyc1980644editdlrm
__main__.cpython-35.pyc2790644editdlrm
Edit: /opt/alt/python35/lib64/python3.5/idlelib/__pycache__/tabbedpages.cpython-35.opt-1.pyc (17076B)
 vzfG@sdZddlTGdddeZGdddeZGdddeZGd d d eZd d Ze d krddl m Z e edS)aAn 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. )*c@seZdZdS)InvalidNameErrorN)__name__ __module__ __qualname__rr8/opt/alt/python35/lib64/python3.5/idlelib/tabbedpages.pyr s rc@seZdZdS)AlreadyExistsErrorN)rrrrrrrr s r c@seZdZdZddddddZdd Zd d Zd d ZddZddZ ddZ Gddde Z dS)TabSetzjA widget containing tabs (buttons) in one or more rows. Only one tab may be selected at a time. NFc Kstj|||||_||_||_||_||_i|_i|_|rjt ||_ n g|_ d|_ g|_ t|dddddt d|jd|_|jjdtd td d |jdS) aConstructor 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. Nheight borderwidthrrelief backgroundsidefillexpandF)Frame__init__select_commandn_rowsmax_tabs_per_row expand_tabspage_set_tabs_tab2rowlist _tab_names _selected_tab _tab_rowsFLATcgetZ padding_framepackTOPX _arrange_tabs)selfrrZtabsrrrkwrrrrs$           zTabSet.__init__cCsS|std|||jkr5td||jj||jdS)z.Add a new tab with the name given in tab_name.zInvalid Tab name: '%s'zTab named '%s' already existsN)rrr appendr')r(tab_namerrradd_tabDs zTabSet.add_tabcCs=||jkrtd||jj||jdS)zRemove the tab named zNo such Tab: '%sN)rKeyErrorremover')r(r+rrr remove_tabNszTabSet.remove_tabcCs||jkrdS|dk r>||jkr>td||jdk ra|j|jjd|_|dk r||_|j|}|j|j|}|j|jdtdt dddS)z1Show the tab named as the selected oneNzNo such Tab: '%srrrr) r rr- set_normal set_selectedr pack_forgetr$r%r&)r(r+tabtab_rowrrrset_selected_tabVs       zTabSet.set_selected_tabcCs|s dSt|}|jdtdtdd|jj|xx|D]p}tj||j||}|r|jdt dtddn|jdt ||j |<||j |dS|jdk rh|jdkrh|j}nt|jd|jd}|jp|dk}d}xht |D]Z}t|j|d||d}|j|||}||7}|j ||qW|j }|j d||jkr>|j |dS)aW Arrange the tabs in rows, in the order in which they were added. If n_rows >= 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. r Nr) rpopitemr<r=rrlenrrranger:r r5)r(rriZ row_indexZn_tabsr9selectedrrrr's&    #   zTabSet._arrange_tabsc@sgeZdZdZdZddZddZddZd d Zd d Z d ddZ dS)zTabSet.TabButtonzA simple tab-like widget.rcCstj||d|jdt||_||_||_d|_t|d|d|j dddd d t d t d d dddd  |_ |j j dt dtdd|j|jdS)zConstructor 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. rrFtextcommandpadxr padyr Z takefocusZ indicatoronZhighlightthicknessrZ selectcolorrrrTN)rrbwRAISEDnamertab_setr8Z Radiobutton _select_eventZFALSEZbuttonr$r7r& _init_masksr0)r(rJrr4rKrrrrs      zTabSet.TabButton.__init__cGs|j|jdS)asEvent 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)rrJ)r(argsrrrrLs zTabSet.TabButton._select_eventcCs|jdddS)zAssume selected lookrBTN) _place_masks)r(rrrr1szTabSet.TabButton.set_selectedcCs|jdddS)zAssume normal lookrBFN)rO)r(rrrr0szTabSet.TabButton.set_normalc 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) Nrrrrxywidthrr )rKr pages_framer#rr"maskmsklrHrIZmlplacemskrmr)r(rrrrrrMs    zTabSet.TabButton._init_masksFcCs|j}|r||j7}|jjd|ddddddddd dd dd dd | |jjd|ddd|j ddddd dd |jd dd | |jj}|r|j s|j|j|j|jkr||j8}|j jd|ddddddddd dd |jd dd | |j j jd|j d|j d d |jd ||jd |jj dS)NZin_ZrelxgrPrZrelyg?rQZrelwidthrRZ relheightr r) rHrUrWrVrKrr8Z winfo_rootxZ winfo_widthrXrYlower)r(rBr rrrrrOs4             #zTabSet.TabButton._place_masksN) rrr__doc__rHrrLr1r0rMrOrrrrr6s      r6) rrrr[rr,r/r5r:r=r'rr6rrrrr s  ,     (r c@seZdZdZGdddeZGdddeZGdddeZGdd d eZd ed d d ddZ ddZ ddZ ddZ d S) TabbedPageSetajA 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. c@s@eZdZdZdZddZddZddZd S) zTabbedPageSet.Pagez{Abstract base class for TabbedPageSet's pages. Subclasses must override the _show() and _hide() methods. FcCst|dddt|_dS)Nrrr)rrIframe)r(rrrrr9szTabbedPageSet.Page.__init__cCs tdS)N)NotImplementedError)r(rrr_show<szTabbedPageSet.Page._showcCs tdS)N)r^)r(rrr_hide?szTabbedPageSet.Page._hideN)rrrr[ uses_gridrr_r`rrrrPage1s   rbc@s4eZdZdZdZddZddZdS)zTabbedPageSet.PageRemovezAPage class using the grid placement manager's "remove" mechanism.TcCs#|jjdddddtdS)Nrowrcolumnsticky)r]gridNSEW)r(rrrr_FszTabbedPageSet.PageRemove._showcCs|jjdS)N)r]Z grid_remove)r(rrrr`IszTabbedPageSet.PageRemove._hideN)rrrr[rar_r`rrrr PageRemoveBs  rhcsFeZdZdZdZfddZddZddZS) zTabbedPageSet.PageLiftz?Page class using the grid placement manager's "lift" mechanism.TcsIttj|j||jjdddddt|jjdS)Nrcrrdre)superr\PageLiftrr]rfrgrZ)r(r) __class__rrrPszTabbedPageSet.PageLift.__init__cCs|jjdS)N)r]Zlift)r(rrrr_UszTabbedPageSet.PageLift._showcCs|jjdS)N)r]rZ)r(rrrr`XszTabbedPageSet.PageLift._hide)rrrr[rarr_r`rr)rkrrjLs  rjc@s.eZdZdZddZddZdS)zTabbedPageSet.PagePackForgetzAPage class using the pack placement manager's "forget" mechanism.cCs|jjdtdddS)NrrT)r]r$BOTH)r(rrrr_]sz"TabbedPageSet.PagePackForget._showcCs|jjdS)N)r]r2)r(rrrr``sz"TabbedPageSet.PagePackForget._hideN)rrrr[r_r`rrrrPagePackForget[s  rmNr r Fc KsJtj|||||_i|_g|_d|_d|_|jddd|jdddt||_ |j j dddddt |jj r|j jddd|j jdddt ||jd|d |d ||_|rx|D]}|j|qW|jj dddddt |j|jdS) aConstructor 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. NrZweightr rcrdrerrr)rr page_classpages _pages_order _current_page _default_pageZcolumnconfigureZ rowconfigurerTrfrgrar change_page_tab_setadd_page) r(parent page_namesrnrrrr)rJrrrrcs*         zTabbedPageSet.__init__cCs|std|||jkr5td||j|j|j|<|jj||jj|t |jdkr||_ |j |dS)z0Add a new page with the name given in page_name.zInvalid TabPage name: '%s'z!TabPage named '%s' already existsr N) rror rnrTrpr*rtr,r?rrrs)r( page_namerrrrus  zTabbedPageSet.add_pagecCs||jkrtd||jj|t|jdkrf||jkro|jd|_n d|_||jkr|j|j|jj ||jj |}|j j dS)z2Destroy the page whose name is given in page_name.zNo such TabPage: '%srN) ror-rpr.r?rrrqrsrtr/r;r]r<)r(rxZpagerrr remove_pages zTabbedPageSet.remove_pagecCs|j|krdS|dk r>||jkr>td||jdk ra|j|jjd|_|dk r||_|j|j|jj|dS)z/Show the page whose name is given in page_name.NzNo such TabPage: '%s')rqror-r`r_rtr5)r(rxrrrrss   zTabbedPageSet.change_page) rrrr[objectrbrhrjrmrruryrsrrrrr\ s  ;  r\c st}ttttjd|j\}}}}|jd||df|jdt|dddgdd d d j d t d t dt t jdjddddj t jdjddddj t jdjddj t|t|dddfdd}t|dddfdd}t |dd}|j dddd|j dddd|j ddj dd|jdS)Nz[x+]z+%d+%dzTest tabbed pagesrwZFoobarZBazrrrFrrrrCZFoorFZBarzAdd PagerDcsjjS)N)rugetr) entryPgNametabPagerrsz_tabbed_pages..z Remove PagecsjjS)N)ryr}r)r~rrrrszname of page to add/remove:rEr )ZTkrmapintresplitZgeometrytitler\r$r%ZTRUErlZLabelror]ZEntryZButtonZmainloop) rvrootrRr rPrQZ buttonAddZ buttonRemoveZ labelPgNamer)r~rr _tabbed_pagess* 3  &&  r__main__)runN) r[Ztkinter Exceptionrr rr r\rrZidlelib.idle_test.htestrrrrr s