File "tabbedpages.cpython-34.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python34/lib64/python3.4/idlelib/__pycache__/tabbedpages.cpython-34.pyc
File size: 16.74 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
e fG @ s d Z d d l TGd d d e Z Gd d d e Z Gd d d e Z Gd d
d
e Z d d Z e d
k r d d l
m Z e e n d S)a An 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 @ s e Z d Z d S)InvalidNameErrorN)__name__
__module____qualname__ r r 8/opt/alt/python34/lib64/python3.4/idlelib/tabbedpages.pyr s r c @ s e Z d Z d S)AlreadyExistsErrorN)r r r r r r r r
s r c @ s e Z d Z d Z d d d d d d Z d d Z d
d Z d d
Z d d Z d d Z d d Z
Gd d d e Z d S)TabSetzjA widget containing tabs (buttons) in one or more rows.
Only one tab may be selected at a time.
N Fc K s t j | | | | | _ | | _ | | _ | | _ | | _ i | _ i | _ | rj t | | _
n g | _
d | _ g | _ t | d d d d d t
d | j d | _ | j j d t d t d
d | j d S)a Constructor 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 borderwidthr relief
backgroundsidefillexpandF)Frame__init__select_commandn_rowsmax_tabs_per_rowexpand_tabspage_set_tabs_tab2rowlist
_tab_names
_selected_tab _tab_rowsFLATcgetZ
padding_framepackTOPX
_arrange_tabs)selfr r Ztabsr r r kwr r r r s$ zTabSet.__init__c C sY | s t d | n | | j k r; t d | n | j j | | j d S)z.Add a new tab with the name given in tab_name.zInvalid Tab name: '%s'zTab named '%s' already existsN)r r r appendr'