| Server IP : 118.27.122.248 / Your IP : 216.73.217.103 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/Tools/pynche/__pycache__/ |
Upload File : |
3 x2_� � @ s* d Z ddlT ddlZdZG dd� d�ZdS )a( TextViewer class. The TextViewer allows you to see how the selected color would affect various characteristics of a Tk text widget. This is an output viewer only. In the top part of the window is a standard text widget with some sample text in it. You are free to edit this text in any way you want (BAW: allow you to change font characteristics). If you want changes in other viewers to update text characteristics, turn on Track color changes. To select which characteristic tracks the change, select one of the radio buttons in the window below. Text foreground and background affect the text in the window above. The Selection is what you see when you click the middle button and drag it through some text. The Insertion is the insertion cursor in the text window (which only has a background). � )�*NzText Window...c @ sb e Zd Zddd�Zddd�Zddd�Zddd �Zdd d�Zddd �Zddd�Z dd� Z dd� ZdS )� TextViewerNc C s || _ |j� }t|dd� }| _|jd| j� |jd� |jd� |jd| j � |jd| j � |jd| j� |jd| j� t |t|jd d �|jdd�d dd�| _ |jd�}|r�| j j|d� |jd�}|r�| j j|d� |jd�}|r�| j j|d� | j j� | j jd|jdd�� |jd�}|�r2| j jt|� y(|jddtf�\} } | j jt| | � W n tk �rp Y nX | j j� t� | _| jj|jdd�� t� | _| jj|jdd�� t|d| jt| jd �| _ | j jt!t"d!� t#|� }| _$|j� g | _%d"}x>d/D ]6} t&|| d&�}|j'|dt(d'� | j%j)|� |d(7 }�qW d(}x<d0D ]4} t&|| d&�}|j'd(|d+� | j%j)|� |d(7 }�qFW g | _*xtd1D ]l}xdd2D ]\}|d-k�r�|d(k�r��q�t+|| j|d" d" | d( | j,d.�}|j'||d+� | j*j)|� �q�W �q�W | j� d S )3NZPynche)Zclass_ZWM_DELETE_WINDOWzPynche Text Windowz<Alt-q>z<Alt-Q>z<Alt-w>z<Alt-W>�TEXTBGZblack�TEXTFGZwhite�# � )�relief� background� foreground�widthZheight�TEXT_SFG)�selectforeground�TEXT_SBG)�selectbackground�TEXT_IBG)�insertbackgroundg �TEXTz�Insert some stuff here and play with the buttons below to see how the colors interact in textual displays. See how the selection can also be affected by tickling the buttons and choosing a color.�TEXTINS�TEXTSELg @�TRACKPr �WHICHzTrack color changes)�text�variabler �command)Zfill�expand� �Text:� Selection:� Insertion:)r )�row�columnZsticky� � Foreground� Background)r r � � )r �valuer )r r r )r"