@@ -963,8 +963,7 @@ def create(self, **kwargs):
963
963
return ttk .Scrollbar (self .root , ** kwargs )
964
964
965
965
966
- @add_standard_options (PixelSizeTests if tk_version >= (8 , 7 ) else IntegerSizeTests ,
967
- StandardTtkOptionsTests )
966
+ @add_standard_options (StandardTtkOptionsTests )
968
967
class NotebookTest (AbstractWidgetTest , unittest .TestCase ):
969
968
OPTIONS = (
970
969
'class' , 'cursor' , 'height' , 'padding' , 'style' , 'takefocus' , 'width' ,
@@ -983,6 +982,20 @@ def setUp(self):
983
982
def create (self , ** kwargs ):
984
983
return ttk .Notebook (self .root , ** kwargs )
985
984
985
+ def test_configure_height (self ):
986
+ widget = self .create ()
987
+ if get_tk_patchlevel (self .root ) < (8 , 6 , 15 ):
988
+ self .checkIntegerParam (widget , 'height' , 402 , - 402 , 0 )
989
+ else :
990
+ self .checkPixelsParam (widget , 'height' , '10c' , 402 , - 402 , 0 , conv = False )
991
+
992
+ def test_configure_width (self ):
993
+ widget = self .create ()
994
+ if get_tk_patchlevel (self .root ) < (8 , 6 , 15 ):
995
+ self .checkIntegerParam (widget , 'width' , 402 , - 402 , 0 )
996
+ else :
997
+ self .checkPixelsParam (widget , 'width' , '10c' , 402 , - 402 , 0 , conv = False )
998
+
986
999
def test_tab_identifiers (self ):
987
1000
self .nb .forget (0 )
988
1001
self .nb .hide (self .child2 )
0 commit comments