@@ -103,7 +103,7 @@ class FrameTest(AbstractToplevelTest, unittest.TestCase):
103103 'background' , 'borderwidth' ,
104104 'class' , 'colormap' , 'container' , 'cursor' , 'height' ,
105105 'highlightbackground' , 'highlightcolor' , 'highlightthickness' ,
106- 'relief' , 'takefocus' , 'visual' , 'width' ,
106+ 'padx' , 'pady' , ' relief' , 'takefocus' , 'visual' , 'width' ,
107107 )
108108
109109 def create (self , ** kwargs ):
@@ -637,7 +637,7 @@ class CanvasTest(AbstractWidgetTest, unittest.TestCase):
637637 'highlightbackground' , 'highlightcolor' , 'highlightthickness' ,
638638 'insertbackground' , 'insertborderwidth' ,
639639 'insertofftime' , 'insertontime' , 'insertwidth' ,
640- 'relief' , 'scrollregion' ,
640+ 'offset' , ' relief' , 'scrollregion' ,
641641 'selectbackground' , 'selectborderwidth' , 'selectforeground' ,
642642 'state' , 'takefocus' ,
643643 'xscrollcommand' , 'xscrollincrement' ,
@@ -659,6 +659,15 @@ def test_confine(self):
659659 widget = self .create ()
660660 self .checkBooleanParam (widget , 'confine' )
661661
662+ def test_offset (self ):
663+ widget = self .create ()
664+ self .assertEqual (widget ['offset' ], '0,0' )
665+ self .checkParams (widget , 'offset' ,
666+ 'n' , 'ne' , 'e' , 'se' , 's' , 'sw' , 'w' , 'nw' , 'center' )
667+ self .checkParam (widget , 'offset' , '10,20' )
668+ self .checkParam (widget , 'offset' , '#5,6' )
669+ self .checkInvalidParam (widget , 'offset' , 'spam' )
670+
662671 def test_scrollregion (self ):
663672 widget = self .create ()
664673 self .checkParam (widget , 'scrollregion' , '0 0 200 150' )
0 commit comments