+
     Bid
                     h    ^ RI Ht RR.t ! R R]4      tR	R lt]R8X  d   ]! R]! 4       4       R# R# )
    )DialogChooseraskcolorc                   4   a  ] tR t^t o RtRtR tR tRtV t	R# )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                     V P                   R,          p\        V\        4      '       d   RV,          V P                   R&   R# R#   \         d     R# i ; i)zfEnsure initialcolor is a tk color string.

Convert initialcolor from a RGB triplet to a color string.
initialcolorz#%02x%02x%02xN)options
isinstancetupleKeyError)selfcolors   & +/usr/lib/python3.14/tkinter/colorchooser.py_fixoptionsChooser._fixoptions#   sN    
	LL0E%''/>/F^, (  		s   ?A AAc                    V'       d   \        V4      '       g   R# VP                  V4      w  r4pVR,          VR,          VR,          3\        V4      3# )zAdjust 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._fixresult0   sM     S[[ ""6*a333'V44     N)
__name__
__module____qualname____firstlineno____doc__commandr   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s       G5 5r   Nc                l    V '       d   VP                  4       pWR&   \        R/ VB P                  4       # )zDisplay 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   D   s1     ,,."'W""$$r   __main__r   )N)tkinter.commondialogr   __all__r   r   r    printr   r   r   <module>r0      sA    (j
!-5f -5f%" z	'8: r   