Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/lib-tk/tkColorChooser.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^c@sQddlmZdefd��YZdd�ZedkrMdGe�GHndS(i�(tDialogtChoosercBs&eZdZdZd�Zd�ZRS(sAsk for a colorttk_chooseColorcCsLy4|jd}t|t�r3d||jd<nWntk
rGnXdS(Ntinitialcolors
#%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(ttkCommonDialogRRRRR(((s+/sys/lib/python2.7/lib-tk/tkColorChooser.pyt<module>s


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.