관리-도구
편집 파일: MultiStatusBar.cpython-35.pyc
��YfD � @ sV d d l TGd d � d e � Z d d � Z e d k rR d d l m Z e e � d S) � )�*c @ s4 e Z d Z d d d � Z d e d d d � Z d S)�MultiStatusBarNc K s5 | d k r t � } t j | | | � i | _ d S)N)�Tk�Frame�__init__�labels)�selfZmaster�kw� r �;/opt/alt/python35/lib64/python3.5/idlelib/MultiStatusBar.pyr s zMultiStatusBar.__init__� r c C s� | | j k rS t | d d d t �} | j d | d d d d � | | j | <n | j | } | d k r| | j d | � | j d | � d S) NZborderwidthr Zanchor�sideZpadyZpadx� �width�text)r ZLabel�W�pack�config)r �namer r r Zlabelr r r � set_label s zMultiStatusBar.set_label)�__name__� __module__�__qualname__r ZLEFTr r r r r r s r c s$ t � } t t t t j d | j � � � � \ } } } } | j d | | d f � | j d � t | � } t | � } | j � t | � � � j d d � � j d d � � j d t d t � � f d d � } t | d d d | �} | j d t � | j � | j � | j � d S)Nz[x+]z+%d+%d� zTest multistatus bar�oneZhello�twoZworldr Zfillc s$ � j d d � � j d d � d S)Nr Zfoor Zbar)r r )�msbr r �change# s z _multistatus_bar.<locals>.changer z Update statusZcommand)r �list�map�int�re�splitZgeometry�titler ZTextr r r ZBOTTOM�XZButtonZmainloop) �parent�rootr Zheight�x�y�framer r Zbuttonr )r r �_multistatus_bar s"