ok
Direktori : /proc/thread-self/root/proc/thread-self/root/lib64/python2.7/site-packages/pynche/ |
Current File : //proc/thread-self/root/proc/thread-self/root/lib64/python2.7/site-packages/pynche/ChipViewer.pyo |
� ��^c @ sF d Z d d l Td d l Z d d d � � YZ d d d � � YZ d S( sd 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����( t *Nt ChipWidgetc B sh e Z d Z d Z d e e d d d d d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( i� iP t Colort 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( Nt textt rowi t columnt relieft borderwidthi t widtht heightt backgroundi t textvariablet justifyt statet fonti s <ButtonPress-1>s <ButtonRelease-1>( t Labelt _ChipWidget__labelt gridt Framet RAISEDt _ChipWidget__chipt StringVart _ChipWidget__namevart sett Entryt FLATt CENTERt DISABLEDt _ChipWidget__namet _ChipWidget__msgvart bind( t selft masterR R R t initialcolort presscmdt releasecmd( ( s7 /usr/lib64/python2.7/site-packages/pynche/ChipViewer.pyt __init__ s, c C s | j j d | � d S( NR ( R t config( R t color( ( s7 /usr/lib64/python2.7/site-packages/pynche/ChipViewer.pyt set_color<