@@ -660,7 +660,10 @@ def _set_image_for_button(self, button):
660660
661661 def _Button (self , text , image_file , toggle , command ):
662662 if not toggle :
663- b = tk .Button (master = self , text = text , command = command )
663+ b = tk .Button (
664+ master = self , text = text , command = command ,
665+ relief = "flat" , overrelief = "groove" , borderwidth = 1 ,
666+ )
664667 else :
665668 # There is a bug in tkinter included in some python 3.6 versions
666669 # that without this variable, produces a "visual" toggling of
@@ -669,8 +672,10 @@ def _Button(self, text, image_file, toggle, command):
669672 # https://bugs.python.org/issue25684
670673 var = tk .IntVar (master = self )
671674 b = tk .Checkbutton (
672- master = self , text = text , command = command ,
673- indicatoron = False , variable = var )
675+ master = self , text = text , command = command , indicatoron = False ,
676+ variable = var , offrelief = "flat" , overrelief = "groove" ,
677+ borderwidth = 1
678+ )
674679 b .var = var
675680 b ._image_file = image_file
676681 if image_file is not None :
0 commit comments