AlkantarClanX12
Current Path : /proc/self/root/lib64/python3.8/tkinter/__pycache__/ |
Current File : //proc/self/root/lib64/python3.8/tkinter/__pycache__/__init__.cpython-38.pyc |
U e5d͕ � @ s� d Z ddlZddlZddlZejZddlT ddlZdZeej �Z eej�Zej Z ejZejZe�d�Ze�dej�Zdd� Zd d � Zdd� Zz ejZW n ek r� Y nX d d� Zz ejZW n ek r� Y nX dydd�ZG dd� deej�ZG dd� d�Zdadadd� Z dzdd�Z!dd� Z"d{dd�Z#da$G dd� d�Z%G d d!� d!e%�Z&G d"d#� d#e%�Z'G d$d%� d%e%�Z(G d&d'� d'e%�Z)d|d(d)�Z*e+Z,eZ-d*d+� Z.G d,d-� d-�Z/G d.d/� d/�Z0G d0d1� d1�Z1G d2d3� d3�Z2G d4d5� d5�Z3G d6d7� d7e/e3�Z4d}d8d9�Z5G d:d;� d;�Z6G d<d=� d=�Z7G d>d?� d?�Z8G d@dA� dAe/�Z9G dBdC� dCe9e6e7e8�Z:G dDdE� dEe9e3�Z;G dFdG� dGe:�Z<G dHdI� dIe:e1e2�Z=G dJdK� dKe:�Z>G dLdM� dMe:e1�Z?G dNdO� dOe:�Z@G dPdQ� dQe:�ZAG dRdS� dSe:e1e2�ZBG dTdU� dUe:�ZCG dVdW� dWe:�ZDG dXdY� dYe:�ZEG dZd[� d[e:�ZFG d\d]� d]e:�ZGG d^d_� d_e:�ZHG d`da� dae:e1e2�ZIG dbdc� dc�ZJG ddde� deeD�ZKG dfdg� dg�ZLG dhdi� dieL�ZMG djdk� dkeL�ZNdldm� ZOdndo� ZPG dpdq� dqe:e1�ZQG drds� dse:�ZRG dtdu� due:�ZSdvdw� ZTeUdxk�r�eT� dS )~a8 Wrapper functions for Tcl/Tk. Tkinter provides classes which allow the display, positioning and control of widgets. Toplevel widgets are Tk and Toplevel. Other widgets are Frame, Label, Entry, Text, Canvas, Button, Radiobutton, Checkbutton, Scale, Listbox, Scrollbar, OptionMenu, Spinbox LabelFrame and PanedWindow. Properties of the widgets are specified with keyword arguments. Keyword arguments have the same name as the corresponding resource under Tk. Widgets are positioned with one of the geometry managers Place, Pack or Grid. These managers can be called with methods place, pack, grid available in every Widget. Actions are bound to events by resources (e.g. keyword argument command) or with the method bind. Example (Hello, World): import tkinter from tkinter.constants import * tk = tkinter.Tk() frame = tkinter.Frame(tk, relief=RIDGE, borderwidth=2) frame.pack(fill=BOTH,expand=1) label = tkinter.Label(frame, text="Hello, World") label.pack(fill=X, expand=1) button = tkinter.Button(frame,text="Exit",command=tk.destroy) button.pack(side=BOTTOM) tk.mainloop() � N)�*� z([\\{}])z([\s])c C s d� tt| ��S )�Internal function.� )�join�map� _stringify��value� r �(/usr/lib64/python3.8/tkinter/__init__.py�_join8 s r c C s� t | ttf�rHt| �dkr:t| d �} t�| �rFd| } q�dt| � } ntt| �} | sZd} nbt�| �r�t� d| �} | � dd�} t� d| �} | d dkr�d | } n| d dks�t�| �r�d| } | S ) r r r z{%s}z{}z\\\1� z\n�"�\)� isinstance�list�tuple�lenr � _magic_re�searchr �str�sub�replace� _space_rer r r r r = s$ r c C s@ d}| D ]2}t |ttf�r(|t|� }q|dk r||f }q|S )r r N)r r r �_flatten)�seq�res�itemr r r r V s r c C s� t | t�r| S t | td�tf�r$| S i }t| �D ]^}z|�|� W q0 ttfk r� } z(td|� |� � D ]\}}|||<