Edit File: redemo.pyc
� ��7ec�����������@���sR���d��Z��d�d�l�Td�d�l�Z�d�d�d�������YZ�d����Z�e�d�k�rN�e����n��d�S( ���sD���Basic regular expression demonstration facility (Perl style syntax).i����(���t���*Nt���ReDemoc�����������B���s;���e��Z�d�����Z�d����Z�d����Z�d�d���Z�d�d���Z�RS(���c������ ���C���s��|�|��_��t�|��j��d�t�d�d��|��_�|��j�j�d�t�d�t���t�|��j����|��_�|��j�j�d�t���|��j�j ����|��j ����t�|��j��d�d�d�t��|��_�|��j�j�d�t�d�t���t�|��j��d�t�d�d��|��_�|��j�j�d�t���|��j�j�d�t���t �|���|��_�|��j�j�d�t�d�t���t�|���|��_�|��j�j�d���t�|��j�d�d �d �|��j�d�d�d�|��j��|��_�|��j�j�d�t���t�|��j�d�d �d �|��j�d�d�d�|��j��|��_�|��j�j�d�t���t�|��j��d�d�d�d��|��_�|��j�j�d�t�d�d���|��j�j�d�d�d��t�|��j��d�d�d�t��|��_�|��j�j�d�t���t�|��j����|��_�|��j�j�d�d�d�t���|��j�j�d�|��j���|��j�j�d�|��j���d��|��_!�|��j����|��j�j"����}�|��j�j"�|�d�|�d� ��|��j�j"����}�|��j�j"�|�d�|�d� ��d��S(���Nt���anchort���texts&���Enter a Perl-style regular expression:t���sidet���fillt����s���Enter a string to search:t���firsts���Highlight first matcht���variablet���valuet���commands���Highlight all matchest���allt���widthi<���t���heighti���t���expandi���t���hitt ���backgroundt���yellows���Groups:s���<Key>(#���t���mastert���Labelt���Wt ���promptdisplayt���packt���TOPt���Xt���Entryt���regexdisplayt ���focus_sett ���addoptionst ���statusdisplayt���labeldisplayt���Framet ���showframet ���StringVart���showvart���sett���Radiobuttont ���recompilet���showfirstradiot���LEFTt���showallradiot���Textt ���stringdisplayt���BOTHt ���tag_configuret ���grouplabelt���Listboxt ���grouplistt���bindt ���reevaluatet���Nonet���compiledt���bindtags(���t���selfR���t���btags(����(����s,���/usr/lib64/python2.7/Tools/scripts/redemo.pyt���__init__ ���sZ���� c������ ���C���s����g��|��_��g��|��_�g��|��_�x��d�D]��}�t�|��j���d�d�k�rs�t�|��j���}�|�j�d�t���|��j��j�|���n��t �t �|���}�t����}�t�|�d �|�d �|�d�d�d�|�d �|��j ��}�|�j�d�t���|��j�j�|���|��j�j�|���q"�Wd��S(���Nt ���IGNORECASEt���LOCALEt ���MULTILINEt���DOTALLt���VERBOSEi���i����R���R���R���t���offvaluet���onvalueR ���R���(���R8���R9���R:���R;���R<���(���t���framest���boxest���varst���lenR���R���R���R���t���appendt���getattrt���ret���IntVart���CheckbuttonR%���R'���(���R5���t���namet���framet���valt���vart���box(����(����s,���/usr/lib64/python2.7/Tools/scripts/redemo.pyR���H���s*���� ��� c���������C���s4���d�}�x!�|��j��D]�}�|�|�j����B}�q�W|�}�|�S(���Ni����(���RA���t���get(���R5���t���flagsRK���(����(����s,���/usr/lib64/python2.7/Tools/scripts/redemo.pyt���getflags_���s ����c���������C���s����yN�t��j�|��j�j����|��j������|��_�|��j�d�}�|��j�j�d�d�d�|���WnB�t��j �k �r��}�d��|��_�|��j�j�d�d�t�|���d�d���n�X|��j����d��S(���NR���R���R���s���re.error: %st���red( ���RE���t���compileR���RM���RO���R3���R���R���t���configt���errorR2���t���strR1���(���R5���t���eventt���bgt���msg(����(����s,���/usr/lib64/python2.7/Tools/scripts/redemo.pyR%���f���s���� c��� ������C���sU��y�|��j��j�d�d�t���Wn�t�k �r-�n�Xy�|��j��j�d�d�t���Wn�t�k �r[�n�X|��j�j�d�t���|��j�s|�d��S|��j��j�d�d�d��|��j��j�d�d�d��|��j��j�d�t���}�d�}�d�}�xJ|�t �|���k�r|��j�j �|�|���}�|�d��k�rPn��|�j����\�}�}�|�|�k�r4|�d�}�d�}�n�d�}�d �|�}�d �|�} �|��j��j �|�|�| ���|�d�k�r�|��j��j�|���t�|�j������} �| �j�d�|�j������xD�t�t �| �����D]-�}�d �|�| �|�f�}�|��j�j�t�|���q�Wn��|�d�}�|��j�j����d�k�r��Pq��q��W|�d�k�r>|��j�j�d�d �d�d���n�|��j�j�d�d���d��S(���NR���s���1.0t���hit0i����R���R���t���orangei���s���1.0 + %d charss���%2d: %rR���R���s ���(no match)R���(���R*���t ���tag_removet���ENDt���TclErrorR/���t���deleteR3���R,���RM���RB���t���searchR2���t���spant���tag_addt���yview_pickplacet���listt���groupst���insertt���groupt���rangeR"���R���RR���( ���R5���RU���R���t���lastt���nmatchest���mR���t���tagt���pfirstt���plastRc���t���it���g(����(����s,���/usr/lib64/python2.7/Tools/scripts/redemo.pyR1���s���sT���� N(���t���__name__t ���__module__R7���R���RO���R2���R%���R1���(����(����(����s,���/usr/lib64/python2.7/Tools/scripts/redemo.pyR������s ��� ? c����������C���s6���t�����}��t�|����}�|��j�d�|��j���|��j����d��S(���Nt���WM_DELETE_WINDOW(���t���TkR���t���protocolt���quitt���mainloop(���t���roott���demo(����(����s,���/usr/lib64/python2.7/Tools/scripts/redemo.pyt���main����s���� t���__main__(����(���t���__doc__t���TkinterRE���R���Rx���Ro���(����(����(����s,���/usr/lib64/python2.7/Tools/scripts/redemo.pyt���<module>���s��� �