Your IP : 216.73.216.213
�
��f� c @ sF d Z d d l Td d l Z Gd d � d � Z Gd d � d � Z d S( ud Chip viewer and widget.
In the lower left corner of the main Pynche window, you will see two
ChipWidgets, one for the selected color and one for the nearest color. The
selected color is the actual RGB value expressed as an X11 #COLOR name. The
nearest color is the named color from the X11 database that is closest to the
selected color in 3D space. There may be other colors equally close, but the
nearest one is the first one found.
Clicking on the nearest color chip selects that named color.
The ChipViewer class includes the entire lower left quandrant; i.e. both the
selected and nearest ChipWidgets.
i ( u *Nc B s� | Ee Z d Z d Z d Z d e e d d d d d d � Z d d � Z d d
� Z d d � Z d
d � Z
d d � Z d d � Z d S( u
ChipWidgeti� iP u Coloru bluec
C sx t | d | �| _ | j j d d d d � t | d t d d d | d | d
| �| _ | j j d d d d � t � | _ | j j | � t | d | j d t
d
t d t d | j d �| _
| j
j d d d d � t � | _ t | d | j d t
d
t d t d | j d �| _
| j
j d d d d � | rX| j j d | � n | rt| j j d | � n d S( Nu textu rowi u columnu reliefu borderwidthi u widthu heightu
backgroundi u textvariableu justifyu stateu fonti u <ButtonPress-1>u <ButtonRelease-1>( u Labelu _ChipWidget__labelu gridu Frameu RAISEDu _ChipWidget__chipu StringVaru _ChipWidget__namevaru setu Entryu FLATu CENTERu DISABLEDu _ChipWidget__nameu _ChipWidget__msgvaru bind( u selfu masteru widthu heightu textu initialcoloru presscmdu
releasecmd( ( u<