3 ^@sbddlmZmZGdddeZddZedkr^ddlmZedd d d dd lm Z e ed S))FrameLabelc@seZdZddZd ddZdS) MultiStatusBarcKstj||f|i|_dS)N)r__init__labels)selfZmasterkwr )/usr/lib64/python3.6/idlelib/statusbar.pyrszMultiStatusBar.__init__leftrcCsb||jkr4t|ddd}|j|ddd||j|<n |j|}|dkrR|j|d|j|ddS)Nrw)Z borderwidthZanchor)sideZpadyZpadx)width)text)rrpackconfig)rnamerrrZlabelr r r set_label s    zMultiStatusBar.set_labelN)r r r)__name__ __module__ __qualname__rrr r r r rsrc sddlm}m}m}m}||}tt|jjddd\}}|jd||df|j d||}||dd d } | j t |j d d j d dj dddfdd} ||d| d} | j dd|j dS)Nr)ToplevelrTextButton+z+%d+%dzTest multistatus bar()ZheightroneZhellotwoZworldZbottomx)rZfillcsjddjdddS)Nr!Zfoor"Zbar)rr )msbr r change$s z _multistatus_bar..changez Update status)rZcommand)r) tkinterrrrrmapintZgeometrysplittitlerrr) parentrrrrtopr#yframerr%Zbuttonr )r$r _multistatus_bars       r/__main__)mainz idlelib.idle_test.test_statusbarF) verbosityexit)runN) r&rrrr/rZunittestr1Zidlelib.idle_test.htestr5r r r r s