Skip to content

Commit e68994f

Browse files
committed
Adjust _clipped for Canvas once more.
1 parent 1318d04 commit e68994f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Lib/test/test_tkinter/test_widgets.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -754,11 +754,14 @@ class CanvasTest(AbstractWidgetTest, unittest.TestCase):
754754
'yscrollcommand', 'yscrollincrement', 'width',
755755
)
756756
_rounds_pixels = True
757-
if tk_version >= (9, 0):
757+
if tk_version < (9, 0):
758+
_noround = {}
759+
_clipped = {}
760+
else:
758761
_no_round = {'borderwidth', 'height', 'highlightthickness', 'width',
762+
'xscrollincrement', 'yscrollincrement'}
763+
_clipped = {'borderwidth', 'height', 'highlightthickness', 'width',
759764
'xscrollincrement', 'yscrollincrement'}
760-
_clipped = {'borderwidth', 'height', 'highlightthickness',
761-
'width', 'xscrollincrement', 'yscrollincrement'}
762765
_stringify = True
763766

764767
def create(self, **kwargs):

0 commit comments

Comments
 (0)