AlkantarClanX12
Current Path : /proc/self/root/lib64/python3.8/tkinter/__pycache__/ |
Current File : //proc/self/root/lib64/python3.8/tkinter/__pycache__/tix.cpython-38.pyc |
U e5d-, � @ sL d dl Z d dlZd dlT d dlmZ d dlZdZdZdZdZdZd Z d Z dZdZd Z dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd ZG dd � d �Z G d!d"� d"ej!e �Z!G d#d$� d$�Z"ej#j$e"f ej#_$G d%d&� d&ej#�Z%G d'd(� d(e%�Z&G d)d*� d*�Z'G d+d,� d,e%�Z(G d-d.� d.e%�Z)G d/d0� d0e%�Z*G d1d2� d2e%�Z+G d3d4� d4e%�Z,G d5d6� d6e%�Z-G d7d8� d8e%�Z.G d9d:� d:e%�Z/G d;d<� d<e%�Z0G d=d>� d>e%�Z1G d?d@� d@e%�Z2G dAdB� dBe%�Z3G dCdD� dDe%�Z4G dEdF� dFe%e5e6�Z7G dGdH� dHe%�Z8G dIdJ� dJe%�Z9G dKdL� dLe%�Z:G dMdN� dNe%�Z;G dOdP� dPe%�Z<G dQdR� dRe%�Z=G dSdT� dTe%�Z>G dUdV� dVe%�Z?G dWdX� dXe%�Z@G dYdZ� dZe%�ZAG d[d\� d\e%�ZBG d]d^� d^e%�ZCG d_d`� d`e%�ZDG dadb� dbe%�ZEG dcdd� dde%�ZFG dedf� dfe%�ZGG dgdh� dhe%�ZHG didj� dje%�ZIG dkdl� dle%�ZJG dmdn� dne%�ZKG dodp� dpe%e5e6�ZLG dqdr� dre%�ZMG dsdt� dte%�ZNG dudv� dveOe&�ZPG dwdx� dxeQe&�ZRG dydz� dzeSe&�ZTG d{d|� d|eUe&�ZVG d}d~� d~eWe&�ZXG dd�� d�eYe&�ZZG d�d�� d�e[e&�Z\G d�d�� d�e]e&�Z^G d�d�� d�e_e&�Z`G d�d�� d�eae&�ZbG d�d�� d�eDe&�ZcG d�d�� d�e7e&�ZdG d�d�� d�eCe&�ZeG d�d�� d�eLe&�ZfG d�d�� d�e*e&�ZgG d�d�� d�e,e&�ZhG d�d�� d�e.e&�ZiG d�d�� d�e/e&�ZjG d�d�� d�e2e&�ZkG d�d�� d�e*e&�ZlG d�d�� d�eKe&�ZmG d�d�� d�e>e&�ZnG d�d�� d�e@e&�Zod�d�� Zpd�d�� ZqG d�d�� d�e%�ZrG d�d�� d�e%e5e6�ZsG d�d�� d�es�ZtdS )�� N)�*)� _cnfmerge�window�textZstatusZ immediate�imageZ imagetextZballoon�autoZ acrosstop�asciiZcell�columnZ decreasingZ increasingZinteger�main�max�real�rowzs-regionzx-regionzy-region� � � � � c @ sV e Zd ZdZdd� Zdd� Zddd�Zdd d �Zdd� Zd d� Z dd� Z ddd�ZdS )� tixCommanda� The tix commands provide access to miscellaneous elements of Tix's internal state and the Tix application context. Most of the information manipulated by these commands pertains to the application as a whole, or to a screen or display, rather than to a particular window. This is a mixin class, assumed to be mixed to Tkinter.Tk that supports the self.tk.call method. c C s | j �dd|�S )a� Tix maintains a list of directories under which the tix_getimage and tix_getbitmap commands will search for image files. The standard bitmap directory is $TIX_LIBRARY/bitmaps. The addbitmapdir command adds directory into this list. By using this command, the image files of an applications can also be located using the tix_getimage or tix_getbitmap command. �tixZaddbitmapdir��tk�call)�selfZ directory� r �#/usr/lib64/python3.8/tkinter/tix.py�tix_addbitmapdirR s ztixCommand.tix_addbitmapdirc C s | j �dd|�S )z�Returns the current value of the configuration option given by option. Option may be any of the options described in the CONFIGURATION OPTIONS section. r �cgetr �r �optionr r r �tix_cget^ s ztixCommand.tix_cgetNc K sd |rt ||f�}n|rt |�}|dkr2| �dd�S t|t�rN| �ddd| �S | j�d| �|� �S )a� Query or modify the configuration options of the Tix application context. If no option is specified, returns a dictionary all of the available options. If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given option(s) to have the given value(s); in this case the command returns an empty string. Option may be any of the configuration options. Nr � configure�-)r r )r � _getconfigure� isinstance�strZ_getconfigure1r r �_options�r �cnf�kwr r r � tix_configuree s ztixCommand.tix_configurec C s* |dk r| j �dd|�S | j �dd�S dS )a� Returns the file selection dialog that may be shared among different calls from this application. This command will create a file selection dialog widget when it is called the first time. This dialog will be returned by all subsequent calls to tix_filedialog. An optional dlgclass parameter can be passed to specified what type of file selection dialog widget is desired. Possible options are tix FileSelectDialog or tixExFileSelectDialog. Nr Z filedialogr )r Zdlgclassr r r �tix_filedialog{ s ztixCommand.tix_filedialogc C s | j �dd|�S )a� Locates a bitmap file of the name name.xpm or name in one of the bitmap directories (see the tix_addbitmapdir command above). By using tix_getbitmap, you can avoid hard coding the pathnames of the bitmap files in your application. When successful, it returns the complete pathname of the bitmap file, prefixed with the character '@'. The returned value can be used to configure the -bitmap option of the TK and Tix widgets. r Z getbitmapr �r �namer r r � tix_getbitmap� s ztixCommand.tix_getbitmapc C s | j �dd|�S )a� Locates an image file of the name name.xpm, name.xbm or name.ppm in one of the bitmap directories (see the addbitmapdir command above). If more than one file with the same name (but different extensions) exist, then the image type is chosen according to the depth of the X display: xbm images are chosen on monochrome displays and color images are chosen on color displays. By using tix_ getimage, you can avoid hard coding the pathnames of the image files in your application. When successful, this command returns the name of the newly created image, which can be used to configure the -image option of the Tk and Tix widgets. r Zgetimager r+ r r r �tix_getimage� s ztixCommand.tix_getimagec C s | j �ddd|�S )a@ Gets the options maintained by the Tix scheme mechanism. Available options include: active_bg active_fg bg bold_font dark1_bg dark1_fg dark2_bg dark2_fg disabled_fg fg fixed_font font inactive_bg inactive_fg input1_bg input2_bg italic_font light1_bg light1_fg light2_bg light2_fg menu_font output1_bg output2_bg select_bg select_fg selector r r �getr r+ r r r �tix_option_get� s ztixCommand.tix_option_getc C s2 |dk r| j �dd|||�S | j �dd||�S dS )a� Resets the scheme and fontset of the Tix application to newScheme and newFontSet, respectively. This affects only those widgets created after this call. Therefore, it is best to call the resetoptions command before the creation of any widgets in a Tix application. The optional parameter newScmPrio can be given to reset the priority level of the Tk options set by the Tix schemes. Because of the way Tk handles the X option database, after Tix has been has imported and inited, it is not possible to reset the color schemes and font sets using the tix config command. Instead, the tix_resetoptions command must be used. Nr Zresetoptionsr )r Z newSchemeZ newFontSetZ newScmPrior r r �tix_resetoptions� s ztixCommand.tix_resetoptions)N)N)N)�__name__� __module__�__qualname__�__doc__r r r) r* r- r. r0 r1 r r r r r G s r c @ s"