| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/tkinter/__pycache__/ |
Upload File : |
R
>lqj�
c �n � Q s ] QHGs QQ,s Q Q\2 sQQ ks\Q6X c \ Q\ 2 2 P! P! ) z2Interface to the native Tk color selection dialog.)�Dialog�Chooser�askcolorc �6 ` � \ sQ s]s n QsQsQ sQ sQsU s P! )r ap Create a dialog for the tk_chooseColor command.
Args:
master: The master widget for this dialog. If not provided,
defaults to options['parent'] (if defined).
options: Dictionary of options for the tk_chooseColor call.
initialcolor: Specifies the selected color when the
dialog is first displayed. This can be a tk color
string or a 3-tuple of ints in the range (0, 255)
for an RGB triplet.
parent: The parent window of the color dialog. The
color dialog is displayed on top of this.
title: A string for the title of the dialog box.
�tk_chooseColorc � � U O Q* o[ U[ 2 % c QU* U O Q$ P! P! [ c P! h 9 h)zfEnsure initialcolor is a tk color string.
Convert initialcolor from a RGB triplet to a color string.
�initialcolorz
#%02x%02x%02x)�options�
isinstance�tuple�KeyError)�self�colors & �)C:\Python315\\Lib\tkinter\colorchooser.py�_fixoptions�Chooser._fixoptions% sN � �
��L�L��0�E��%��'�'�/>��/F����^�,� (�� � �� �s �(A �A � A�A�Ac � � U% c [ U2 % f Q! UO U2 v q4oUQ* UQ* UQ* 1[ U2 1! )z�Adjust result returned from call to tk_chooseColor.
Return both an RGB tuple of ints in the range (0, 255) and the
tk color string in the form #rrggbb.
� )NN)�str� winfo_rgb)r �widget�result�r�g�bs &&& r �
_fixresult�Chooser._fixresult2 sM � � �S��[�[��� �"�"�6�*���a��3���3���3��'��V��4�4� � )
�__name__�
__module__�__qualname__�__firstlineno__�__doc__�commandr r �__static_attributes__�__classdictcell__)�
__classdict__s @r r r s �� � �
� �G��5� 5r c �p � U % c UO 2 oVQ$ [ Q- U@ O 2 ! )z�Display dialog window for selection of a color.
Convenience wrapper for the Chooser class. Displays the color
chooser dialog with color as the initial value.
r r )�copyr �show)r
r s &,r r r F s1 � �
��,�,�.��"'�����W��"�"�$�$r �__main__r
)N)r"