$3{)dZddlmZddlmZddlmZdZdZdZ dZ Gd d eZ d Z e d kr'dd lmZedddddlmZee dSdS)zSearch dialog for Find, Find Again, and Find Selection functionality. Inherits from SearchDialogBase for GUI and uses searchengine to prepare search pattern. )TclError) searchengine)SearchDialogBasec|}tj|}t|dst |||_|jS)zReturn the new or existing singleton SearchDialog instance. The singleton dialog saves user entries and preferences across instances. Args: text: Text widget containing the text to be searched. _searchdialog)_rootrgethasattr SearchDialogr)textrootengines 5/opt/alt/python311/lib64/python3.11/idlelib/search.py_setupr sN ::<s_++HHH #### ***X % % % % %rr c& ddlm}m}ddlm}m}||}|dtt| ddd\}}| d||d zfz||}| ||d   d d  fd} ||d| } | dS)zDisplay search test box.r)ToplevelText)FrameButtonzTest SearchDialog+Nz+%d+%dgray)inactiveselectbackgroundr+z}This is a sample string. This is a sample string. This is a sample string. This is a sample string. This is a sample string. cdddtddddS)Nr(r)r*)r2rrr1rsr show_findz!_search_dialog..show_findsO UE5)))t $ ue,,,,,rzSearch (selection ignored))r command) tkinterrGrH tkinter.ttkrIrJtitlemapintgeometrysplitpackr+) parentrGrHrIrJtopxyframerQbuttonr s @r_search_dialogras;&&&&&&&&)))))))) (6  CII!""" sFOO%%++C004 5 5DAqLLQCL())) E#JJE JJLLL 4 7 7 7DIIKKKKK7888----- VE rls-  //////     ( ( ( ) ) ) - - -F%F%F%F%F%#F%F%F%R2 zD (AEBBBB++++++C r