ɤu;3dZddlmZddlmZdZGddZejedk(rddl Z e jd d d yy) zExample extension, also used for testing. See extend.txt for more details on creating an extension. See config-extension.def for configuring an extension. )idleConfwrapsc0tdfd }|S)z9Apply a formatting function to all of the selected lines.c|jj\}}}}tt|dz D]}||}||||<|jj ||||y)Nbreak) formatter get_regionrangelen set_region) selfeventheadtailcharslinesposline format_lines 6/opt/alt/python312/lib64/python3.12/idlelib/zzdummy.pyapplyzformat_selection..applysk#'>>#<#<#> dE5Ua(C:D$T40E#J) !!$eU;)Nr)rrs` rformat_selectionr s# ; LrcTeZdZdZdddgfgZdZedZedZ edZ y ) ZzDummyz3Prepend or remove initial text from selected lines.format)zZ inz<>)zZ outz <>cV||_|j|_|j|_y)z+Initialize the settings for this extension.N)editwintextfregionr )rr s r__init__zZzDummy.__init__%s LL  rc<tjddd|_y)z!Load class variables from config. extensionsrzz-textN)r GetOptionztext)clss rreloadzZzDummy.reload+s&&|YI rc"|j|S)zInsert text at the beginning of each selected line. This is bound to the <> virtual event when the extensions are loaded. )r')rrs r z_in_eventzZzDummy.z_in_event0s**dV$$rcp|j|jsdnt|j}||dS)zRemove specific text from the beginning of each selected line. This is bound to the <> virtual event when the extensions are loaded. rN) startswithr'r )rrzlengths r z_out_eventzZzDummy.z_out_event9s. ??4::6!C OGH~rN) __name__ __module__ __qualname____doc__menudefsr# classmethodr)rr+r/rrrrsd=  "  H) JJ%%rr__main__Nzidlelib.idle_test.test_zzdummyF) verbosityexit) r3idlelib.configr functoolsrrrr)r0unittestmainr6rrr?sS $ ''T zHMM2aeLr