//usr/lib64/lib64//lib64/lib64//ó
ÛœSec @ sG d Z d d l Td d l Z d e f d „ ƒ YZ e d „ Z d e d „ Z e d k rCe
ƒ Z e j d ƒ d
Z
e e
d ƒ j ƒ Z e e d d
d d „ ƒZ e j d e ƒ e e d d d d „ ƒZ e j d e ƒ e e d d d d „ ƒZ e j d e ƒ e e d d d e j ƒZ e j d e ƒ e j ƒ n d S( s Simple text browser for IDLE
iÿÿÿÿ( t *Nt
TextViewerc B s/ e Z d Z e d „ Z d „ Z d d „ Z RS( s* A simple text viewer dialog for IDLE
c C s t j | | ƒ | j d d ƒ | j d d d | j ƒ d | j ƒ d f ƒ d | _ d | _ | j ƒ | j | ƒ | j
d | j ƒ | | _ | j
j ƒ | j d
| j ƒ | j d | j ƒ | j
j d | ƒ | j
j d
t ƒ | r| j | ƒ | j ƒ | j ƒ n d S( sJ Show the given text in a scrollable window with a 'close' button
t borderwidthi s =%dx%d+%d+%diq iô i
s #ffffffs #000000t WM_DELETE_WINDOWs s g t stateN( t Toplevelt __init__t configuret geometryt winfo_rootxt winfo_rootyt bgt fgt
CreateWidgetst titlet protocolt Okt parentt textViewt focus_sett bindt insertt configt DISABLEDt transientt grab_sett wait_window( t selfR R t textt modal( ( s( /usr/lib64/python2.7/idlelib/textView.pyR s(
c
C sC t | d t d d ƒ} t | ƒ } t | d d d | j d t ƒ| _ t | d t d t d d
ƒ| _ t | d t
d d
d | j d
| j ƒ| _
| j j d | j
j ƒ | j
j d | j j ƒ | j j ƒ | j j d t d t ƒ | j
j d t d t d t ƒ | j d t d t ƒ | j d t d t d t ƒ d S( Nt relieft heighti¼ R t Closet commandt takefocust orientt highlightthicknessi t wrapR R t yscrollcommandt sidet fillt expand( t Framet SUNKENt ButtonR t FALSEt buttonOkt Scrollbart VERTICALt
scrollbarViewt Textt WORDR R R R t yviewt sett packt RIGHTt Yt LEFTt TRUEt BOTHt BOTTOMt Xt TOP( R t frameTextt frameButtons( ( s( /usr/lib64/python2.7/idlelib/textView.pyR
) s
c C s | j ƒ d S( N( t destroy( R t event( ( s( /usr/lib64/python2.7/idlelib/textView.pyR : s N( t __name__t
__module__t __doc__t TrueR R
t NoneR ( ( ( s( /usr/lib64/python2.7/idlelib/textView.pyR s c C s t | | | | ƒ S( N( R ( R R R R ( ( s( /usr/lib64/python2.7/idlelib/textView.pyt view_text> s c C s— y: | r* d d l } | j | d ƒ } n t | d ƒ } Wn= t k
ry d d l } | j d d d d | d | ƒ n Xt | | | j ƒ | ƒ Sd S( Niÿÿÿÿt rR s File Load Errort messages Unable to load file %r .R ( t codecst opent IOErrort tkMessageBoxt showerrorRH t read( R R t filenamet encodingR RK t textFileRN ( ( s( /usr/lib64/python2.7/idlelib/textView.pyt view_fileA s
t __main__s
textView tests
./textView.pyRI R RH R! c C s t t d t ƒ S( NRH ( RH t rootR ( ( ( s( /usr/lib64/python2.7/idlelib/textView.pyt X s R' RT c C s t t d t ƒ S( NRT ( RT RV RQ ( ( ( s( /usr/lib64/python2.7/idlelib/textView.pyRW [ s s nonmodal view_textc C s t t d t d t ƒS( Ns nonmodal view_textR ( RH RV R t False( ( ( s( /usr/lib64/python2.7/idlelib/textView.pyRW ^ s R ( RE t TkinterRN R R RF RH RG RT RC t TkRV R RQ t fileRP R R, t btn1R6 R9 t btn2t btn3RA t closeR7 t mainloop( ( ( s( /usr/lib64/python2.7/idlelib/textView.pyt s,
6