�`^c@sQddlmZdefd��YZdd�ZedkrMdGe�GHndS(i�(tDialogtChoosercBs&eZdZdZd�Zd�ZRS(sAsk for a colorttk_chooseColorcCsLy4|jd}t|t�r3d||jd<nWntk
rGnXdS(Ntinitialcolors
#%02x%02x%02x(toptionst
isinstancettupletKeyError(tselftcolor((s+/sys/lib/python2.7/lib-tk/tkColorChooser.pyt_fixoptions!s
cCsU|st|�rdS|j|�\}}}|d|d|dft|�fS(Ni(NN(tstrtNonet winfo_rgb(Rtwidgettresulttrtgtb((s+/sys/lib/python2.7/lib-tk/tkColorChooser.pyt
_fixresult+s(t__name__t
__module__t__doc__tcommandR
R(((s+/sys/lib/python2.7/lib-tk/tkColorChooser.pyRs
cKs/|r|j�}||d<nt|�j�S(sAsk for a colorR(tcopyRtshow(R R((s+/sys/lib/python2.7/lib-tk/tkColorChooser.pytaskcolor:s
t__main__R N(ttkCommonDialogRRRRR(((s+/sys/lib/python2.7/lib-tk/tkColorChooser.pyt<module>s
|