%PDF- %PDF-
Direktori : /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/ |
Current File : //opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyo |
� ;�Pc @ sw d Z d d l Td d l Z d e f d � � YZ e d k rs e � Z e e d d d d � �j � e j � n d S( s Simple text browser i����( t *Nt TextViewerc B s; e Z d Z d d d � Z d � Z d � Z d d � Z RS( s, 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 � | d k r� | j j d | � n | j | � | j j d t � d S( s� If data exists, load it into viewer, otherwise try to load file. fileName - string, should be an absoulute filename t borderwidthi s =%dx%d+%d+%diq i� i s #ffffffs #000000t WM_DELETE_WINDOWs <Return>s <Escape>g t stateN( t Toplevelt __init__t configuret geometryt winfo_rootxt winfo_rootyt bgt fgt CreateWidgetst titlet protocolt Okt parentt textViewt focus_sett bindt Nonet insertt LoadTextFilet configt DISABLED( t selfR R t fileNamet data( ( sE /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyR s$ c C si d } y t | d � } Wn0 t k rK t j d d d d | d � n X| j j d | j � � d S( Nt rR s File Load Errort messages Unable to load file s .g ( R t opent IOErrort tkMessageBoxt showerrorR R t read( R R t textFile( ( sE /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyR 4 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� t textt 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( ( sE /opt/alt/python27/lib64/python2.7/site-packages/guppy/etc/textView.pyR >