File "test_editmenu.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyc
File size: 4.46 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


V~gc@szdZddlmZddlZddlZddlmZdejfdYZ	e
dkrvejdd	ndS(
sTTest (selected) IDLE Edit menu items.

Edit modules have their own test files files
i(trequiresN(tPyShellt	PasteTestcBsbeZdZedZedZdZdZdZdZ	dZ
dZRS(	seTest pasting into widgets that allow pasting.

    On X11, replacing selections requires tk fix.
    cCstdtj|_}|jtj|tj||_tj	||_
tj||_|j
|jddS(Ntguittwo(RttktTktroottwithdrawRt
fix_x11_pastetTextttexttEntrytentrytSpinboxtspintclipboard_cleartclipboard_append(tclsR((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt
setUpClasss



cCsP|`|`|`|jj|jj|jj|jj|`dS(N(RR
RRRtupdate_idletaskstupdatetdestroy(R((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt
tearDownClasss



cCse|j}d\}}|jdd|jdd||jd|j|jdd|dS(	s+Test pasting into text without a selection.tsonetwo
s1.0tendtones	<<Paste>>N(Rsonetwo
(Rtdeletetinserttevent_generatetassertEqualtget(tselfRttagtans((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_text_no_selection&s	
cCse|j}d\}}|jdd|jdd||jd|j|jdd|dS(	s(Test pasting into text with a selection.tselstwo
s1.0RRs	<<Paste>>N(R$stwo
(RRRRRR(R RR!R"((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_text_selection/s	
cCsl|j}d\}}|jdd|jdd|jd||jd|j|j|dS(s/Test pasting into an entry without a selection.itonetwoRRs	<<Paste>>N(iR&(R
RRtselect_rangeRRR(R R
RR"((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_entry_no_selection8s	
cCsl|j}d\}}|jdd|jdd|jd||jd|j|j|dS(s,Test pasting into an entry with a selection.RRiRs	<<Paste>>N(RR(R
RRR'RRR(R R
RR"((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_entry_selectionDs	
cCso|j}d\}}|jdd|jdd|jdd||jd|j|j|dS(	s0Test pasting into a spinbox without a selection.iR&RRtranges	<<Paste>>N(iR&(RRRt	selectionRRR(R RRR"((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_spin_no_selectionNs	
cCso|j}d\}}|jdd|jdd|jdd||jd|j|j|dS(	s-Test pasting into a spinbox with a selection.RRiRR*s	<<Paste>>N(RR(RRRR+RRR(R RRR"((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_spin_selectionYs	
(t__name__t
__module__t__doc__tclassmethodRRR#R%R(R)R,R-(((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyRs							
	t__main__t	verbosityi(R0ttest.test_supportRtTkinterRtunittesttidlelibRtTestCaseRR.tmain(((sD/opt/alt/python27/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt<module>sY