U e5dA � @ s> d dl mZ G dd� de�Zd dd�Zedkr:ede� � dS ) � )�Dialogc @ s$ e Zd ZdZdZdd� Zdd� ZdS )�Choosera� 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. Ztk_chooseColorc C s@ z&| j d }t|t�r$d| | j d<