@@ -144,11 +144,7 @@ def test_configure_labelwidget(self):
144
144
145
145
class AbstractLabelTest (AbstractWidgetTest , IntegerSizeTests ):
146
146
_conv_pixels = False
147
-
148
- def test_configure_highlightthickness (self ):
149
- widget = self .create ()
150
- self .checkPixelsParam (widget , 'highlightthickness' ,
151
- 0 , 1.3 , 2.6 , 6 , - 2 , '10p' )
147
+ clip_highlightthickness = False
152
148
153
149
154
150
@add_standard_options (StandardOptionsTests )
@@ -280,6 +276,7 @@ class MenubuttonTest(AbstractLabelTest, unittest.TestCase):
280
276
'underline' , 'width' , 'wraplength' ,
281
277
)
282
278
_conv_pixels = round
279
+ clip_highlightthickness = True
283
280
284
281
def create (self , ** kwargs ):
285
282
return tkinter .Menubutton (self .root , ** kwargs )
@@ -293,9 +290,6 @@ def test_configure_height(self):
293
290
widget = self .create ()
294
291
self .checkIntegerParam (widget , 'height' , 100 , - 100 , 0 , conv = str )
295
292
296
- test_configure_highlightthickness = \
297
- StandardOptionsTests .test_configure_highlightthickness
298
-
299
293
def test_configure_image (self ):
300
294
widget = self .create ()
301
295
image = tkinter .PhotoImage (master = self .root , name = 'image1' )
@@ -1482,6 +1476,7 @@ class MessageTest(AbstractWidgetTest, unittest.TestCase):
1482
1476
_conv_pad_pixels = False
1483
1477
if tk_version >= (8 , 7 ):
1484
1478
_conv_pixels = False
1479
+ clip_highlightthickness = False
1485
1480
1486
1481
def create (self , ** kwargs ):
1487
1482
return tkinter .Message (self .root , ** kwargs )
@@ -1490,14 +1485,6 @@ def test_configure_aspect(self):
1490
1485
widget = self .create ()
1491
1486
self .checkIntegerParam (widget , 'aspect' , 250 , 0 , - 300 )
1492
1487
1493
- def test_configure_highlightthickness (self ):
1494
- widget = self .create ()
1495
- self .checkPixelsParam (widget , 'highlightthickness' ,
1496
- 0 , 1.3 , 2.6 , 6 , '10p' )
1497
- expected = - 2 if tk_version >= (8 , 7 ) else 0
1498
- self .checkParam (widget , 'highlightthickness' , - 2 , expected = expected ,
1499
- conv = self ._conv_pad_pixels )
1500
-
1501
1488
1502
1489
class DefaultRootTest (AbstractDefaultRootTest , unittest .TestCase ):
1503
1490
0 commit comments