관리-도구
편집 파일: tabbedpages.cpython-35.opt-2.pyc
���]�G � @ s� 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 � d S)� )�*c @ s e Z d Z d S)�InvalidNameErrorN)�__name__� __module__�__qualname__� r r �0/opt/alt/python35/lib64/python3.5/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 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)�TabSetN� � 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)N�height� �borderwidthr �relief� background�side�fill�expandF)�Frame�__init__�select_command�n_rows�max_tabs_per_row�expand_tabs�page_set�_tabs�_tab2row�list� _tab_names� _selected_tab� _tab_rows�FLAT�cgetZ padding_frame�pack�TOP�X� _arrange_tabs)�selfr r Ztabsr r r �kwr r r r s$ zTabSet.__init__c C sS | s t d | � � | | j k r5 t d | � � | j j | � | j � d S)NzInvalid Tab name: '%s'zTab named '%s' already exists)r r r �appendr'