@@ -304,29 +304,29 @@ def test_copy(self):
304304 self .assertEqual (image2 .height (), 16 )
305305 self .assertEqual (image2 .get (4 , 6 ), image .get (4 , 6 ))
306306
307- image2 = image .copy (from_ = (2 , 3 , 14 , 11 ))
307+ image2 = image .copy (from_coords = (2 , 3 , 14 , 11 ))
308308 self .assertEqual (image2 .width (), 12 )
309309 self .assertEqual (image2 .height (), 8 )
310310 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
311311 self .assertEqual (image2 .get (11 , 7 ), image .get (13 , 10 ))
312312 self .assertEqual (image2 .get (2 , 4 ), image .get (2 + 2 , 4 + 3 ))
313313
314- image2 = image .copy (from_ = (2 , 3 , 14 , 11 ), zoom = 2 )
314+ image2 = image .copy (from_coords = (2 , 3 , 14 , 11 ), zoom = 2 )
315315 self .assertEqual (image2 .width (), 24 )
316316 self .assertEqual (image2 .height (), 16 )
317317 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
318318 self .assertEqual (image2 .get (23 , 15 ), image .get (13 , 10 ))
319319 self .assertEqual (image2 .get (2 * 2 , 4 * 2 ), image .get (2 + 2 , 4 + 3 ))
320320 self .assertEqual (image2 .get (2 * 2 + 1 , 4 * 2 + 1 ), image .get (6 + 2 , 2 + 3 ))
321321
322- image2 = image .copy (from_ = (2 , 3 , 14 , 11 ), subsample = 2 )
322+ image2 = image .copy (from_coords = (2 , 3 , 14 , 11 ), subsample = 2 )
323323 self .assertEqual (image2 .width (), 6 )
324324 self .assertEqual (image2 .height (), 4 )
325325 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
326326 self .assertEqual (image2 .get (5 , 3 ), image .get (12 , 9 ))
327327 self .assertEqual (image2 .get (3 , 2 ), image .get (3 * 2 + 2 , 2 * 2 + 3 ))
328328
329- image2 = image .copy (from_ = (2 , 3 , 14 , 11 ), subsample = 2 , zoom = 3 )
329+ image2 = image .copy (from_coords = (2 , 3 , 14 , 11 ), subsample = 2 , zoom = 3 )
330330 self .assertEqual (image2 .width (), 18 )
331331 self .assertEqual (image2 .height (), 12 )
332332 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
@@ -346,7 +346,7 @@ def test_subsample(self):
346346 self .assertEqual (image2 .height (), 8 )
347347 self .assertEqual (image2 .get (2 , 3 ), image .get (4 , 6 ))
348348
349- image2 = image .subsample (2 , from_ = (2 , 3 , 14 , 11 ))
349+ image2 = image .subsample (2 , from_coords = (2 , 3 , 14 , 11 ))
350350 self .assertEqual (image2 .width (), 6 )
351351 self .assertEqual (image2 .height (), 4 )
352352 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
@@ -367,7 +367,7 @@ def test_zoom(self):
367367 self .assertEqual (image2 .get (8 , 12 ), image .get (4 , 6 ))
368368 self .assertEqual (image2 .get (9 , 13 ), image .get (4 , 6 ))
369369
370- image2 = image .zoom (2 , from_ = (2 , 3 , 14 , 11 ))
370+ image2 = image .zoom (2 , from_coords = (2 , 3 , 14 , 11 ))
371371 self .assertEqual (image2 .width (), 24 )
372372 self .assertEqual (image2 .height (), 16 )
373373 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
@@ -384,7 +384,7 @@ def test_copy_replace(self):
384384 self .assertEqual (image2 .get (4 , 6 ), image .get (4 , 6 ))
385385
386386 image2 = tkinter .PhotoImage (master = self .root )
387- image2 .copy_replace (image , from_ = (2 , 3 , 14 , 11 ))
387+ image2 .copy_replace (image , from_coords = (2 , 3 , 14 , 11 ))
388388 self .assertEqual (image2 .width (), 12 )
389389 self .assertEqual (image2 .height (), 8 )
390390 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
@@ -393,23 +393,23 @@ def test_copy_replace(self):
393393
394394 image2 = tkinter .PhotoImage (master = self .root )
395395 image2 .copy_replace (image )
396- image2 .copy_replace (image , from_ = (2 , 3 , 14 , 11 ), shrink = True )
396+ image2 .copy_replace (image , from_coords = (2 , 3 , 14 , 11 ), shrink = True )
397397 self .assertEqual (image2 .width (), 12 )
398398 self .assertEqual (image2 .height (), 8 )
399399 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
400400 self .assertEqual (image2 .get (11 , 7 ), image .get (13 , 10 ))
401401 self .assertEqual (image2 .get (2 , 4 ), image .get (2 + 2 , 4 + 3 ))
402402
403403 image2 = tkinter .PhotoImage (master = self .root )
404- image2 .copy_replace (image , from_ = (2 , 3 , 14 , 11 ), to = (3 , 6 ))
404+ image2 .copy_replace (image , from_coords = (2 , 3 , 14 , 11 ), to = (3 , 6 ))
405405 self .assertEqual (image2 .width (), 15 )
406406 self .assertEqual (image2 .height (), 14 )
407407 self .assertEqual (image2 .get (0 + 3 , 0 + 6 ), image .get (2 , 3 ))
408408 self .assertEqual (image2 .get (11 + 3 , 7 + 6 ), image .get (13 , 10 ))
409409 self .assertEqual (image2 .get (2 + 3 , 4 + 6 ), image .get (2 + 2 , 4 + 3 ))
410410
411411 image2 = tkinter .PhotoImage (master = self .root )
412- image2 .copy_replace (image , from_ = (2 , 3 , 14 , 11 ), to = (0 , 0 , 100 , 50 ))
412+ image2 .copy_replace (image , from_coords = (2 , 3 , 14 , 11 ), to = (0 , 0 , 100 , 50 ))
413413 self .assertEqual (image2 .width (), 100 )
414414 self .assertEqual (image2 .height (), 50 )
415415 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
@@ -420,7 +420,7 @@ def test_copy_replace(self):
420420 self .assertEqual (image2 .get (2 , 4 + 8 * 3 ), image .get (2 + 2 , 4 + 3 ))
421421
422422 image2 = tkinter .PhotoImage (master = self .root )
423- image2 .copy_replace (image , from_ = (2 , 3 , 14 , 11 ), zoom = 2 )
423+ image2 .copy_replace (image , from_coords = (2 , 3 , 14 , 11 ), zoom = 2 )
424424 self .assertEqual (image2 .width (), 24 )
425425 self .assertEqual (image2 .height (), 16 )
426426 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
@@ -429,15 +429,15 @@ def test_copy_replace(self):
429429 self .assertEqual (image2 .get (2 * 2 + 1 , 4 * 2 + 1 ), image .get (6 + 2 , 2 + 3 ))
430430
431431 image2 = tkinter .PhotoImage (master = self .root )
432- image2 .copy_replace (image , from_ = (2 , 3 , 14 , 11 ), subsample = 2 )
432+ image2 .copy_replace (image , from_coords = (2 , 3 , 14 , 11 ), subsample = 2 )
433433 self .assertEqual (image2 .width (), 6 )
434434 self .assertEqual (image2 .height (), 4 )
435435 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
436436 self .assertEqual (image2 .get (5 , 3 ), image .get (12 , 9 ))
437437 self .assertEqual (image2 .get (1 , 2 ), image .get (1 * 2 + 2 , 2 * 2 + 3 ))
438438
439439 image2 = tkinter .PhotoImage (master = self .root )
440- image2 .copy_replace (image , from_ = (2 , 3 , 14 , 11 ), subsample = 2 , zoom = 3 )
440+ image2 .copy_replace (image , from_coords = (2 , 3 , 14 , 11 ), subsample = 2 , zoom = 3 )
441441 self .assertEqual (image2 .width (), 18 )
442442 self .assertEqual (image2 .height (), 12 )
443443 self .assertEqual (image2 .get (0 , 0 ), image .get (2 , 3 ))
0 commit comments